@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | protected function getMediaAttributes(ContentBlock $contentBlock): array |
26 | 26 | { |
27 | - return array_reduce($contentBlock->mediaLibraryCollectionNames(), function ($mediaAttributes, $collectionName) use ($contentBlock) { |
|
27 | + return array_reduce($contentBlock->mediaLibraryCollectionNames(), function($mediaAttributes, $collectionName) use ($contentBlock) { |
|
28 | 28 | $mediaAttributes[$collectionName] = fractal($contentBlock->getMedia($collectionName), new MediaTransformer())->toArray(); |
29 | 29 | |
30 | 30 | return $mediaAttributes; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | protected function getTranslatedAttributes(ContentBlock $contentBlock): array |
35 | 35 | { |
36 | - return array_reduce($contentBlock->translatable, function ($translatables, $attribute) use ($contentBlock) { |
|
36 | + return array_reduce($contentBlock->translatable, function($translatables, $attribute) use ($contentBlock) { |
|
37 | 37 | foreach (config('app.locales') as $locale) { |
38 | 38 | $translatables[$attribute][$locale] = $contentBlock->getTranslation($attribute, $locale); |
39 | 39 | } |