diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-11-02 14:59:36 -0700 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-11-02 14:59:36 -0700 |
commit | fd584f446dabb1d3727a932cd5f4dbaafe63f0b8 (patch) | |
tree | 17efc1c42c3e844b69c9c19f6eba1b4cbd16f5e0 /lib/installer.php | |
parent | 2dbf2c69deaf2bb8bdf02d4539756f8f6d2b9738 (diff) | |
parent | afadf93d317e27fd848f1e70d5849169f862aed9 (diff) | |
download | nextcloud-server-fd584f446dabb1d3727a932cd5f4dbaafe63f0b8.tar.gz nextcloud-server-fd584f446dabb1d3727a932cd5f4dbaafe63f0b8.zip |
Merge pull request #220 from fmms/checkstyle02
Checkstyle: many fixes
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/installer.php b/lib/installer.php index 8c504fb6129..0c776d47d5a 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -68,7 +68,7 @@ class OC_Installer{ OC_Log::write('core','No href specified when installing app from http',OC_Log::ERROR); return false; } - copy($data['href'],$path); + copy($data['href'], $path); }else{ if(!isset($data['path'])) { OC_Log::write('core','No path specified when installing app from local file',OC_Log::ERROR); @@ -80,10 +80,10 @@ class OC_Installer{ //detect the archive type $mime=OC_Helper::getMimeType($path); if($mime=='application/zip') { - rename($path,$path.'.zip'); + rename($path, $path.'.zip'); $path.='.zip'; }elseif($mime=='application/x-gzip') { - rename($path,$path.'.tgz'); + rename($path, $path.'.tgz'); $path.='.tgz'; }else{ OC_Log::write('core','Archives of type '.$mime.' are not supported',OC_Log::ERROR); @@ -344,7 +344,7 @@ class OC_Installer{ * @param string $folder the folder of the app to check * @returns true for app is o.k. and false for app is not o.k. */ - public static function checkCode($appname,$folder) { + public static function checkCode($appname, $folder) { $blacklist=array( 'exec(', |