diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 23:46:40 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-01-26 23:46:40 +0100 |
commit | a661f043e1a8764cb7c795f50df77b830d3e352b (patch) | |
tree | 77a06311ffb5e59c86def06bbb618335da1f2b6a /apps/files | |
parent | 9be6050cc42c2760bd2276942a24ba3db288b551 (diff) | |
download | nextcloud-server-a661f043e1a8764cb7c795f50df77b830d3e352b.tar.gz nextcloud-server-a661f043e1a8764cb7c795f50df77b830d3e352b.zip |
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/App.php | 2 | ||||
-rw-r--r-- | apps/files/lib/Command/Scan.php | 2 | ||||
-rw-r--r-- | apps/files/lib/Command/ScanAppData.php | 2 | ||||
-rw-r--r-- | apps/files/lib/Settings/Admin.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/lib/App.php b/apps/files/lib/App.php index b756b123c43..0bf9ae20525 100644 --- a/apps/files/lib/App.php +++ b/apps/files/lib/App.php @@ -57,7 +57,7 @@ class App { public static function extendJsConfig($settings) { $appConfig = json_decode($settings['array']['oc_appconfig'], true); - $maxChunkSize = (int)(\OC::$server->getConfig()->getAppValue('files', 'max_chunk_size', (10 * 1024 * 1024))); + $maxChunkSize = (int)\OC::$server->getConfig()->getAppValue('files', 'max_chunk_size', 10 * 1024 * 1024); $appConfig['files'] = [ 'max_chunk_size' => $maxChunkSize ]; diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php index 4026af2db79..c3b63f053f5 100644 --- a/apps/files/lib/Command/Scan.php +++ b/apps/files/lib/Command/Scan.php @@ -322,7 +322,7 @@ class Scan extends Base { * @return string */ protected function formatExecTime() { - list($secs, ) = explode('.', sprintf("%.1f", ($this->execTime))); + list($secs, ) = explode('.', sprintf("%.1f", $this->execTime)); # if you want to have microseconds add this: . '.' . $tens; return date('H:i:s', $secs); diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php index f347cb868b1..1eb22d5f68a 100644 --- a/apps/files/lib/Command/ScanAppData.php +++ b/apps/files/lib/Command/ScanAppData.php @@ -260,7 +260,7 @@ class ScanAppData extends Base { * @return string */ protected function formatExecTime() { - list($secs, ) = explode('.', sprintf("%.1f", ($this->execTime))); + list($secs, ) = explode('.', sprintf("%.1f", $this->execTime)); # if you want to have microseconds add this: . '.' . $tens; return date('H:i:s', $secs); diff --git a/apps/files/lib/Settings/Admin.php b/apps/files/lib/Settings/Admin.php index 4965c1e6c17..2f4406c150b 100644 --- a/apps/files/lib/Settings/Admin.php +++ b/apps/files/lib/Settings/Admin.php @@ -56,7 +56,7 @@ class Admin implements ISettings { $maxUploadFilesize = Util::humanFileSize(min($upload_max_filesize, $post_max_size)); $parameters = [ - 'uploadChangable' => (($htaccessWorking and $htaccessWritable) or $userIniWritable ), + 'uploadChangable' => ($htaccessWorking and $htaccessWritable) or $userIniWritable, 'uploadMaxFilesize' => $maxUploadFilesize, // max possible makes only sense on a 32 bit system 'displayMaxPossibleUploadSize' => PHP_INT_SIZE === 4, |