diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-10-05 12:39:43 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-10-05 12:42:11 +0200 |
commit | b5f11195af171edfbbc4fae2e1b7f4832f777f68 (patch) | |
tree | 8636223342970f6ca173631885604073e792b025 /lib/archive.php | |
parent | 00b34a09eaeba2f74a44a155f0fdd4aa58d5e502 (diff) | |
download | nextcloud-server-b5f11195af171edfbbc4fae2e1b7f4832f777f68.tar.gz nextcloud-server-b5f11195af171edfbbc4fae2e1b7f4832f777f68.zip |
fix checkstyle on archive zip/tar
Diffstat (limited to 'lib/archive.php')
-rw-r--r-- | lib/archive.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/archive.php b/lib/archive.php index b4459c2b6ce..a9c245eaf43 100644 --- a/lib/archive.php +++ b/lib/archive.php @@ -13,14 +13,14 @@ abstract class OC_Archive{ * @return OC_Archive */ public static function open($path) { - $ext=substr($path,strrpos($path,'.')); + $ext=substr($path, strrpos($path, '.')); switch($ext) { case '.zip': return new OC_Archive_ZIP($path); case '.gz': case '.bz': case '.bz2': - if(strpos($path,'.tar.')) { + if(strpos($path, '.tar.')) { return new OC_Archive_TAR($path); } break; @@ -126,9 +126,9 @@ abstract class OC_Archive{ continue; } if(is_dir($source.'/'.$file)) { - $this->addRecursive($path.'/'.$file,$source.'/'.$file); + $this->addRecursive($path.'/'.$file, $source.'/'.$file); }else{ - $this->addFile($path.'/'.$file,$source.'/'.$file); + $this->addFile($path.'/'.$file, $source.'/'.$file); } } } |