summaryrefslogtreecommitdiffstats
path: root/lib/private/archive
diff options
context:
space:
mode:
authorScrutinizer Auto-Fixer <auto-fixer@scrutinizer-ci.com>2014-02-19 09:31:54 +0100
committerScrutinizer <auto-fixer@scrutinizer-ci.com>2014-02-19 09:31:54 +0100
commitadaee6a5a19a4b0050d189736bd4e6183fee9cf0 (patch)
treea553fc57c2ff8c99081f8e15fbee7dff2c00adbf /lib/private/archive
parent1e321406ee2d973e937637ab090cbd83a6eb40cf (diff)
downloadnextcloud-server-adaee6a5a19a4b0050d189736bd4e6183fee9cf0.tar.gz
nextcloud-server-adaee6a5a19a4b0050d189736bd4e6183fee9cf0.zip
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
Diffstat (limited to 'lib/private/archive')
-rw-r--r--lib/private/archive/tar.php6
-rw-r--r--lib/private/archive/zip.php4
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/private/archive/tar.php b/lib/private/archive/tar.php
index 5538e027ab4..cbdb565ba35 100644
--- a/lib/private/archive/tar.php
+++ b/lib/private/archive/tar.php
@@ -22,6 +22,9 @@ class OC_Archive_TAR extends OC_Archive{
private $tar=null;
private $path;
+ /**
+ * @param string $source
+ */
function __construct($source) {
$types=array(null, 'gz', 'bz');
$this->path=$source;
@@ -122,6 +125,9 @@ class OC_Archive_TAR extends OC_Archive{
return true;
}
+ /**
+ * @param string $file
+ */
private function getHeader($file) {
if ( ! $this->cachedHeaders ) {
$this->cachedHeaders = $this->tar->listContent();
diff --git a/lib/private/archive/zip.php b/lib/private/archive/zip.php
index cd5479299a1..fa5630d7665 100644
--- a/lib/private/archive/zip.php
+++ b/lib/private/archive/zip.php
@@ -13,6 +13,9 @@ class OC_Archive_ZIP extends OC_Archive{
private $zip=null;
private $path;
+ /**
+ * @param string $source
+ */
function __construct($source) {
$this->path=$source;
$this->zip=new ZipArchive();
@@ -125,7 +128,6 @@ class OC_Archive_ZIP extends OC_Archive{
}
/**
* extract the archive
- * @param string $path
* @param string $dest
* @return bool
*/