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_external/lib/Lib/Storage | |
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_external/lib/Lib/Storage')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/FTP.php | 2 | ||||
-rw-r--r-- | apps/files_external/lib/Lib/Storage/Swift.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Storage/FTP.php b/apps/files_external/lib/Lib/Storage/FTP.php index 427a076ffe1..17afb1fcf95 100644 --- a/apps/files_external/lib/Lib/Storage/FTP.php +++ b/apps/files_external/lib/Lib/Storage/FTP.php @@ -150,7 +150,7 @@ class FTP extends StreamWrapper{ */ public static function checkDependencies() { if (function_exists('ftp_login')) { - return(true); + return true; } else { return array('ftp'); } diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php index aeedd3dcd63..aaa7e95bbdf 100644 --- a/apps/files_external/lib/Lib/Storage/Swift.php +++ b/apps/files_external/lib/Lib/Storage/Swift.php @@ -170,7 +170,7 @@ class Swift extends \OC\Files\Storage\Common { $bucketUrl = Url::factory($params['bucket']); if ($bucketUrl->isAbsolute()) { - $this->bucket = end(($bucketUrl->getPathSegments())); + $this->bucket = end($bucketUrl->getPathSegments()); $params['endpoint_url'] = $bucketUrl->addPath('..')->normalizePath(); } else { $this->bucket = $params['bucket']; |