From a661f043e1a8764cb7c795f50df77b830d3e352b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 26 Jan 2018 23:46:40 +0100 Subject: Remove unneeded semicolon and parentheses Signed-off-by: Morris Jobke --- lib/private/Files/View.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Files/View.php') 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) { -- cgit v1.2.3