@@ -19,10 +19,10 @@ |
||
19 | 19 | */ |
20 | 20 | public function load(array $config, ContainerBuilder $container): void |
21 | 21 | { |
22 | - $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
|
22 | + $config = $this->processConfiguration($this->getConfiguration([ ], $container), $config); |
|
23 | 23 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
24 | 24 | |
25 | - $this->registerResources('odiseo_blog', $config['driver'], $config['resources'], $container); |
|
25 | + $this->registerResources('odiseo_blog', $config[ 'driver' ], $config[ 'resources' ], $container); |
|
26 | 26 | |
27 | 27 | $configFiles = [ |
28 | 28 | 'services.yml', |
@@ -167,7 +167,7 @@ |
||
167 | 167 | */ |
168 | 168 | public function getImagesByType(string $type): Collection |
169 | 169 | { |
170 | - return $this->images->filter(function (ImageInterface $image) use ($type): bool { |
|
170 | + return $this->images->filter(function(ImageInterface $image) use ($type): bool { |
|
171 | 171 | return $type === $image->getType(); |
172 | 172 | }); |
173 | 173 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | do { |
46 | 46 | $hash = bin2hex(random_bytes(16)); |
47 | - $path = $this->expandPath($hash . '.' . $file->guessExtension()); |
|
47 | + $path = $this->expandPath($hash.'.'.$file->guessExtension()); |
|
48 | 48 | } while ($this->filesystem->has($path)); |
49 | 49 | |
50 | 50 | $image->setPath($path); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | 'mapped' => false, |
37 | 37 | 'constraints' => [ |
38 | 38 | new RecaptchaTrue([ |
39 | - 'groups' => ['odiseo_user_comment'] |
|
39 | + 'groups' => [ 'odiseo_user_comment' ] |
|
40 | 40 | ]) |
41 | 41 | ] |
42 | 42 | ]) |