Completed
Branch theme-bundle (26965f)
by Kamil
30:47 queued 24s
created
src/Sylius/Bundle/CoreBundle/spec/Checkout/Step/PurchaseStepSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         $gateway
104 104
             ->execute(Argument::type(GetStatus::class))
105
-            ->will(function ($args) use ($order, $paymentModel) {
105
+            ->will(function($args) use ($order, $paymentModel) {
106 106
                 $args[0]->markCaptured();
107 107
                 $args[0]->setModel($paymentModel);
108 108
             }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         $gateway
153 153
             ->execute(Argument::type(GetStatus::class))
154
-            ->will(function ($args) use ($order, $paymentModel) {
154
+            ->will(function($args) use ($order, $paymentModel) {
155 155
                 $args[0]->markCaptured();
156 156
                 $args[0]->setModel($paymentModel);
157 157
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Behat/CoreContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@
 block discarded – undo
334 334
                 $min = (int) trim(str_replace('+', '', $data['range']));
335 335
                 $max = null;
336 336
             } else {
337
-                list($min, $max) = array_map(function ($value) { return (int) trim($value); }, explode('-', $data['range']));
337
+                list($min, $max) = array_map(function($value) { return (int) trim($value); }, explode('-', $data['range']));
338 338
             }
339 339
 
340 340
             $configuration[] = array(
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutProcessScenario.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             ->setDisplayRoute('sylius_checkout_display')
52 52
             ->setForwardRoute('sylius_checkout_forward')
53 53
             ->setRedirect('sylius_homepage')
54
-            ->validate(function () {
54
+            ->validate(function() {
55 55
                 return !$this->getCurrentCart()->isEmpty();
56 56
             })
57 57
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/FixturesBundle/DataFixtures/DataFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
         /** @var CountryInterface $country */
154 154
         $countries = Intl::getRegionBundle()->getCountryNames($this->defaultLocale);
155 155
         $isoName = array_rand($countries);
156
-        $country = $this->getReference("Sylius.Country." . $isoName);
156
+        $country = $this->getReference("Sylius.Country.".$isoName);
157 157
 
158 158
         $province = $country->hasProvinces() ? $this->faker->randomElement($country->getProvinces()->toArray()) : null;
159 159
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      */
81 81
     public function configureOptions(OptionsResolver $resolver)
82 82
     {
83
-        $choiceList = function (Options $options) {
83
+        $choiceList = function(Options $options) {
84 84
             if (isset($options['subject'])) {
85 85
                 $methods = $this->resolver->getSupportedMethods($options['subject'], $options['criteria']);
86 86
             } else {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,11 +96,11 @@
 block discarded – undo
96 96
 
97 97
             $calculatorTypeName = sprintf("sylius_shipping_calculator_%s", $calculator->getType());
98 98
 
99
-            if(!$this->formRegistry->hasType($calculatorTypeName)){
99
+            if (!$this->formRegistry->hasType($calculatorTypeName)) {
100 100
                 continue;
101 101
             }
102 102
 
103
-            $prototypes['calculators'][$name] = $builder->create('configuration',$calculatorTypeName)->getForm();
103
+            $prototypes['calculators'][$name] = $builder->create('configuration', $calculatorTypeName)->getForm();
104 104
         }
105 105
 
106 106
         $builder->setAttribute('prototypes', $prototypes);
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,8 +202,8 @@
 block discarded – undo
202 202
                                         ->arrayNode('form')
203 203
                                             ->addDefaultsIfNotSet()
204 204
                                             ->children()
205
-                                                 ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end()
206
-                                                 ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end()
205
+                                                    ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end()
206
+                                                    ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end()
207 207
                                             ->end()
208 208
                                         ->end()
209 209
                                     ->end()
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     public function configureOptions(OptionsResolver $resolver)
65 65
     {
66 66
         $repository = $this->taxonRepository;
67
-        $choiceList = function (Options $options) use ($repository) {
67
+        $choiceList = function(Options $options) use ($repository) {
68 68
             $taxons = $repository->getNonRootTaxons();
69 69
 
70 70
             if (null !== $options['taxonomy']) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonSelectionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         ;
92 92
 
93 93
         $resolver->setNormalizers(array(
94
-            'model_transformer' => function (Options $options, $value) {
94
+            'model_transformer' => function(Options $options, $value) {
95 95
                 if (!is_array($value)) {
96 96
                     $value = array(
97 97
                         'class'        => $value,
Please login to merge, or discard this patch.