diff options
author | Felix Moeller <mail@felixmoeller.de> | 2012-11-02 19:53:02 +0100 |
---|---|---|
committer | Felix Moeller <mail@felixmoeller.de> | 2012-11-02 19:53:02 +0100 |
commit | afadf93d317e27fd848f1e70d5849169f862aed9 (patch) | |
tree | 4a9ed633a7735a1be3cf33fdad31ab981fd64a6b /lib/archive/zip.php | |
parent | d9e97610999ddf9f3a060b786f22d0abb054521e (diff) | |
download | nextcloud-server-afadf93d317e27fd848f1e70d5849169f862aed9.tar.gz nextcloud-server-afadf93d317e27fd848f1e70d5849169f862aed9.zip |
Checkstyle: many fixes
Diffstat (limited to 'lib/archive/zip.php')
-rw-r--r-- | lib/archive/zip.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/archive/zip.php b/lib/archive/zip.php index d016c692e35..5a6fc578be7 100644 --- a/lib/archive/zip.php +++ b/lib/archive/zip.php @@ -35,7 +35,7 @@ class OC_Archive_ZIP extends OC_Archive{ * @param string source either a local file or string data * @return bool */ - function addFile($path,$source='') { + function addFile($path, $source='') { if($source and $source[0]=='/' and file_exists($source)) { $result=$this->zip->addFile($source, $path); }else{ @@ -53,7 +53,7 @@ class OC_Archive_ZIP extends OC_Archive{ * @param string dest * @return bool */ - function rename($source,$dest) { + function rename($source, $dest) { $source=$this->stripPath($source); $dest=$this->stripPath($dest); $this->zip->renameName($source, $dest); @@ -119,7 +119,7 @@ class OC_Archive_ZIP extends OC_Archive{ * @param string dest * @return bool */ - function extractFile($path,$dest) { + function extractFile($path, $dest) { $fp = $this->zip->getStream($path); file_put_contents($dest, $fp); } @@ -158,7 +158,7 @@ class OC_Archive_ZIP extends OC_Archive{ * @param string mode * @return resource */ - function getStream($path,$mode) { + function getStream($path, $mode) { if($mode=='r' or $mode=='rb') { return $this->zip->getStream($path); } else { |