Completed
Pull Request — master (#17)
by Kamil
26:17
created
src/Sylius/Bundle/ThemeBundle/Configuration/ThemeConfiguration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $screenshotNodeDefinition
105 105
             ->validate()
106
-                ->ifTrue(function ($screenshot) {
106
+                ->ifTrue(function($screenshot) {
107 107
                     return [] === $screenshot || ['path' => ''] === $screenshot;
108 108
                 })
109 109
                 ->thenInvalid('Screenshot cannot be empty!')
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $screenshotNodeDefinition
112 112
             ->beforeNormalization()
113 113
                 ->ifString()
114
-                ->then(function ($value) {
114
+                ->then(function($value) {
115 115
                     return ['path' => $value];
116 116
                 })
117 117
         ;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $authorNodeDefinition = $authorsNodeDefinition->prototype('array');
138 138
         $authorNodeDefinition
139 139
             ->validate()
140
-                ->ifTrue(function ($author) {
140
+                ->ifTrue(function($author) {
141 141
                     return [] === $author;
142 142
                 })
143 143
                 ->thenInvalid('Author cannot be empty!')
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Loader/ThemeLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     private function convertParentsNamesToParentsObjects($themeName, array $parentsNames, array $existingThemes)
156 156
     {
157
-        return array_map(function ($parentName) use ($themeName, $existingThemes) {
157
+        return array_map(function($parentName) use ($themeName, $existingThemes) {
158 158
             if (!isset($existingThemes[$parentName])) {
159 159
                 throw new ThemeLoadingFailedException(sprintf(
160 160
                     'Unexisting theme "%s" is required by "%s".',
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays)
176 176
     {
177
-        return array_map(function (array $authorArray) {
177
+        return array_map(function(array $authorArray) {
178 178
             return $this->themeAuthorFactory->createFromArray($authorArray);
179 179
         }, $authorsArrays);
180 180
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays)
188 188
     {
189
-        return array_map(function (array $screenshotArray) {
189
+        return array_map(function(array $screenshotArray) {
190 190
             return $this->themeScreenshotFactory->createFromArray($screenshotArray);
191 191
         }, $screenshotsArrays);
192 192
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/PrioritizedServiceRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         Assert::isInstanceOf(
97 97
             $service,
98 98
             $this->interface,
99
-            $this->context . ' needs to implement "%2$s", "%s" given.'
99
+            $this->context.' needs to implement "%2$s", "%s" given.'
100 100
         );
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingZonesContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
         Assert::eq(
233 233
             1,
234 234
             $this->updatePage->countMembers(),
235
-            sprintf('Zone %s should have only %s zone member',$zone->getName(), $zoneMember->getCode())
235
+            sprintf('Zone %s should have only %s zone member', $zone->getName(), $zoneMember->getCode())
236 236
         );
237 237
     }
238 238
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingCurrenciesContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      */
201 201
     public function iChangeExchangeRateTo($exchangeRate)
202 202
     {
203
-       $this->updatePage->changeExchangeRate($exchangeRate);
203
+        $this->updatePage->changeExchangeRate($exchangeRate);
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Zone/CreatePage.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
      */
49 49
     public function chooseMember($name)
50 50
     {
51
-        $selectItems = $this->getDocument()->waitFor(2, function () {
51
+        $selectItems = $this->getDocument()->waitFor(2, function() {
52 52
             return $this->getDocument()->findAll('css', 'div[data-form-type="collection"] select');
53 53
         });
54 54
         $lastSelectItem = end($selectItems);
Please login to merge, or discard this patch.
ResourceBundle/Form/EventSubscriber/ResourceTranslationsSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $translatable = $parent->getData();
70 70
 
71 71
         foreach ($data as $locale => $translation) {
72
-            if(null === $translation) {
72
+            if (null === $translation) {
73 73
                 unset($data[$locale]);
74 74
                 continue;
75 75
             }
Please login to merge, or discard this patch.
Sylius/Bundle/ThemeBundle/spec/Settings/ThemeSettingsSchemaProviderSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $this
106 106
             ->shouldThrow(new \InvalidArgumentException(sprintf(
107 107
                 'Could not find settings schema of theme "Candy shop" (candy/shop) in file "%s"',
108
-                $this->vfsStream->url() . '/Settings.php'
108
+                $this->vfsStream->url().'/Settings.php'
109 109
             )))
110 110
             ->during('getSchema', [$theme])
111 111
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/SettingsBundle/Twig/SettingsExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function getFunctions()
38 38
     {
39 39
         return [
40
-             new \Twig_SimpleFunction('sylius_settings', [$this->helper, 'getSettings']),
40
+                new \Twig_SimpleFunction('sylius_settings', [$this->helper, 'getSettings']),
41 41
         ];
42 42
     }
43 43
 
Please login to merge, or discard this patch.