@@ -64,7 +64,6 @@ discard block |
||
| 64 | 64 | * @param IConfig $config |
| 65 | 65 | * @param IL10N $l |
| 66 | 66 | * @param IURLGenerator $urlGenerator |
| 67 | - * @param \OC_Defaults $defaults |
|
| 68 | 67 | * @param IAppData $appData |
| 69 | 68 | * @param ICacheFactory $cacheFactory |
| 70 | 69 | * @param Util $util |
@@ -254,7 +253,7 @@ discard block |
||
| 254 | 253 | * |
| 255 | 254 | * @param string $app name of the app |
| 256 | 255 | * @param string $image filename of the image |
| 257 | - * @return bool|string false if image should not replaced, otherwise the location of the image |
|
| 256 | + * @return string|false false if image should not replaced, otherwise the location of the image |
|
| 258 | 257 | */ |
| 259 | 258 | public function replaceImagePath($app, $image) { |
| 260 | 259 | if($app==='') { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * get requested end-points from the requested service |
| 92 | 92 | * |
| 93 | 93 | * @param $decodedServices |
| 94 | - * @param $service |
|
| 94 | + * @param string $service |
|
| 95 | 95 | * @return array |
| 96 | 96 | */ |
| 97 | 97 | protected function getEndpoints($decodedServices, $service) { |
@@ -74,6 +74,10 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $urn |
|
| 79 | + * @param resource $stream |
|
| 80 | + */ |
|
| 77 | 81 | protected function singlePartUpload($urn, $stream) { |
| 78 | 82 | $this->getConnection()->putObject([ |
| 79 | 83 | 'Bucket' => $this->bucket, |
@@ -82,6 +86,10 @@ discard block |
||
| 82 | 86 | ]); |
| 83 | 87 | } |
| 84 | 88 | |
| 89 | + /** |
|
| 90 | + * @param string $urn |
|
| 91 | + * @param resource $stream |
|
| 92 | + */ |
|
| 85 | 93 | protected function multiPartUpload($urn, $stream) { |
| 86 | 94 | $uploader = new MultipartUploader($this->getConnection(), $stream, [ |
| 87 | 95 | 'bucket' => $this->bucket, |
@@ -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 |
@@ -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 |
@@ -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 |