@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $existingThemes = array_udiff( |
63 | 63 | $persistedThemes, |
64 | 64 | $removedThemes, |
65 | - function (ThemeInterface $firstTheme, ThemeInterface $secondTheme) { |
|
65 | + function(ThemeInterface $firstTheme, ThemeInterface $secondTheme) { |
|
66 | 66 | return (int) ($firstTheme->getName() === $secondTheme->getName()); |
67 | 67 | } |
68 | 68 | ); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | return []; |
110 | 110 | } |
111 | 111 | |
112 | - $loadedThemesNames = array_map(function (ThemeInterface $theme) { |
|
112 | + $loadedThemesNames = array_map(function(ThemeInterface $theme) { |
|
113 | 113 | return $theme->getName(); |
114 | 114 | }, $loadedThemes); |
115 | 115 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | foreach ($loadedTheme->getParents() as $parentTheme) { |
140 | 140 | $correspondingTheme = current(array_filter( |
141 | 141 | array_merge($existingThemes, $loadedThemes), |
142 | - function (ThemeInterface $theme) use ($parentTheme) { |
|
142 | + function(ThemeInterface $theme) use ($parentTheme) { |
|
143 | 143 | return $theme->getName() === $parentTheme->getName(); |
144 | 144 | } |
145 | 145 | )); |
@@ -27,12 +27,12 @@ |
||
27 | 27 | public function it_uses_app_themes_filesystem_as_the_default_source() |
28 | 28 | { |
29 | 29 | $this->assertProcessedConfigurationEquals( |
30 | - [ |
|
31 | - [], |
|
32 | - ], |
|
33 | - ['sources' => ['filesystem' => ['locations' => ['%kernel.root_dir%/themes', '%kernel.root_dir%/../vendor/sylius/themes']]]], |
|
30 | + [ |
|
31 | + [], |
|
32 | + ], |
|
33 | + ['sources' => ['filesystem' => ['locations' => ['%kernel.root_dir%/themes', '%kernel.root_dir%/../vendor/sylius/themes']]]], |
|
34 | 34 | 'sources' |
35 | - ); |
|
35 | + ); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function getMatchers() |
49 | 49 | { |
50 | 50 | return [ |
51 | - 'beThemeWithName' => function (ThemeInterface $theme, $expectedName) { |
|
51 | + 'beThemeWithName' => function(ThemeInterface $theme, $expectedName) { |
|
52 | 52 | return $expectedName === $theme->getName(); |
53 | 53 | }, |
54 | 54 | ]; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function getMatchers() |
46 | 46 | { |
47 | 47 | return [ |
48 | - 'beAnAuthorWithNameAndEmail' => function (ThemeAuthor $themeAuthor, $name, $email) { |
|
48 | + 'beAnAuthorWithNameAndEmail' => function(ThemeAuthor $themeAuthor, $name, $email) { |
|
49 | 49 | return $name === $themeAuthor->getName() && $email === $themeAuthor->getEmail(); |
50 | 50 | }, |
51 | 51 | ]; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | public function getMatchers() |
88 | 88 | { |
89 | 89 | return [ |
90 | - 'haveAllElementsOf' => function (array $subject, $type) { |
|
90 | + 'haveAllElementsOf' => function(array $subject, $type) { |
|
91 | 91 | foreach ($subject as $element) { |
92 | 92 | if ($type === get_class($element) || is_subclass_of($element, $type)) { |
93 | 93 | return true; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | function it_proxies_hydrating_and_converts_parents_to_collection_if_needed(HydratorInterface $decoratedHydrator) |
59 | 59 | { |
60 | - $decoratedHydrator->hydrate(Argument::that(function (array $data) { |
|
60 | + $decoratedHydrator->hydrate(Argument::that(function(array $data) { |
|
61 | 61 | if (!isset($data['data']) || $data['data'] !== 'data') { |
62 | 62 | return false; |
63 | 63 | } |
@@ -127,7 +127,7 @@ |
||
127 | 127 | $locale = $this->getLocale(); |
128 | 128 | } |
129 | 129 | |
130 | - $locale = $locale . '_' . $theme->getCode();; |
|
130 | + $locale = $locale.'_'.$theme->getCode(); ; |
|
131 | 131 | |
132 | 132 | return $locale; |
133 | 133 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | $this->domain = $parts[0]; |
58 | - $this->locale = $parts[1] . '_' . $theme->getCode(); |
|
58 | + $this->locale = $parts[1].'_'.$theme->getCode(); |
|
59 | 59 | $this->format = $parts[2]; |
60 | 60 | } |
61 | 61 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | */ |
73 | 73 | public function getResourcesLocales() |
74 | 74 | { |
75 | - return array_values(array_unique(array_map(function (TranslationResourceInterface $translationResource) { |
|
75 | + return array_values(array_unique(array_map(function(TranslationResourceInterface $translationResource) { |
|
76 | 76 | return $translationResource->getLocale(); |
77 | 77 | }, $this->getResources()))); |
78 | 78 | } |