@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function load(array $config, ContainerBuilder $container) |
29 | 29 | { |
30 | 30 | $config = $this->processConfiguration($this->getConfiguration($config, $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 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
34 | 34 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
93 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
94 | 94 | $loader->load('resource_integration.xml'); |
95 | 95 | |
96 | 96 | $container->prependExtensionConfig('sylius_resource', [ |
@@ -37,8 +37,8 @@ |
||
37 | 37 | public function getFunctions() |
38 | 38 | { |
39 | 39 | return [ |
40 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
40 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
42 | 42 | ]; |
43 | 43 | } |
44 | 44 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $builder->add($option->getCode(), sprintf('sylius_%s_option_value_choice', $this->variableName), [ |
46 | 46 | 'label' => $option->getName(), |
47 | 47 | 'option' => $option, |
48 | - 'property_path' => '['.$i.']', |
|
48 | + 'property_path' => '[' . $i . ']', |
|
49 | 49 | ]); |
50 | 50 | } |
51 | 51 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $builder->add($option->getCode(), sprintf('sylius_%s_option_value_choice', $this->variableName), [ |
46 | 46 | 'label' => $option->getName(), |
47 | 47 | 'option' => $option, |
48 | - 'property_path' => '['.$i.']', |
|
48 | + 'property_path' => '[' . $i . ']', |
|
49 | 49 | ]); |
50 | 50 | } |
51 | 51 |
@@ -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 | } |
@@ -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 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | public function load(array $config, ContainerBuilder $container) |
45 | 45 | { |
46 | 46 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
47 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
47 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
48 | 48 | |
49 | 49 | $loader->load(sprintf('services/integrations/%s.xml', $config['driver'])); |
50 | 50 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | foreach ($resources as $variableName => $variableConfig) { |
70 | 70 | foreach ($variableConfig as $resourceName => $resourceConfig) { |
71 | 71 | if (is_array($resourceConfig)) { |
72 | - $resolvedResources[$variableName.'_'.$resourceName] = $resourceConfig; |
|
72 | + $resolvedResources[$variableName . '_' . $resourceName] = $resourceConfig; |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function load(array $config, ContainerBuilder $container) |
29 | 29 | { |
30 | 30 | $config = $this->processConfiguration($this->getConfiguration($config, $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 | $loader->load(sprintf('driver/%s.xml', $config['driver'])); |
34 | 34 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
93 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
94 | 94 | $loader->load('resource_integration.xml'); |
95 | 95 | |
96 | 96 | $container->prependExtensionConfig('sylius_resource', [ |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | $client = $this->getClient(); |
28 | 28 | |
29 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
29 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
30 | 30 | $this->assertEquals($contents, trim($crawler->text())); |
31 | 31 | } |
32 | 32 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | $client = $this->getClient(); |
56 | 56 | |
57 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
57 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
58 | 58 | $this->assertEquals($contents, trim($crawler->text())); |
59 | 59 | } |
60 | 60 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | $client = $this->getClient(); |
84 | 84 | |
85 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
85 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
86 | 86 | $this->assertEquals($contents, trim($crawler->text())); |
87 | 87 | } |
88 | 88 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $client = $this->getClient(); |
110 | 110 | |
111 | - $crawler = $client->request('GET', '/template/'.$templateName); |
|
111 | + $crawler = $client->request('GET', '/template/' . $templateName); |
|
112 | 112 | $this->assertEquals($contents, trim($crawler->text())); |
113 | 113 | } |
114 | 114 |