Completed
Pull Request — master (#16)
by Kamil
23:36
created
src/Sylius/Bundle/MetadataBundle/Form/Type/Custom/PageMetadataType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,14 +79,14 @@
 block discarded – undo
79 79
     private function addKeywordsTransformer(FormBuilderInterface $builder)
80 80
     {
81 81
         $builder->get('keywords')->addModelTransformer(new CallbackTransformer(
82
-            function ($originalKeywords) {
82
+            function($originalKeywords) {
83 83
                 if (!is_array($originalKeywords)) {
84 84
                     return '';
85 85
                 }
86 86
 
87 87
                 return implode(', ', $originalKeywords);
88 88
             },
89
-            function ($submittedKeywords) {
89
+            function($submittedKeywords) {
90 90
                 return array_map('trim', explode(',', $submittedKeywords));
91 91
             }
92 92
         ));
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      */
237 237
     public function getItemUnitsByVariant(ProductVariantInterface $variant)
238 238
     {
239
-        return $this->getItemUnits()->filter(function (OrderItemUnitInterface $itemUnit) use ($variant) {
239
+        return $this->getItemUnits()->filter(function(OrderItemUnitInterface $itemUnit) use ($variant) {
240 240
             return $variant === $itemUnit->getStockable();
241 241
         });
242 242
     }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             return null;
301 301
         }
302 302
 
303
-        $payment = $this->payments->filter(function (BasePaymentInterface $payment) use ($state) {
303
+        $payment = $this->payments->filter(function(BasePaymentInterface $payment) use ($state) {
304 304
             return $payment->getState() === $state;
305 305
         })->last();
306 306
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodChoiceType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function configureOptions(OptionsResolver $resolver)
85 85
     {
86
-        $choiceList = function (Options $options) {
86
+        $choiceList = function(Options $options) {
87 87
             if (isset($options['subject'])) {
88 88
                 $methods = $this->resolver->getSupportedMethods($options['subject'], $options['criteria']);
89 89
             } else {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             return new ObjectChoiceList($methods, null, [], null, 'id');
94 94
         };
95 95
 
96
-        $dataClass = function (Options $options) {
96
+        $dataClass = function(Options $options) {
97 97
             if ($options['multiple']) {
98 98
                 return null;
99 99
             }
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/Type/Rule/TotalOfItemsFromTaxonConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 'label' => 'sylius.form.action.customer_group',
46 46
                 'property' => 'name',
47 47
                 'class' => $this->groupRepository->getClassName(),
48
-                'query_builder' => function () {
48
+                'query_builder' => function() {
49 49
                     return $this->groupRepository->getFormQueryBuilder();
50 50
                 },
51 51
                 'constraints' => array(
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Form/Type/Rule/ContainsTaxonConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 'label' => 'sylius.form.action.customer_group',
46 46
                 'property' => 'name',
47 47
                 'class' => $this->groupRepository->getClassName(),
48
-                'query_builder' => function () {
48
+                'query_builder' => function() {
49 49
                     return $this->groupRepository->getFormQueryBuilder();
50 50
                 },
51 51
                 'constraints' => array(
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Controller/ThemeScreenshotController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         $screenshotRelativePath = $screenshots[$screenshotNumber];
70 70
 
71
-        return rtrim($theme->getPath(), \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $screenshotRelativePath;
71
+        return rtrim($theme->getPath(), \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR.$screenshotRelativePath;
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/ThemeBundle/spec/Controller/ThemeScreenshotControllerSpec.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     function let(RepositoryInterface $themeRepository)
35 35
     {
36 36
         $this->beConstructedWith($themeRepository);
37
-        $this->fixturesPath = realpath(__DIR__ . '/../Fixtures');
37
+        $this->fixturesPath = realpath(__DIR__.'/../Fixtures');
38 38
     }
39 39
 
40 40
     function it_is_initializable()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $this
56 56
             ->streamScreenshotAction(42, 0)
57
-            ->shouldBeBinaryFileResponseStreamingFile($this->fixturesPath . '/screenshot/0-amazing.jpg')
57
+            ->shouldBeBinaryFileResponseStreamingFile($this->fixturesPath.'/screenshot/0-amazing.jpg')
58 58
         ;
59 59
     }
60 60
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function getMatchers()
114 114
     {
115 115
         return [
116
-            'beBinaryFileResponseStreamingFile' => function (BinaryFileResponse $response, $file) {
116
+            'beBinaryFileResponseStreamingFile' => function(BinaryFileResponse $response, $file) {
117 117
                 return $response->getFile()->getRealPath() === $file;
118 118
             },
119 119
         ];
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Factory/ThemeScreenshotFactorySpec.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
     public function getMatchers()
49 49
     {
50 50
         return [
51
-            'beScreenshotWithTheFollowingProperties' => function (ThemeScreenshot $subject, array $properties) {
51
+            'beScreenshotWithTheFollowingProperties' => function(ThemeScreenshot $subject, array $properties) {
52 52
                 if (isset($properties['path']) && $subject->getPath() !== $properties['path']) {
53 53
                     return false;
54 54
                 }
Please login to merge, or discard this patch.
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.