summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/View.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-27 11:23:36 +0100
committerGitHub <noreply@github.com>2018-01-27 11:23:36 +0100
commited59019b0cc4ec61fce65a8eb02f814611b466b4 (patch)
tree29b1618a2618b7d4dba8f51626f5e3474e3d8a9c /lib/private/Files/View.php
parent513f70b1c3d342cd2215b6dab9bb0c6d511549ad (diff)
parenta661f043e1a8764cb7c795f50df77b830d3e352b (diff)
downloadnextcloud-server-ed59019b0cc4ec61fce65a8eb02f814611b466b4.tar.gz
nextcloud-server-ed59019b0cc4ec61fce65a8eb02f814611b466b4.zip
Merge pull request #8079 from nextcloud/remove-unneeded-semicolon-and-parentheses
Remove unneeded semicolon and parentheses
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r--lib/private/Files/View.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 3ab3ed89e6b..aaf14b4d7e0 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -682,7 +682,7 @@ class View {
return false;
}
} else {
- $hooks = ($this->file_exists($path)) ? array('update', 'write') : array('create', 'write');
+ $hooks = $this->file_exists($path) ? array('update', 'write') : array('create', 'write');
return $this->basicOperation('file_put_contents', $path, $hooks, $data);
}
}
@@ -1245,7 +1245,7 @@ class View {
private function runHooks($hooks, $path, $post = false) {
$relativePath = $path;
$path = $this->getHookPath($path);
- $prefix = ($post) ? 'post_' : '';
+ $prefix = $post ? 'post_' : '';
$run = true;
if ($this->shouldEmitHooks($relativePath)) {
foreach ($hooks as $hook) {