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/archive | |
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/archive')
-rw-r--r-- | lib/archive/tar.php | 8 | ||||
-rw-r--r-- | lib/archive/zip.php | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/archive/tar.php b/lib/archive/tar.php index 7a47802bc34..6e0629a0e18 100644 --- a/lib/archive/tar.php +++ b/lib/archive/tar.php @@ -84,7 +84,7 @@ class OC_Archive_TAR extends OC_Archive{ * @param string source either a local file or string data * @return bool */ - function addFile($path,$source='') { + function addFile($path, $source='') { if($this->fileExists($path)) { $this->remove($path); } @@ -107,7 +107,7 @@ class OC_Archive_TAR extends OC_Archive{ * @param string dest * @return bool */ - function rename($source,$dest) { + function rename($source, $dest) { //no proper way to delete, rename entire archive, rename file and remake archive $tmp=OCP\Files::tmpFolder(); $this->tar->extract($tmp); @@ -214,7 +214,7 @@ class OC_Archive_TAR extends OC_Archive{ * @param string dest * @return bool */ - function extractFile($path,$dest) { + function extractFile($path, $dest) { $tmp=OCP\Files::tmpFolder(); if(!$this->fileExists($path)) { return false; @@ -294,7 +294,7 @@ class OC_Archive_TAR extends OC_Archive{ * @param string mode * @return resource */ - function getStream($path,$mode) { + function getStream($path, $mode) { if(strrpos($path, '.')!==false) { $ext=substr($path, strrpos($path, '.')); }else{ 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 { |