@@ -103,7 +103,7 @@ discard block |
||
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 |
||
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 |
||
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!') |
@@ -154,7 +154,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -96,7 +96,7 @@ |
||
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 | } |
@@ -232,7 +232,7 @@ |
||
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 |
@@ -200,7 +200,7 @@ |
||
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 | /** |
@@ -48,7 +48,7 @@ |
||
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); |
@@ -69,7 +69,7 @@ |
||
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 | } |
@@ -105,7 +105,7 @@ |
||
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 | ; |
@@ -37,7 +37,7 @@ |
||
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 |