Completed
Push — master ( d898e2...4cc160 )
by Kamil
19:55
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/ManagingProductAttributesContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
      */
179 179
     public function theTypeFieldShouldBeDisabled()
180 180
     {
181
-       $currentPage = $this->currentPageResolver->getCurrentPageWithForm($this->createPage, $this->updatePage);
181
+        $currentPage = $this->currentPageResolver->getCurrentPageWithForm($this->createPage, $this->updatePage);
182 182
 
183 183
         Assert::true(
184 184
             $currentPage->isTypeDisabled(),
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.
src/Sylius/Behat/Page/Admin/Product/Attribute/UpdatePage.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      */
43 43
     protected function getCodeElement()
44 44
     {
45
-       return $this->getElement('code');
45
+        return $this->getElement('code');
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.