@@ -305,7 +305,7 @@ |
||
305 | 305 | do { |
306 | 306 | parent::tryToOpen($urlParameters); |
307 | 307 | sleep(3); |
308 | - } while(!$this->isOpen() && microtime(true) < $end); |
|
308 | + } while (!$this->isOpen() && microtime(true) < $end); |
|
309 | 309 | |
310 | 310 | return; |
311 | 311 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public function load(array $config, ContainerBuilder $container) |
34 | 34 | { |
35 | 35 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
36 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
36 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
37 | 37 | |
38 | 38 | $loader->load('services.xml'); |
39 | 39 | $loader->load(sprintf('services/integrations/locale/%s.xml', $config['locale_switcher'])); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $this->addItemToCart($cartId); |
58 | 58 | $this->addressOrder($cartId); |
59 | 59 | |
60 | - $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
60 | + $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
61 | 61 | |
62 | 62 | $response = $this->client->getResponse(); |
63 | 63 | $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | EOT; |
89 | 89 | |
90 | - $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
90 | + $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
91 | 91 | |
92 | 92 | $response = $this->client->getResponse(); |
93 | 93 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $message->setBody($renderedEmail->getBody(), 'text/html'); |
60 | 60 | |
61 | - foreach($attachments as $attachment) { |
|
61 | + foreach ($attachments as $attachment) { |
|
62 | 62 | $file = \Swift_Attachment::fromPath($attachment); |
63 | 63 | |
64 | 64 | $message->attach($file); |
@@ -651,7 +651,7 @@ |
||
651 | 651 | |
652 | 652 | /** @var ImageInterface $productImage */ |
653 | 653 | $productImage = $this->productImageFactory->createNew(); |
654 | - $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
654 | + $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
655 | 655 | $productImage->setType($imageType); |
656 | 656 | $this->imageUploader->upload($productImage); |
657 | 657 |
@@ -35,6 +35,6 @@ |
||
35 | 35 | { |
36 | 36 | $percentage = $number * 100; |
37 | 37 | |
38 | - return $percentage.' %'; |
|
38 | + return $percentage . ' %'; |
|
39 | 39 | } |
40 | 40 | } |
@@ -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 | /** |