@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function getRouteName($name) |
165 | 165 | { |
166 | - $sectionPrefix = $this->getSection() ? $this->getSection().'_' : ''; |
|
166 | + $sectionPrefix = $this->getSection() ? $this->getSection() . '_' : ''; |
|
167 | 167 | |
168 | 168 | return sprintf('%s_%s%s_%s', $this->metadata->getApplicationName(), $sectionPrefix, $this->metadata->getName(), $name); |
169 | 169 | } |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | return ''; |
206 | 206 | } |
207 | 207 | |
208 | - return '#'.$redirect['hash']; |
|
208 | + return '#' . $redirect['hash']; |
|
209 | 209 | } |
210 | 210 | |
211 | 211 | /** |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | public function remove() |
65 | 65 | { |
66 | - $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod)); |
|
66 | + $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod)); |
|
67 | 67 | |
68 | 68 | $this->eventDispatcher->dispatch(SyliusExpiredCartsEvents::PRE_REMOVE, new GenericEvent($expiredCarts)); |
69 | 69 |
@@ -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 |
@@ -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 | } |
@@ -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); |