Fix PHPDoc

Use correct parameters
This commit is contained in:
Lukas Reschke 2015-05-22 00:17:38 +02:00
parent f978474577
commit 3d8ea96e55
5 changed files with 16 additions and 4 deletions

View File

@ -274,6 +274,8 @@ abstract class Common implements Storage {
/** /**
* @param string $query * @param string $query
* @param string $dir
* @return array
*/ */
protected function searchInDir($query, $dir = '') { protected function searchInDir($query, $dir = '') {
$files = array(); $files = array();

View File

@ -282,6 +282,8 @@ if (\OC_Util::runningOnWindows()) {
/** /**
* @param string $query * @param string $query
* @param string $dir
* @return array
*/ */
protected function searchInDir($query, $dir = '') { protected function searchInDir($query, $dir = '') {
$files = array(); $files = array();

View File

@ -34,13 +34,12 @@ namespace OC\Files\Storage;
*/ */
trait LocalTempFileTrait { trait LocalTempFileTrait {
/** /** @var string[] */
* @var string[] protected $cachedFiles = [];
*/
protected $cachedFiles = array();
/** /**
* @param string $path * @param string $path
* @return string
*/ */
protected function getCachedFile($path) { protected function getCachedFile($path) {
if (!isset($this->cachedFiles[$path])) { if (!isset($this->cachedFiles[$path])) {
@ -49,6 +48,9 @@ trait LocalTempFileTrait {
return $this->cachedFiles[$path]; return $this->cachedFiles[$path];
} }
/**
* @param string $path
*/
protected function removeCachedFile($path) { protected function removeCachedFile($path) {
unset($this->cachedFiles[$path]); unset($this->cachedFiles[$path]);
} }

View File

@ -342,6 +342,8 @@ class MappedLocal extends \OC\Files\Storage\Common {
/** /**
* @param string $query * @param string $query
* @param string $dir
* @return array
*/ */
protected function searchInDir($query, $dir = '') { protected function searchInDir($query, $dir = '') {
$files = array(); $files = array();

View File

@ -609,6 +609,10 @@ class Encryption extends Wrapper {
return $encryptionModule; return $encryptionModule;
} }
/**
* @param string $path
* @param int $unencryptedSize
*/
public function updateUnencryptedSize($path, $unencryptedSize) { public function updateUnencryptedSize($path, $unencryptedSize) {
$this->unencryptedSize[$path] = $unencryptedSize; $this->unencryptedSize[$path] = $unencryptedSize;
} }