@@ -4,7 +4,7 @@ |
||
4 | 4 | use Composer\Autoload\ClassLoader; |
5 | 5 | |
6 | 6 | /** @var ClassLoader $loader */ |
7 | -$loader = require __DIR__.'/../vendor/autoload.php'; |
|
7 | +$loader = require __DIR__ . '/../vendor/autoload.php'; |
|
8 | 8 | |
9 | 9 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
10 | 10 |
@@ -17,8 +17,8 @@ |
||
17 | 17 | */ |
18 | 18 | |
19 | 19 | /** @var \Composer\Autoload\ClassLoader $loader */ |
20 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
21 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
20 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
21 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
22 | 22 | |
23 | 23 | $kernel = new AppKernel('prod', false); |
24 | 24 | $kernel->loadClassCache(); |
@@ -27,12 +27,12 @@ |
||
27 | 27 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1', '10.0.0.1'], true) || php_sapi_name() === 'cli-server') |
28 | 28 | )) { |
29 | 29 | header('HTTP/1.0 403 Forbidden'); |
30 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
30 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** @var \Composer\Autoload\ClassLoader $loader */ |
34 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
35 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
34 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
35 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
36 | 36 | |
37 | 37 | Debug::enable(); |
38 | 38 |
@@ -27,12 +27,12 @@ |
||
27 | 27 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1', '10.0.0.1'], true) || php_sapi_name() === 'cli-server') |
28 | 28 | )) { |
29 | 29 | header('HTTP/1.0 403 Forbidden'); |
30 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
30 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** @var \Composer\Autoload\ClassLoader $loader */ |
34 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
35 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
34 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
35 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
36 | 36 | |
37 | 37 | Debug::enable(); |
38 | 38 |
@@ -27,12 +27,12 @@ |
||
27 | 27 | || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1', '10.0.0.1'], true) || php_sapi_name() === 'cli-server') |
28 | 28 | )) { |
29 | 29 | header('HTTP/1.0 403 Forbidden'); |
30 | - exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); |
|
30 | + exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.'); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** @var \Composer\Autoload\ClassLoader $loader */ |
34 | -$loader = require __DIR__.'/../app/autoload.php'; |
|
35 | -include_once __DIR__.'/../var/bootstrap.php.cache'; |
|
34 | +$loader = require __DIR__ . '/../app/autoload.php'; |
|
35 | +include_once __DIR__ . '/../var/bootstrap.php.cache'; |
|
36 | 36 | |
37 | 37 | Debug::enable(); |
38 | 38 |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function storeAllowsPaying($paymentMethodName, $position = null) |
90 | 90 | { |
91 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', true, $position); |
|
91 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', true, $position); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
142 | 142 | { |
143 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false); |
|
143 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | public function iChangeRatioTo($ratio) |
118 | 118 | { |
119 | - $this->updatePage->changeRatio((float)$ratio); |
|
119 | + $this->updatePage->changeRatio((float) $ratio); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null) |
70 | 70 | { |
71 | 71 | $this->createShippingCategory($firstShippingCategoryName); |
72 | - (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName); |
|
72 | + (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | private function createShippingCategory($shippingCategoryName) |
79 | 79 | { |
80 | 80 | /** @var ShippingCategoryInterface $shippingCategory */ |
81 | - $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
81 | + $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
82 | 82 | $shippingCategory->setName($shippingCategoryName); |
83 | 83 | $shippingCategory->setCode(StringInflector::nameToCode($shippingCategoryName)); |
84 | 84 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $loader->load('services.xml'); |
33 | 33 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | foreach ($resources as $subjectName => $subjectConfig) { |
57 | 57 | foreach ($subjectConfig as $resourceName => $resourceConfig) { |
58 | 58 | if (is_array($resourceConfig)) { |
59 | - $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig; |
|
59 | + $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | } |