@@ -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; |
@@ -21,11 +21,11 @@ |
||
21 | 21 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1'], true) || php_sapi_name() === 'cli-server') |
22 | 22 | ) { |
23 | 23 | header('HTTP/1.0 403 Forbidden'); |
24 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
24 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
25 | 25 | } |
26 | 26 | |
27 | -require_once __DIR__.'/../app/bootstrap.php.cache'; |
|
28 | -require_once __DIR__.'/../app/AppKernel.php'; |
|
27 | +require_once __DIR__ . '/../app/bootstrap.php.cache'; |
|
28 | +require_once __DIR__ . '/../app/AppKernel.php'; |
|
29 | 29 | |
30 | 30 | $kernel = new AppKernel('test_cached', false); |
31 | 31 | $kernel->loadClassCache(); |
@@ -21,11 +21,11 @@ |
||
21 | 21 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1'], true) || php_sapi_name() === 'cli-server') |
22 | 22 | ) { |
23 | 23 | header('HTTP/1.0 403 Forbidden'); |
24 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
24 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
25 | 25 | } |
26 | 26 | |
27 | -require_once __DIR__.'/../app/bootstrap.php.cache'; |
|
28 | -require_once __DIR__.'/../app/AppKernel.php'; |
|
27 | +require_once __DIR__ . '/../app/bootstrap.php.cache'; |
|
28 | +require_once __DIR__ . '/../app/AppKernel.php'; |
|
29 | 29 | |
30 | 30 | $kernel = new AppKernel('test_cached', false); |
31 | 31 | $kernel->loadClassCache(); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | $province = $this->provinceRepository->findOneBy(['code' => $address->getProvinceCode()]); |
51 | - Assert::notNull($province,sprintf('Province with code "%s" not found.', $address->getProvinceCode())); |
|
51 | + Assert::notNull($province, sprintf('Province with code "%s" not found.', $address->getProvinceCode())); |
|
52 | 52 | |
53 | 53 | return $province->getName(); |
54 | 54 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | $province = $this->provinceRepository->findOneBy(['code' => $address->getProvinceCode()]); |
70 | - Assert::notNull($province,sprintf('Province with code "%s" not found.', $address->getProvinceCode())); |
|
70 | + Assert::notNull($province, sprintf('Province with code "%s" not found.', $address->getProvinceCode())); |
|
71 | 71 | |
72 | 72 | return $province->getAbbreviation() ?: $province->getName(); |
73 | 73 | } |
@@ -137,7 +137,7 @@ |
||
137 | 137 | $messages = []; |
138 | 138 | |
139 | 139 | /** @var SplFileInfo $file */ |
140 | - foreach($finder as $file) { |
|
140 | + foreach ($finder as $file) { |
|
141 | 141 | $messages[] = unserialize($file->getContents()); |
142 | 142 | } |
143 | 143 |
@@ -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; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | public function cancel() |
55 | 55 | { |
56 | - $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-'.$this->expirationPeriod)); |
|
56 | + $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-' . $this->expirationPeriod)); |
|
57 | 57 | foreach ($expiredUnpaidOrders as $expiredUnpaidOrder) { |
58 | 58 | $this->cancelOrder($expiredUnpaidOrder); |
59 | 59 | } |
@@ -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 | } |