@@ -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 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | function let() |
29 | 29 | { |
30 | - $this->beConstructedWith(function (){}, function (){}); |
|
30 | + $this->beConstructedWith(function() {}, function() {}); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | function it_is_initializable() |
@@ -42,9 +42,9 @@ discard block |
||
42 | 42 | |
43 | 43 | function it_uses_callback_to_build_settings(SettingsBuilderInterface $settingsBuilder) |
44 | 44 | { |
45 | - $this->beConstructedWith(function (SettingsBuilderInterface $settingsBuilder) { |
|
45 | + $this->beConstructedWith(function(SettingsBuilderInterface $settingsBuilder) { |
|
46 | 46 | $settingsBuilder->setDefaults(['foo' => 'bar']); |
47 | - }, function (){}); |
|
47 | + }, function() {}); |
|
48 | 48 | |
49 | 49 | $settingsBuilder->setDefaults(['foo' => 'bar'])->shouldBeCalled(); |
50 | 50 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | function it_uses_callback_to_build_form(FormBuilderInterface $formBuilder) |
55 | 55 | { |
56 | - $this->beConstructedWith(function (){}, function (FormBuilderInterface $formBuilder) { |
|
56 | + $this->beConstructedWith(function() {}, function(FormBuilderInterface $formBuilder) { |
|
57 | 57 | $formBuilder->add('bono', 'u2'); |
58 | 58 | }); |
59 | 59 |
@@ -42,7 +42,7 @@ |
||
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 | /** |
@@ -23,6 +23,6 @@ |
||
23 | 23 | */ |
24 | 24 | public function resolve($path, ThemeInterface $theme) |
25 | 25 | { |
26 | - return str_replace('bundles/', 'bundles/_themes/' . $theme->getName() . '/', $path); |
|
26 | + return str_replace('bundles/', 'bundles/_themes/'.$theme->getName().'/', $path); |
|
27 | 27 | } |
28 | 28 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | $this->domain = $parts[0]; |
58 | - $this->locale = $parts[1] . '_' . str_replace('/', '-', $theme->getName()); |
|
58 | + $this->locale = $parts[1].'_'.str_replace('/', '-', $theme->getName()); |
|
59 | 59 | $this->format = $parts[2]; |
60 | 60 | } |
61 | 61 |
@@ -127,7 +127,7 @@ |
||
127 | 127 | $locale = $this->getLocale(); |
128 | 128 | } |
129 | 129 | |
130 | - $locale = $locale . '_' . str_replace('/', '-', $theme->getName()); |
|
130 | + $locale = $locale.'_'.str_replace('/', '-', $theme->getName()); |
|
131 | 131 | |
132 | 132 | return $locale; |
133 | 133 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | public function getMatchers() |
42 | 42 | { |
43 | 43 | return [ |
44 | - 'haveNameAndPath' => function (ThemeInterface $theme, $expectedName, $expectedPath) { |
|
44 | + 'haveNameAndPath' => function(ThemeInterface $theme, $expectedName, $expectedPath) { |
|
45 | 45 | return $expectedName === $theme->getName() |
46 | 46 | && $expectedPath === $theme->getPath() |
47 | 47 | ; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function removeAuthor(ThemeAuthor $author) |
142 | 142 | { |
143 | - $this->authors = array_filter($this->authors, function ($currentAuthor) use ($author) { |
|
143 | + $this->authors = array_filter($this->authors, function($currentAuthor) use ($author) { |
|
144 | 144 | return $currentAuthor !== $author; |
145 | 145 | }); |
146 | 146 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function removeParent(ThemeInterface $theme) |
168 | 168 | { |
169 | - $this->parents = array_filter($this->parents, function ($currentTheme) use ($theme) { |
|
169 | + $this->parents = array_filter($this->parents, function($currentTheme) use ($theme) { |
|
170 | 170 | return $currentTheme !== $theme; |
171 | 171 | }); |
172 | 172 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function removeScreenshot(ThemeScreenshot $screenshot) |
194 | 194 | { |
195 | - $this->screenshots = array_filter($this->screenshots, function ($currentScreenshot) use ($screenshot) { |
|
195 | + $this->screenshots = array_filter($this->screenshots, function($currentScreenshot) use ($screenshot) { |
|
196 | 196 | return $currentScreenshot !== $screenshot; |
197 | 197 | }); |
198 | 198 | } |