diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-02-06 16:30:58 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-02-06 17:02:21 +0100 |
commit | 2a6a9a8cefcf68f48d95e124db0c1b7edc9fe356 (patch) | |
tree | 66d682a22c3d12d1838822fc52cdd48fa765f5df /lib/private/archive/zip.php | |
parent | 0d94da7e9ef9550c8ae0244b203ca84e5ee007b0 (diff) | |
download | nextcloud-server-2a6a9a8cefcf68f48d95e124db0c1b7edc9fe356.tar.gz nextcloud-server-2a6a9a8cefcf68f48d95e124db0c1b7edc9fe356.zip |
polish documentation based on scrutinizer patches
Diffstat (limited to 'lib/private/archive/zip.php')
-rw-r--r-- | lib/private/archive/zip.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/archive/zip.php b/lib/private/archive/zip.php index 8a866716a79..4cb83087e29 100644 --- a/lib/private/archive/zip.php +++ b/lib/private/archive/zip.php @@ -51,7 +51,7 @@ class OC_Archive_ZIP extends OC_Archive{ * rename a file or folder in the archive * @param string source * @param string dest - * @return bool + * @return boolean|null */ function rename($source, $dest) { $source=$this->stripPath($source); @@ -117,7 +117,8 @@ class OC_Archive_ZIP extends OC_Archive{ * extract a single file from the archive * @param string path * @param string dest - * @return bool + * @param string $dest + * @return boolean|null */ function extractFile($path, $dest) { $fp = $this->zip->getStream($path); @@ -127,6 +128,7 @@ class OC_Archive_ZIP extends OC_Archive{ * extract the archive * @param string path * @param string dest + * @param string $dest * @return bool */ function extract($dest) { @@ -191,6 +193,9 @@ class OC_Archive_ZIP extends OC_Archive{ } } + /** + * @return string + */ private function stripPath($path) { if(!$path || $path[0]=='/') { return substr($path, 1); |