@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * |
183 | 183 | * @param string $path |
184 | 184 | * |
185 | - * @return string |
|
185 | + * @return \CFResponse |
|
186 | 186 | */ |
187 | 187 | protected function getObjectUrl($path) |
188 | 188 | { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * |
197 | 197 | * @throws \S3_Exception |
198 | 198 | * |
199 | - * @return bool |
|
199 | + * @return boolean|null |
|
200 | 200 | */ |
201 | 201 | protected function objectExists($objectPath) |
202 | 202 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
207 | - * @param mixed $message |
|
207 | + * @param string $message |
|
208 | 208 | * @param array $context |
209 | 209 | */ |
210 | 210 | protected function logError($message, array $context = []) |
@@ -130,6 +130,8 @@ |
||
130 | 130 | |
131 | 131 | /** |
132 | 132 | * {@inheritdoc} |
133 | + * @param string $path |
|
134 | + * @param string $filter |
|
133 | 135 | */ |
134 | 136 | protected function getFileUrl($path, $filter) |
135 | 137 | { |
@@ -70,6 +70,9 @@ |
||
70 | 70 | return new FileBinary($path, $mimeType, $extension); |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string|null $mimeType |
|
75 | + */ |
|
73 | 76 | private function getExtension(?string $mimeType): ?string |
74 | 77 | { |
75 | 78 | if ($this->extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { |
@@ -61,6 +61,9 @@ |
||
61 | 61 | ); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string|false $mimeType |
|
66 | + */ |
|
64 | 67 | private function getExtension(?string $mimeType): ?string |
65 | 68 | { |
66 | 69 | if ($this->extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { |
@@ -171,6 +171,9 @@ |
||
171 | 171 | return $defaultImage; |
172 | 172 | } |
173 | 173 | |
174 | + /** |
|
175 | + * @param string|null $mimeType |
|
176 | + */ |
|
174 | 177 | private function getExtension(?string $mimeType): ?string |
175 | 178 | { |
176 | 179 | if ($this->extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { |
@@ -135,6 +135,9 @@ |
||
135 | 135 | }, $path, $filter, $hash); |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param string $hash |
|
140 | + */ |
|
138 | 141 | private function createRedirectResponse(\Closure $url, string $path, string $filter, ?string $hash = null): RedirectResponse |
139 | 142 | { |
140 | 143 | try { |
@@ -236,7 +236,7 @@ |
||
236 | 236 | } |
237 | 237 | |
238 | 238 | /** |
239 | - * @param string|string[]|null $paths |
|
239 | + * @param null|string $paths |
|
240 | 240 | * @param string|string[]|null $filters |
241 | 241 | */ |
242 | 242 | public function remove($paths = null, $filters = null) |