diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2014-02-19 11:51:04 +0100 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2014-02-19 11:51:04 +0100 |
commit | bcad6e641a238cc3cfc202d587242b9c3bb45d8b (patch) | |
tree | ac797a0f84f6bd5e31974608c5d16113b8297f54 /lib/private/files/storage | |
parent | 2d5ab1a5c4ff594994b8e1a50888bf0150aba431 (diff) | |
parent | f944707a15b4819f7a67263e26b41fe4abe942ab (diff) | |
download | nextcloud-server-bcad6e641a238cc3cfc202d587242b9c3bb45d8b.tar.gz nextcloud-server-bcad6e641a238cc3cfc202d587242b9c3bb45d8b.zip |
Merge pull request #7274 from owncloud/scrutinizer-patch-1
Scrutinizer Auto-Fixes
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r-- | lib/private/files/storage/loader.php | 3 | ||||
-rw-r--r-- | lib/private/files/storage/mappedlocal.php | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/files/storage/loader.php b/lib/private/files/storage/loader.php index 734131261c8..966234cb04d 100644 --- a/lib/private/files/storage/loader.php +++ b/lib/private/files/storage/loader.php @@ -33,6 +33,9 @@ class Loader { return $this->wrap($mountPoint, new $class($arguments)); } + /** + * @param string|boolean $mountPoint + */ public function wrap($mountPoint, $storage) { foreach ($this->storageWrappers as $wrapper) { $storage = $wrapper($mountPoint, $storage); diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php index c8b22cfb39f..1bab3489a28 100644 --- a/lib/private/files/storage/mappedlocal.php +++ b/lib/private/files/storage/mappedlocal.php @@ -326,12 +326,18 @@ class MappedLocal extends \OC\Files\Storage\Common{ return $this->filemtime($path)>$time; } + /** + * @param string $path + */ private function buildPath($path, $create=true) { $path = $this->stripLeading($path); $fullPath = $this->datadir.$path; return $this->mapper->logicToPhysical($fullPath, $create); } + /** + * @param string $path + */ private function cleanMapper($path, $isLogicPath=true, $recursive=true) { $fullPath = $path; if ($isLogicPath) { |