@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | $imageForm->fillField('Type', $type); |
76 | 76 | } |
77 | 77 | |
78 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
78 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | $filesPath = $this->getParameter('files_path'); |
147 | 147 | |
148 | 148 | $imageForm = $this->getImageElementByType($type); |
149 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
149 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | private function getImageElementByType($type) |
305 | 305 | { |
306 | 306 | $images = $this->getElement('images'); |
307 | - $typeInput = $images->find('css', 'input[value="'.$type.'"]'); |
|
307 | + $typeInput = $images->find('css', 'input[value="' . $type . '"]'); |
|
308 | 308 | |
309 | 309 | if (null === $typeInput) { |
310 | 310 | return null; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function load(array $config, ContainerBuilder $container) |
29 | 29 | { |
30 | 30 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | |
33 | 33 | $container->setParameter('sylius_money.locale', $config['locale']); |
34 | 34 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return; |
45 | 45 | } |
46 | 46 | |
47 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
47 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
48 | 48 | $loader->load('services/integrations/currency.xml'); |
49 | 49 | } |
50 | 50 | } |
@@ -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 |