@@ -102,7 +102,7 @@ discard block |
||
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 |
||
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 | } |
@@ -334,7 +334,7 @@ |
||
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( |
@@ -51,7 +51,7 @@ |
||
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 | ; |
@@ -153,7 +153,7 @@ |
||
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 |
@@ -80,7 +80,7 @@ |
||
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 { |
@@ -96,11 +96,11 @@ |
||
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); |
@@ -202,8 +202,8 @@ |
||
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() |
@@ -64,7 +64,7 @@ |
||
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']) { |
@@ -91,7 +91,7 @@ |
||
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, |