@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $path |
|
167 | + */ |
|
165 | 168 | private function rmObjects($path) { |
166 | 169 | $children = $this->getCache()->getFolderContents($path); |
167 | 170 | foreach ($children as $child) { |
@@ -364,6 +367,9 @@ discard block |
||
364 | 367 | return true; |
365 | 368 | } |
366 | 369 | |
370 | + /** |
|
371 | + * @param string $path |
|
372 | + */ |
|
367 | 373 | public function writeBack($tmpFile, $path) { |
368 | 374 | $stat = $this->stat($path); |
369 | 375 | if (empty($stat)) { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * @param \Icewind\SMB\Change $change |
105 | - * @return IChange|null |
|
105 | + * @return null|Change |
|
106 | 106 | */ |
107 | 107 | private function mapChange(\Icewind\SMB\Change $change) { |
108 | 108 | $path = $this->relativePath($change->getPath()); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * Creates a Folder that represents a non-existing path |
32 | 32 | * |
33 | 33 | * @param string $path path |
34 | - * @return string non-existing node class |
|
34 | + * @return NonExistingFile non-existing node class |
|
35 | 35 | */ |
36 | 36 | protected function createNonExistingNode($path) { |
37 | 37 | return new NonExistingFile($this->root, $this->view, $path); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * Creates a Folder that represents a non-existing path |
38 | 38 | * |
39 | 39 | * @param string $path path |
40 | - * @return string non-existing node class |
|
40 | + * @return NonExistingFolder non-existing node class |
|
41 | 41 | */ |
42 | 42 | protected function createNonExistingNode($path) { |
43 | 43 | return new NonExistingFolder($this->root, $this->view, $path); |
@@ -33,6 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @returns string |
35 | 35 | * @since 12 |
36 | + * @return string |
|
36 | 37 | */ |
37 | 38 | public function getIcon(); |
38 | 39 | } |
@@ -139,6 +139,9 @@ |
||
139 | 139 | return false; |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param string $path |
|
144 | + */ |
|
142 | 145 | public function writeBack($tmpFile, $path) { |
143 | 146 | $this->uploadFile($tmpFile, $path); |
144 | 147 | unlink($tmpFile); |
@@ -597,7 +597,7 @@ |
||
597 | 597 | * publish activity |
598 | 598 | * |
599 | 599 | * @param string $subject |
600 | - * @param array $parameters |
|
600 | + * @param string[] $parameters |
|
601 | 601 | * @param string $affectedUser |
602 | 602 | * @param int $fileId |
603 | 603 | * @param string $filePath |
@@ -194,6 +194,9 @@ |
||
194 | 194 | return $this->getCache()->getStatus($this->getSourcePath($file)); |
195 | 195 | } |
196 | 196 | |
197 | + /** |
|
198 | + * @param ICacheEntry[] $results |
|
199 | + */ |
|
197 | 200 | private function formatSearchResults($results) { |
198 | 201 | $results = array_filter($results, array($this, 'filterCacheEntry')); |
199 | 202 | $results = array_values($results); |
@@ -156,7 +156,7 @@ |
||
156 | 156 | /** |
157 | 157 | * @param string $gid |
158 | 158 | * @param string $displayName |
159 | - * @return \OCP\IGroup |
|
159 | + * @return null|Group |
|
160 | 160 | */ |
161 | 161 | protected function getGroupObject($gid, $displayName = null) { |
162 | 162 | $backends = array(); |