aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Archive
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:51:06 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:51:06 +0200
commit1584c9ae9c23d2a7915750ef9203cba0bcebf766 (patch)
tree568db931f631afd6e96772cf2b3ac539c989ec42 /lib/private/Archive
parenta7c8d26d31cb1cf69e0e060c53622e545fcfbbb3 (diff)
downloadnextcloud-server-1584c9ae9c23d2a7915750ef9203cba0bcebf766.tar.gz
nextcloud-server-1584c9ae9c23d2a7915750ef9203cba0bcebf766.zip
Add visibility to all methods and position of static keyword
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Archive')
-rw-r--r--lib/private/Archive/Archive.php28
-rw-r--r--lib/private/Archive/TAR.php2
2 files changed, 15 insertions, 15 deletions
diff --git a/lib/private/Archive/Archive.php b/lib/private/Archive/Archive.php
index 5150e6ddee3..43b44e5a23a 100644
--- a/lib/private/Archive/Archive.php
+++ b/lib/private/Archive/Archive.php
@@ -34,88 +34,88 @@ abstract class Archive {
/**
* @param $source
*/
- public abstract function __construct($source);
+ abstract public function __construct($source);
/**
* add an empty folder to the archive
* @param string $path
* @return bool
*/
- public abstract function addFolder($path);
+ abstract public function addFolder($path);
/**
* add a file to the archive
* @param string $path
* @param string $source either a local file or string data
* @return bool
*/
- public abstract function addFile($path, $source='');
+ abstract public function addFile($path, $source='');
/**
* rename a file or folder in the archive
* @param string $source
* @param string $dest
* @return bool
*/
- public abstract function rename($source, $dest);
+ abstract public function rename($source, $dest);
/**
* get the uncompressed size of a file in the archive
* @param string $path
* @return int
*/
- public abstract function filesize($path);
+ abstract public function filesize($path);
/**
* get the last modified time of a file in the archive
* @param string $path
* @return int
*/
- public abstract function mtime($path);
+ abstract public function mtime($path);
/**
* get the files in a folder
* @param string $path
* @return array
*/
- public abstract function getFolder($path);
+ abstract public function getFolder($path);
/**
* get all files in the archive
* @return array
*/
- public abstract function getFiles();
+ abstract public function getFiles();
/**
* get the content of a file
* @param string $path
* @return string
*/
- public abstract function getFile($path);
+ abstract public function getFile($path);
/**
* extract a single file from the archive
* @param string $path
* @param string $dest
* @return bool
*/
- public abstract function extractFile($path, $dest);
+ abstract public function extractFile($path, $dest);
/**
* extract the archive
* @param string $dest
* @return bool
*/
- public abstract function extract($dest);
+ abstract public function extract($dest);
/**
* check if a file or folder exists in the archive
* @param string $path
* @return bool
*/
- public abstract function fileExists($path);
+ abstract public function fileExists($path);
/**
* remove a file or folder from the archive
* @param string $path
* @return bool
*/
- public abstract function remove($path);
+ abstract public function remove($path);
/**
* get a file handler
* @param string $path
* @param string $mode
* @return resource
*/
- public abstract function getStream($path, $mode);
+ abstract public function getStream($path, $mode);
/**
* add a folder and all its content
* @param string $path
diff --git a/lib/private/Archive/TAR.php b/lib/private/Archive/TAR.php
index d90e21305c3..f6e7c12d02d 100644
--- a/lib/private/Archive/TAR.php
+++ b/lib/private/Archive/TAR.php
@@ -63,7 +63,7 @@ class TAR extends Archive {
* @param string $file
* @return integer
*/
- static public function getTarType($file) {
+ public static function getTarType($file) {
if (strpos($file, '.')) {
$extension = substr($file, strrpos($file, '.'));
switch ($extension) {