@@ -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 | |
@@ -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'; |