@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Search for files by mimetype |
69 | 69 | * @param string $mimetype |
70 | - * @return array |
|
70 | + * @return \OC\Files\FileInfo[] |
|
71 | 71 | * @since 6.0.0 |
72 | 72 | */ |
73 | 73 | static public function searchByMime($mimetype) { |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param object|string $object an object or classname |
|
46 | + * @param \OCP\AppFramework\Controller $object an object or classname |
|
47 | 47 | * @param string $method the method which we want to inspect |
48 | 48 | * @throws \ReflectionException |
49 | 49 | */ |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | - * @param $source |
|
65 | - * @param $path |
|
64 | + * @param resource $source |
|
65 | + * @param string $path |
|
66 | 66 | * @return resource |
67 | 67 | */ |
68 | 68 | public static function wrap($source, $path) { |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | return parent::stream_write($data); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param string $data |
|
127 | + */ |
|
125 | 128 | private function updateHashingContexts($data) { |
126 | 129 | foreach ($this->hashingContexts as $ctx) { |
127 | 130 | \hash_update($ctx, $data); |
@@ -195,7 +198,7 @@ discard block |
||
195 | 198 | } |
196 | 199 | |
197 | 200 | /** |
198 | - * @return mixed |
|
201 | + * @return string |
|
199 | 202 | * @return string |
200 | 203 | */ |
201 | 204 | private function getPathFromStreamContext() { |
@@ -450,6 +450,9 @@ |
||
450 | 450 | return (int)$this->getId($parent); |
451 | 451 | } |
452 | 452 | |
453 | + /** |
|
454 | + * @param string $path |
|
455 | + */ |
|
453 | 456 | private function getParentPath($path) { |
454 | 457 | $parent = \dirname($path); |
455 | 458 | if ($parent === '.') { |
@@ -102,6 +102,9 @@ discard block |
||
102 | 102 | } |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @param string $path |
|
107 | + */ |
|
105 | 108 | protected function getParents($path) { |
106 | 109 | $parts = \explode('/', $path); |
107 | 110 | $parent = ''; |
@@ -125,6 +128,10 @@ discard block |
||
125 | 128 | $this->inBatch = true; |
126 | 129 | } |
127 | 130 | |
131 | + /** |
|
132 | + * @param integer $time |
|
133 | + * @param integer $sizeDifference |
|
134 | + */ |
|
128 | 135 | private function addToBatch($internalPath, $time, $sizeDifference) { |
129 | 136 | if (!isset($this->batch[$internalPath])) { |
130 | 137 | $this->batch[$internalPath] = [ |