Completed
Push — master ( cec9f3...d27170 )
by Kamil
22:53
created
src/Sylius/Component/Metadata/Processor/TwigMetadataProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function process(MetadataInterface $metadata, array $options = [])
30 30
     {
31
-        $metadata->forAll(function ($property) use ($options) {
31
+        $metadata->forAll(function($property) use ($options) {
32 32
             return $this->processProperty($property, $options);
33 33
         });
34 34
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/MetadataBundle/DynamicForm/DynamicFormBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     private function addModelDataListener(FormBuilderInterface $builder, $name, $group)
79 79
     {
80
-        $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($builder, $name, $group) {
80
+        $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($builder, $name, $group) {
81 81
             try {
82 82
                 $data = $this->propertyAccessor->getValue($event->getData(), $name);
83 83
             } catch (\RuntimeException $exception) {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     private function addSubmittedDataListener(FormBuilderInterface $builder, $name)
105 105
     {
106
-        $builder->get($name)->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($builder, $name) {
106
+        $builder->get($name)->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($builder, $name) {
107 107
             $formName = $event->getData()['_form'];
108 108
             if (empty($formName)) {
109 109
                 $event->setData([$name => null]);
Please login to merge, or discard this patch.
src/Sylius/Bundle/MetadataBundle/Form/Type/Twitter/TwitterCardType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ])
31 31
             ->setNormalizer(
32 32
                 'group',
33
-                function () {
33
+                function() {
34 34
                     return 'twitter';
35 35
                 }
36 36
             )
Please login to merge, or discard this patch.
src/Sylius/Bundle/MetadataBundle/Form/Type/Custom/PageMetadataType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,17 +79,17 @@
 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 join(', ', $originalKeywords);
88 88
             },
89
-            function ($submittedKeywords) {
89
+            function($submittedKeywords) {
90 90
                 $keywords = explode(',', $submittedKeywords);
91 91
 
92
-                array_walk($keywords, function ($keyword) {
92
+                array_walk($keywords, function($keyword) {
93 93
                     return trim($keyword);
94 94
                 });
95 95
 
Please login to merge, or discard this patch.
Metadata/spec/Renderer/Twitter/GenericTwitterMetadataRendererSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     public function getMatchers()
165 165
     {
166 166
         return [
167
-            'containText' => function ($subject, $text) {
167
+            'containText' => function($subject, $text) {
168 168
                 return false !== strpos($subject, $text);    
169 169
             },
170 170
         ];
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/CountryCodeChoiceType.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
      */
42 42
     public function configureOptions(OptionsResolver $resolver)
43 43
     {
44
-        $choices = function (Options $options) {
44
+        $choices = function(Options $options) {
45 45
             if (null === $options['country']) {
46 46
                 $choices = $this->provinceRepository->findAll();
47 47
             } else {
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Form/Type/Shipping/ShippingMethodChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function configureOptions(OptionsResolver $resolver)
56 56
     {
57
-        $choiceList = function (Options $options) {
57
+        $choiceList = function(Options $options) {
58 58
             if (null === $options['enabled']) {
59 59
                 $choices = $this->localeRepository->findAll();
60 60
             } else {
Please login to merge, or discard this patch.
src/Sylius/Bundle/FlowBundle/spec/Validator/ProcessValidatorSpec.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     function let()
22 22
     {
23
-        $this->beConstructedWith('message', 'step_name', function () {});
23
+        $this->beConstructedWith('message', 'step_name', function() {});
24 24
     }
25 25
 
26 26
     function it_is_initializable()
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     function its_validation_is_mutable()
49 49
     {
50
-        $closure = function () {};
50
+        $closure = function() {};
51 51
 
52 52
         $this->setValidation($closure)->shouldReturn($this);
53 53
         $this->getValidation()->shouldReturn($closure);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     function it_calls_validation_closure(ProcessContextInterface $processContext)
57 57
     {
58
-        $this->setValidation(function () {
58
+        $this->setValidation(function() {
59 59
             return true;
60 60
         });
61 61
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/RbacBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
                 ->arrayNode('roles_hierarchy')
171 171
                     ->useAttributeAsKey('id')
172 172
                     ->prototype('array')
173
-                        ->beforeNormalization()->ifString()->then(function ($v) { return ['value' => $v]; })->end()
173
+                        ->beforeNormalization()->ifString()->then(function($v) { return ['value' => $v]; })->end()
174 174
                         ->beforeNormalization()
175
-                            ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); })
176
-                            ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); })
175
+                            ->ifTrue(function($v) { return is_array($v) && isset($v['value']); })
176
+                            ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); })
177 177
                         ->end()
178 178
                         ->prototype('scalar')->end()
179 179
                     ->end()
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
                     ->useAttributeAsKey('id')
199 199
                     ->prototype('array')
200 200
                         ->performNoDeepMerging()
201
-                        ->beforeNormalization()->ifString()->then(function ($v) { return ['value' => $v]; })->end()
201
+                        ->beforeNormalization()->ifString()->then(function($v) { return ['value' => $v]; })->end()
202 202
                         ->beforeNormalization()
203
-                            ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); })
204
-                            ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); })
203
+                            ->ifTrue(function($v) { return is_array($v) && isset($v['value']); })
204
+                            ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); })
205 205
                         ->end()
206 206
                         ->prototype('scalar')->end()
207 207
                     ->end()
Please login to merge, or discard this patch.