[Pkg-owncloud-commits] [owncloud] 109/457: Fix PHPDoc
David Prévot
taffit at moszumanska.debian.org
Sun Jun 28 20:05:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 3d8ea96e5576bf1d42a0910f111967937415b7f4
Author: Lukas Reschke <lukas at owncloud.com>
Date: Fri May 22 00:17:38 2015 +0200
Fix PHPDoc
Use correct parameters
---
lib/private/files/storage/common.php | 2 ++
lib/private/files/storage/local.php | 2 ++
lib/private/files/storage/localtempfiletrait.php | 10 ++++++----
lib/private/files/storage/mappedlocal.php | 2 ++
lib/private/files/storage/wrapper/encryption.php | 4 ++++
5 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index fc30b38..81cca55 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -274,6 +274,8 @@ abstract class Common implements Storage {
/**
* @param string $query
+ * @param string $dir
+ * @return array
*/
protected function searchInDir($query, $dir = '') {
$files = array();
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index 175b33b..315a8e7 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -282,6 +282,8 @@ if (\OC_Util::runningOnWindows()) {
/**
* @param string $query
+ * @param string $dir
+ * @return array
*/
protected function searchInDir($query, $dir = '') {
$files = array();
diff --git a/lib/private/files/storage/localtempfiletrait.php b/lib/private/files/storage/localtempfiletrait.php
index 7dc9b77..e7f51a1 100644
--- a/lib/private/files/storage/localtempfiletrait.php
+++ b/lib/private/files/storage/localtempfiletrait.php
@@ -34,13 +34,12 @@ namespace OC\Files\Storage;
*/
trait LocalTempFileTrait {
- /**
- * @var string[]
- */
- protected $cachedFiles = array();
+ /** @var string[] */
+ protected $cachedFiles = [];
/**
* @param string $path
+ * @return string
*/
protected function getCachedFile($path) {
if (!isset($this->cachedFiles[$path])) {
@@ -49,6 +48,9 @@ trait LocalTempFileTrait {
return $this->cachedFiles[$path];
}
+ /**
+ * @param string $path
+ */
protected function removeCachedFile($path) {
unset($this->cachedFiles[$path]);
}
diff --git a/lib/private/files/storage/mappedlocal.php b/lib/private/files/storage/mappedlocal.php
index 3a3123d..4b52735 100644
--- a/lib/private/files/storage/mappedlocal.php
+++ b/lib/private/files/storage/mappedlocal.php
@@ -342,6 +342,8 @@ class MappedLocal extends \OC\Files\Storage\Common {
/**
* @param string $query
+ * @param string $dir
+ * @return array
*/
protected function searchInDir($query, $dir = '') {
$files = array();
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index 5d146b2..624b332 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -609,6 +609,10 @@ class Encryption extends Wrapper {
return $encryptionModule;
}
+ /**
+ * @param string $path
+ * @param int $unencryptedSize
+ */
public function updateUnencryptedSize($path, $unencryptedSize) {
$this->unencryptedSize[$path] = $unencryptedSize;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list