@@ -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 |
@@ -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 |
@@ -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)) { |
@@ -119,6 +119,9 @@ |
||
| 119 | 119 | return Psr7\modify_request($request, $modify); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $string |
|
| 124 | + */ |
|
| 122 | 125 | private function signString($string, CredentialsInterface $credentials) |
| 123 | 126 | { |
| 124 | 127 | return base64_encode( |