@@ -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, |
@@ -598,6 +598,9 @@ |
||
598 | 598 | } |
599 | 599 | } |
600 | 600 | |
601 | + /** |
|
602 | + * @param string $path |
|
603 | + */ |
|
601 | 604 | public function getMimeTypeFromRemote($path) { |
602 | 605 | try { |
603 | 606 | $response = $this->propfind($path); |
@@ -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 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | * @param array $body |
57 | 57 | * @param array $query |
58 | 58 | * @param array $headers |
59 | - * @return resource|string |
|
59 | + * @return string |
|
60 | 60 | * @throws \InvalidArgumentException |
61 | 61 | */ |
62 | 62 | protected function request($method, $url, array $body = [], array $query = [], array $headers = []) { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | |
135 | 135 | /** |
136 | 136 | * @param string $url |
137 | - * @return bool|string |
|
137 | + * @return string |
|
138 | 138 | */ |
139 | 139 | private function downloadStatus($url) { |
140 | 140 | try { |
@@ -104,7 +104,7 @@ |
||
104 | 104 | * @param RequestInterface $request |
105 | 105 | * @param ResponseInterface $response |
106 | 106 | * |
107 | - * @return bool|void |
|
107 | + * @return null|false |
|
108 | 108 | */ |
109 | 109 | public function httpPost(RequestInterface $request, ResponseInterface $response) { |
110 | 110 | $node = $this->server->tree->getNodeForPath($this->server->getRequestUri()); |