@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * @param array $entry |
74 | - * @return array |
|
74 | + * @return string |
|
75 | 75 | */ |
76 | 76 | protected function formatCacheEntry($entry) { |
77 | 77 | if (isset($entry['path'])) { |
@@ -190,6 +190,9 @@ discard block |
||
190 | 190 | return $this->cache->getStatus($this->getSourcePath($file)); |
191 | 191 | } |
192 | 192 | |
193 | + /** |
|
194 | + * @param \OCP\Files\Cache\ICacheEntry[] $results |
|
195 | + */ |
|
193 | 196 | private function formatSearchResults($results) { |
194 | 197 | $results = array_filter($results, array($this, 'filterCacheEntry')); |
195 | 198 | $results = array_values($results); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * Wrapper around file_put_contents($filename, $data) |
54 | 54 | * |
55 | 55 | * @param string $filename |
56 | - * @param $data |
|
56 | + * @param string $data |
|
57 | 57 | * @return int|false |
58 | 58 | */ |
59 | 59 | public function file_put_contents($filename, $data) { |
@@ -413,6 +413,10 @@ |
||
413 | 413 | return $url; |
414 | 414 | } |
415 | 415 | |
416 | + /** |
|
417 | + * @param string $feature |
|
418 | + * @param string $value |
|
419 | + */ |
|
416 | 420 | public function triggerChange($feature, $value = null) { |
417 | 421 | if ($this->emitter) { |
418 | 422 | $this->emitter->emit('\OC\User', 'changeUser', array($this, $feature, $value)); |
@@ -1331,6 +1331,9 @@ |
||
1331 | 1331 | } |
1332 | 1332 | } |
1333 | 1333 | |
1334 | + /** |
|
1335 | + * @param string $lang |
|
1336 | + */ |
|
1334 | 1337 | protected static function findBestL10NOption($options, $lang) { |
1335 | 1338 | $fallback = $englishFallback = false; |
1336 | 1339 | foreach ($options as $option) { |