Completed
Push — master ( 64f4aa...2c8981 )
by Kamil
23:00
created
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/spec/Schema/CallbackSchemaSpec.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Asset/PathResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
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
 }
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] . '_' . str_replace('/', '-', $theme->getName());
58
+        $this->locale = $parts[1].'_'.str_replace('/', '-', $theme->getName());
59 59
         $this->format = $parts[2];
60 60
     }
61 61
 
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 . '_' . str_replace('/', '-', $theme->getName());
130
+        $locale = $locale.'_'.str_replace('/', '-', $theme->getName());
131 131
 
132 132
         return $locale;
133 133
     }
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
@@ -41,7 +41,7 @@
 block discarded – undo
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
                 ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Model/Theme.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.