@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function load(array $config, ContainerBuilder $container) |
30 | 30 | { |
31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
32 | 32 | $loader->load('services.xml'); |
33 | 33 | $loader->load('twig.xml'); |
34 | 34 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Component\Registry; |
13 | 13 | |
14 | -require_once __DIR__.'/Fixture/SampleServiceInterface.php'; |
|
14 | +require_once __DIR__ . '/Fixture/SampleServiceInterface.php'; |
|
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | 17 | use Prophecy\Argument; |
@@ -92,10 +92,10 @@ |
||
92 | 92 | $string .= '('; |
93 | 93 | |
94 | 94 | foreach ($this->getOptionValues() as $option) { |
95 | - $string .= $option->getOption()->getName().': '.$option->getValue().', '; |
|
95 | + $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', '; |
|
96 | 96 | } |
97 | 97 | |
98 | - $string = substr($string, 0, -2).')'; |
|
98 | + $string = substr($string, 0, -2) . ')'; |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | return $string; |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function remove() |
42 | 42 | { |
43 | - $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod)); |
|
43 | + $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod)); |
|
44 | 44 | foreach ($expiredCarts as $expiredCart) { |
45 | 45 | $this->orderRepository->remove($expiredCart); |
46 | 46 | } |
@@ -120,7 +120,7 @@ |
||
120 | 120 | $filesPath = $this->getParameter('files_path'); |
121 | 121 | |
122 | 122 | $taxonImage = $this->taxonImageFactory->createNew(); |
123 | - $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath))); |
|
123 | + $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath))); |
|
124 | 124 | $taxonImage->setCode($imageCode); |
125 | 125 | $this->imageUploader->upload($taxonImage); |
126 | 126 |
@@ -58,7 +58,7 @@ |
||
58 | 58 | */ |
59 | 59 | public function theyAbandonedTheirCart(OrderInterface $cart, $amount, $time) |
60 | 60 | { |
61 | - $cart->setUpdatedAt(new \DateTime('-'.$amount.' '.$time)); |
|
61 | + $cart->setUpdatedAt(new \DateTime('-' . $amount . ' ' . $time)); |
|
62 | 62 | $this->orderManager->flush(); |
63 | 63 | } |
64 | 64 |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | $imageForm = $this->getLastImageElement(); |
154 | 154 | $imageForm->fillField('Code', $code); |
155 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
155 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $filesPath = $this->getParameter('files_path'); |
164 | 164 | |
165 | 165 | $imageForm = $this->getImageElementByCode($code); |
166 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
166 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | private function getImageElementByCode($code) |
262 | 262 | { |
263 | 263 | $images = $this->getElement('images'); |
264 | - $inputCode = $images->find('css', 'input[value="'.$code.'"]'); |
|
264 | + $inputCode = $images->find('css', 'input[value="' . $code . '"]'); |
|
265 | 265 | |
266 | 266 | if (null === $inputCode) { |
267 | 267 | return null; |