From b5f11195af171edfbbc4fae2e1b7f4832f777f68 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Fri, 5 Oct 2012 12:39:43 +0200 Subject: fix checkstyle on archive zip/tar --- lib/archive.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/archive.php') 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); } } } -- cgit v1.2.3