aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/archive
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/archive')
-rw-r--r--lib/private/archive/tar.php4
-rw-r--r--lib/private/archive/zip.php9
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);