@@ -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 | { |
@@ -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 { |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use Symfony\Component\Console\Input\InputInterface; |
| 16 | 16 | use Symfony\Component\Console\Output\OutputInterface; |
| 17 | 17 | use Symfony\Component\Console\Style\SymfonyStyle; |
| 18 | -use Symfony\Component\Console\Terminal; |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * @internal |
@@ -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) |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | return new FileBinary($path, $mimeType, $extension); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @return string|null |
|
| 84 | + */ |
|
| 82 | 85 | private function getExtension(?string $mimeType): ?string |
| 83 | 86 | { |
| 84 | 87 | if ($this->extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { |
@@ -66,6 +66,11 @@ |
||
| 66 | 66 | ); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string|false $mimeType |
|
| 71 | + * |
|
| 72 | + * @return string|null |
|
| 73 | + */ |
|
| 69 | 74 | private function getExtension(?string $mimeType): ?string |
| 70 | 75 | { |
| 71 | 76 | if ($this->extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { |
@@ -176,6 +176,11 @@ |
||
| 176 | 176 | return $defaultImage; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string|null $mimeType |
|
| 181 | + * |
|
| 182 | + * @return string|null |
|
| 183 | + */ |
|
| 179 | 184 | private function getExtension(?string $mimeType): ?string |
| 180 | 185 | { |
| 181 | 186 | if ($this->extensionGuesser instanceof DeprecatedExtensionGuesserInterface) { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Liip\ImagineBundle\DependencyInjection\Compiler; |
| 4 | 4 | |
| 5 | -use Liip\ImagineBundle\Imagine\Filter\Loader\NonFunctionalPasteFilterLoader; |
|
| 6 | -use Liip\ImagineBundle\Imagine\Filter\Loader\NonFunctionalWatermarkFilterLoader; |
|
| 7 | 5 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
| 8 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 9 | 7 | |