diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-04 21:12:18 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-04 21:12:18 +0100 |
commit | 4b940955ddb3266f625eae83da412a655efef319 (patch) | |
tree | 8ed6bb2fae2f5fa3cb61c630e3dc98af5e99d656 /lib/archive/zip.php | |
parent | 8a6bb7965d96b1c4297da8f5dbc9644fec7aeb0f (diff) | |
parent | 555dd5c261e52cf64f5a8eb6f4d03635cedafbbe (diff) | |
download | nextcloud-server-4b940955ddb3266f625eae83da412a655efef319.tar.gz nextcloud-server-4b940955ddb3266f625eae83da412a655efef319.zip |
merge master into filesystem
Diffstat (limited to 'lib/archive/zip.php')
-rw-r--r-- | lib/archive/zip.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/archive/zip.php b/lib/archive/zip.php index d016c692e35..1c967baa08f 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 { @@ -171,7 +171,7 @@ class OC_Archive_ZIP extends OC_Archive{ $ext=''; } $tmpFile=OCP\Files::tmpFile($ext); - OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this,'writeBack'); + OC_CloseStreamWrapper::$callBacks[$tmpFile]=array($this, 'writeBack'); if($this->fileExists($path)) { $this->extractFile($path, $tmpFile); } |