@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * appending or prepending to the ones previously set for this namespace. |
149 | 149 | * |
150 | 150 | * @param string $prefix The prefix/namespace, with trailing '\\' |
151 | - * @param array|string $paths The PSR-4 base directories |
|
151 | + * @param string $paths The PSR-4 base directories |
|
152 | 152 | * @param bool $prepend Whether to prepend the directories |
153 | 153 | * |
154 | 154 | * @throws \InvalidArgumentException |
@@ -367,6 +367,10 @@ discard block |
||
367 | 367 | return $file; |
368 | 368 | } |
369 | 369 | |
370 | + /** |
|
371 | + * @param string $class |
|
372 | + * @param string $ext |
|
373 | + */ |
|
370 | 374 | private function findFileWithExtension($class, $ext) |
371 | 375 | { |
372 | 376 | // PSR-4 lookup |
@@ -338,7 +338,7 @@ |
||
338 | 338 | * |
339 | 339 | * @param int $size file size in bytes |
340 | 340 | * @param array $files override '.htaccess' and '.user.ini' locations |
341 | - * @return bool|int false on failure, size on success |
|
341 | + * @return integer false on failure, size on success |
|
342 | 342 | */ |
343 | 343 | public static function setUploadLimit($size, $files = []) { |
344 | 344 | //don't allow user to break his config |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | * @param int $r |
269 | 269 | * @param int $g |
270 | 270 | * @param int $b |
271 | - * @return double[] Array containing h s l in [0, 1] range |
|
271 | + * @return double Array containing h s l in [0, 1] range |
|
272 | 272 | */ |
273 | 273 | private function rgbToHsl($r, $g, $b) { |
274 | 274 | $r /= 255.0; |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | /** |
308 | 308 | * @param string $text |
309 | - * @return int[] Array containting r g b in the range [0, 255] |
|
309 | + * @return double[] Array containting r g b in the range [0, 255] |
|
310 | 310 | */ |
311 | 311 | private function avatarBackgroundColor($text) { |
312 | 312 | $hash = preg_replace('/[^0-9a-f]+/', '', $text); |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * @param double $h Hue in range [0, 1] |
356 | 356 | * @param double $s Saturation in range [0, 1] |
357 | 357 | * @param double $l Lightness in range [0, 1] |
358 | - * @return int[] Array containing r g b in the range [0, 255] |
|
358 | + * @return double[] Array containing r g b in the range [0, 255] |
|
359 | 359 | */ |
360 | 360 | private function hslToRgb($h, $s, $l){ |
361 | 361 | $hue2rgb = function ($p, $q, $t){ |
@@ -95,7 +95,7 @@ |
||
95 | 95 | * @param ILogger $logger |
96 | 96 | * @param ITimeFactory $timeFactory |
97 | 97 | * @param L10NFactory $l10nFactory |
98 | - * @param IUrlGenerator $urlGenerator |
|
98 | + * @param IURLGenerator $urlGenerator |
|
99 | 99 | * @param Defaults $defaults |
100 | 100 | * @param string $userId |
101 | 101 | */ |
@@ -261,6 +261,9 @@ discard block |
||
261 | 261 | return '"' . $this->info->getEtag() . '"'; |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param string $path |
|
266 | + */ |
|
264 | 267 | private function getPartFileBasePath($path) { |
265 | 268 | $partFileInStorage = \OC::$server->getConfig()->getSystemValue('part_file_in_storage', true); |
266 | 269 | if ($partFileInStorage) { |
@@ -606,6 +609,9 @@ discard block |
||
606 | 609 | return $this->info->getChecksum(); |
607 | 610 | } |
608 | 611 | |
612 | + /** |
|
613 | + * @param string $string |
|
614 | + */ |
|
609 | 615 | protected function header($string) { |
610 | 616 | \header($string); |
611 | 617 | } |
@@ -135,6 +135,10 @@ |
||
135 | 135 | return parent::moveFromCache($sourceCache, $sourcePath, $targetPath); |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param ICacheEntry $entry |
|
140 | + * @param string $path |
|
141 | + */ |
|
138 | 142 | protected function formatCacheEntry($entry, $path = null) { |
139 | 143 | if (is_null($path)) { |
140 | 144 | $path = isset($entry['path']) ? $entry['path'] : ''; |
@@ -76,7 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * @param IManager $contactsManager |
|
79 | + * @param IContactsManager $contactsManager |
|
80 | 80 | */ |
81 | 81 | public function setupSystemContactsProvider(IContactsManager $contactsManager) { |
82 | 82 | /** @var ContactsManager $cm */ |
@@ -420,7 +420,7 @@ |
||
420 | 420 | |
421 | 421 | /** |
422 | 422 | * Check if app has been installed from git |
423 | - * @param string $name name of the application to remove |
|
423 | + * @param string $appId |
|
424 | 424 | * @return boolean |
425 | 425 | * |
426 | 426 | * The function will check if the path contains a .git folder |
@@ -67,7 +67,7 @@ |
||
67 | 67 | * |
68 | 68 | * @param string $path source path |
69 | 69 | * @param string $destination destination path |
70 | - * @return bool|void false to stop handling, void to skip this handler |
|
70 | + * @return null|false false to stop handling, void to skip this handler |
|
71 | 71 | */ |
72 | 72 | public function performMove($path, $destination) { |
73 | 73 | if (!$this->server->tree->nodeExists($destination)) { |