Completed
Pull Request — master (#16)
by Kamil
23:36
created
src/Sylius/Component/Order/Model/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
             return $this->adjustments;
282 282
         }
283 283
 
284
-        return $this->adjustments->filter(function (AdjustmentInterface $adjustment) use ($type) {
284
+        return $this->adjustments->filter(function(AdjustmentInterface $adjustment) use ($type) {
285 285
             return $type === $adjustment->getType();
286 286
         });
287 287
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
     public function getTaxons($taxonomy = null)
152 152
     {
153 153
         if (null !== $taxonomy) {
154
-            return $this->taxons->filter(function (BaseTaxonInterface $taxon) use ($taxonomy) {
154
+            return $this->taxons->filter(function(BaseTaxonInterface $taxon) use ($taxonomy) {
155 155
                 return $taxonomy === strtolower($taxon->getTaxonomy()->getName());
156 156
             });
157 157
         }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Repository/InMemoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     public function remove(ResourceInterface $resource)
88 88
     {
89
-        $newResources = array_filter($this->findAll(), function ($object) use ($resource) {
89
+        $newResources = array_filter($this->findAll(), function($object) use ($resource) {
90 90
             return $object !== $resource;
91 91
         });
92 92
 
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -481,7 +481,7 @@
 block discarded – undo
481 481
             return null;
482 482
         }
483 483
 
484
-        $filtered = $this->oauthAccounts->filter(function (UserOAuthInterface $oauth) use ($provider) {
484
+        $filtered = $this->oauthAccounts->filter(function(UserOAuthInterface $oauth) use ($provider) {
485 485
             return $provider === $oauth->getProvider();
486 486
         });
487 487
 
Please login to merge, or discard this patch.
src/Sylius/Component/User/spec/Security/Generator/TokenGeneratorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     public function getMatchers()
66 66
     {
67 67
         return array(
68
-            'haveLength' => function ($subject, $key) {
68
+            'haveLength' => function($subject, $key) {
69 69
                 return $key === strlen($subject);
70 70
             },
71 71
         );
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Form/Type/EntityHiddenType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@
 block discarded – undo
48 48
         $builder
49 49
             ->addViewTransformer($transformer)
50 50
             ->setAttribute('data_class', $options['data_class'])
51
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($transformer) {
51
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($transformer) {
52 52
                 $event->setData($transformer->reverseTransform($event->getData()));
53 53
             })
54
-            ->addEventListener(FormEvents::SUBMIT, function (FormEvent $event) use ($transformer) {
54
+            ->addEventListener(FormEvents::SUBMIT, function(FormEvent $event) use ($transformer) {
55 55
                 $event->setData($transformer->reverseTransform($event->getData()));
56 56
             })
57 57
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Form/Extension/DateExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     public function configureOptions(OptionsResolver $resolver)
41 41
     {
42
-        $format = function (Options $options, $value) {
42
+        $format = function(Options $options, $value) {
43 43
             if ($options['widget'] === 'single_text') {
44 44
                 $formatter = new \IntlDateFormatter(
45 45
                     \Locale::getDefault(),
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Behat/FixtureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $data = $table->getRowsHash();
78 78
         $type = str_replace(' ', '_', trim($type));
79 79
 
80
-        $object = $this->waitFor(function () use ($type, $data) {
80
+        $object = $this->waitFor(function() use ($type, $data) {
81 81
             try {
82 82
                 return $this->findOneByName($type, $data['name']);
83 83
             } catch (\InvalidArgumentException $exception) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/AddressType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
 
87 87
         $resolver
88 88
             ->setDefaults(array(
89
-                'validation_groups' => function (Options $options) {
89
+                'validation_groups' => function(Options $options) {
90 90
                     if ($options['shippable']) {
91 91
                         $this->validationGroups[] = 'shippable';
92 92
                     }
Please login to merge, or discard this patch.