@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | public function generate(ChannelInterface $channel): iterable |
| 68 | 68 | { |
| 69 | 69 | $this->channel = $channel; |
| 70 | - $urls = []; |
|
| 70 | + $urls = [ ]; |
|
| 71 | 71 | |
| 72 | 72 | foreach ($this->getVendors() as $vendor) { |
| 73 | - $urls[] = $this->createVendorUrl($vendor); |
|
| 73 | + $urls[ ] = $this->createVendorUrl($vendor); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | return $urls; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | private function getTranslations(VendorInterface $vendor): Collection |
| 86 | 86 | { |
| 87 | - return $vendor->getTranslations()->filter(function (TranslationInterface $translation): bool { |
|
| 87 | + return $vendor->getTranslations()->filter(function(TranslationInterface $translation): bool { |
|
| 88 | 88 | return $this->localeInLocaleCodes($translation); |
| 89 | 89 | }); |
| 90 | 90 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | private function getLocaleCodes(): array |
| 113 | 113 | { |
| 114 | - return $this->channel->getLocales()->map(function (LocaleInterface $locale): ?string { |
|
| 114 | + return $this->channel->getLocales()->map(function(LocaleInterface $locale): ?string { |
|
| 115 | 115 | return $locale->getCode(); |
| 116 | 116 | })->toArray(); |
| 117 | 117 | } |