@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function load(array $config, ContainerBuilder $container): void |
| 19 | 19 | { |
| 20 | - $this->processConfiguration($this->getConfiguration([], $container), $config); |
|
| 20 | + $this->processConfiguration($this->getConfiguration([ ], $container), $config); |
|
| 21 | 21 | |
| 22 | 22 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 23 | 23 | |
@@ -63,10 +63,10 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function generate(): iterable |
| 65 | 65 | { |
| 66 | - $urls = []; |
|
| 66 | + $urls = [ ]; |
|
| 67 | 67 | |
| 68 | 68 | foreach ($this->getVendors() as $vendor) { |
| 69 | - $urls[] = $this->createVendorUrl($vendor); |
|
| 69 | + $urls[ ] = $this->createVendorUrl($vendor); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | return $urls; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | private function getTranslations(VendorInterface $vendor): Collection |
| 82 | 82 | { |
| 83 | - return $vendor->getTranslations()->filter(function (TranslationInterface $translation): bool { |
|
| 83 | + return $vendor->getTranslations()->filter(function(TranslationInterface $translation): bool { |
|
| 84 | 84 | return $this->localeInLocaleCodes($translation); |
| 85 | 85 | }); |
| 86 | 86 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | /** @var ChannelInterface $channel */ |
| 114 | 114 | $channel = $this->channelContext->getChannel(); |
| 115 | 115 | |
| 116 | - return $channel->getLocales()->map(function (LocaleInterface $locale): ?string { |
|
| 116 | + return $channel->getLocales()->map(function(LocaleInterface $locale): ?string { |
|
| 117 | 117 | return $locale->getCode(); |
| 118 | 118 | })->toArray(); |
| 119 | 119 | } |