@@ -59,7 +59,7 @@ |
||
| 59 | 59 | ]) |
| 60 | 60 | ], |
| 61 | 61 | ]) |
| 62 | - ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
| 62 | + ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
| 63 | 63 | $data = $event->getData(); |
| 64 | 64 | |
| 65 | 65 | $data['payum.http_client'] = '@sylius.payum.http_client'; |
@@ -40,14 +40,14 @@ discard block |
||
| 40 | 40 | && isset($options['configuration']['multiple']) |
| 41 | 41 | && !$options['configuration']['multiple']) { |
| 42 | 42 | $builder->addModelTransformer(new CallbackTransformer( |
| 43 | - function($array) { |
|
| 43 | + function ($array) { |
|
| 44 | 44 | if (count($array) > 0) { |
| 45 | 45 | return $array[0]; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | return null; |
| 49 | 49 | }, |
| 50 | - function($string) { |
|
| 50 | + function ($string) { |
|
| 51 | 51 | if (!is_null($string)) { |
| 52 | 52 | return [$string]; |
| 53 | 53 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $resolver |
| 67 | 67 | ->setRequired('configuration') |
| 68 | 68 | ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose') |
| 69 | - ->setNormalizer('choices', function(Options $options){ |
|
| 69 | + ->setNormalizer('choices', function (Options $options) { |
|
| 70 | 70 | if (is_array($options['configuration']) |
| 71 | 71 | && isset($options['configuration']['choices']) |
| 72 | 72 | && is_array($options['configuration']['choices'])) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | return []; |
| 80 | 80 | }) |
| 81 | - ->setNormalizer('multiple', function(Options $options){ |
|
| 81 | + ->setNormalizer('multiple', function (Options $options) { |
|
| 82 | 82 | if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) { |
| 83 | 83 | return $options['configuration']['multiple']; |
| 84 | 84 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function storeAllowsPaying($paymentMethodName, $position = null) |
| 90 | 90 | { |
| 91 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
| 91 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | */ |
| 172 | 172 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
| 173 | 173 | { |
| 174 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', 'Offline', false); |
|
| 174 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', 'Offline', false); |
|
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | /** |
@@ -299,7 +299,7 @@ |
||
| 299 | 299 | public function iShouldBeNotifiedThatIHaveToSpecifyPaypal($element) |
| 300 | 300 | { |
| 301 | 301 | Assert::same( |
| 302 | - $this->createPage->getValidationMessage('paypal_'.$element), |
|
| 302 | + $this->createPage->getValidationMessage('paypal_' . $element), |
|
| 303 | 303 | sprintf('Please enter paypal %s.', $element) |
| 304 | 304 | ); |
| 305 | 305 | } |
@@ -491,7 +491,7 @@ |
||
| 491 | 491 | } |
| 492 | 492 | EOT; |
| 493 | 493 | |
| 494 | - $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon) , [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 494 | + $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
|
| 495 | 495 | |
| 496 | 496 | $response = $this->client->getResponse(); |
| 497 | 497 | $this->assertResponse($response, 'taxon/update_validation_fail_response', Response::HTTP_BAD_REQUEST); |