Completed
Push — master ( d898e2...4cc160 )
by Kamil
19:55
created
src/Sylius/Bundle/ThemeBundle/Synchronizer/ThemeSynchronizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 ));
Please login to merge, or discard this patch.
Sylius/Bundle/ThemeBundle/Tests/DependencyInjection/ConfigurationTest.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Factory/ThemeFactorySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Factory/ThemeAuthorFactorySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.
spec/Configuration/Provider/FilesystemConfigurationProviderSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Hydrator/ThemeHydratorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Translation/ThemeAwareTranslator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Sylius/Bundle/ThemeBundle/Translation/Provider/ThemeTranslationResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Translation/Provider/ThemeTranslatorResourceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.