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 | |
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')
-rw-r--r-- | lib/private/archive/tar.php | 4 | ||||
-rw-r--r-- | lib/private/archive/zip.php | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lib/private/archive/tar.php b/lib/private/archive/tar.php index a1c0535b1c3..224c8b82cc7 100644 --- a/lib/private/archive/tar.php +++ b/lib/private/archive/tar.php @@ -31,7 +31,7 @@ class OC_Archive_TAR extends OC_Archive{ /** * try to detect the type of tar compression * @param string file - * @return str + * @return integer */ static public function getTarType($file) { if(strpos($file, '.')) { @@ -211,6 +211,7 @@ class OC_Archive_TAR extends OC_Archive{ * extract a single file from the archive * @param string path * @param string dest + * @param string $dest * @return bool */ function extractFile($path, $dest) { @@ -233,6 +234,7 @@ class OC_Archive_TAR extends OC_Archive{ * extract the archive * @param string path * @param string dest + * @param string $dest * @return bool */ function extract($dest) { 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); |