@@ -24,7 +24,7 @@ |
||
24 | 24 | public function getFilters(): array |
25 | 25 | { |
26 | 26 | return [ |
27 | - new TwigFilter('setono_sylius_strands_item_code', [$this, 'itemCode'], ['is_safe' => ['html']]), |
|
27 | + new TwigFilter('setono_sylius_strands_item_code', [ $this, 'itemCode' ], [ 'is_safe' => [ 'html' ] ]), |
|
28 | 28 | ]; |
29 | 29 | } |
30 | 30 |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function getFilters(): array |
13 | 13 | { |
14 | 14 | return [ |
15 | - new TwigFilter('setono_sylius_strands_format_money', [$this, 'formatMoney']), |
|
15 | + new TwigFilter('setono_sylius_strands_format_money', [ $this, 'formatMoney' ]), |
|
16 | 16 | ]; |
17 | 17 | } |
18 | 18 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | '@SetonoSyliusStrandsPlugin/Tag/items_purchased.js.twig', |
35 | 35 | TagInterface::TYPE_SCRIPT, |
36 | 36 | Tags::TAG_ITEMS_PURCHASED, |
37 | - ['order' => $order] |
|
37 | + [ 'order' => $order ] |
|
38 | 38 | ), TagBagInterface::SECTION_BODY_BEGIN); |
39 | 39 | } |
40 | 40 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | '@SetonoSyliusStrandsPlugin/Tag/library.html.twig', |
52 | 52 | TagInterface::TYPE_HTML, |
53 | 53 | Tags::TAG_LIBRARY, |
54 | - ['api_id' => $this->apiId] |
|
54 | + [ 'api_id' => $this->apiId ] |
|
55 | 55 | ), TagBagInterface::SECTION_BODY_END); |
56 | 56 | } |
57 | 57 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | return; |
55 | 55 | } |
56 | 56 | |
57 | - $codes = []; |
|
57 | + $codes = [ ]; |
|
58 | 58 | |
59 | 59 | foreach ($cart->getItems() as $item) { |
60 | 60 | $code = $this->itemCodeResolver->resolve($item); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | continue; |
63 | 63 | } |
64 | 64 | |
65 | - $codes[] = $code; |
|
65 | + $codes[ ] = $code; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | $codeString = ''; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | '@SetonoSyliusStrandsPlugin/Tag/item_visited.js.twig', |
35 | 35 | TagInterface::TYPE_SCRIPT, |
36 | 36 | Tags::TAG_ITEM_VISITED, |
37 | - ['product' => $product] |
|
37 | + [ 'product' => $product ] |
|
38 | 38 | ), TagBagInterface::SECTION_BODY_BEGIN); |
39 | 39 | } |
40 | 40 | } |
@@ -16,11 +16,11 @@ |
||
16 | 16 | */ |
17 | 17 | public function load(array $config, ContainerBuilder $container): void |
18 | 18 | { |
19 | - $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
|
19 | + $config = $this->processConfiguration($this->getConfiguration([ ], $container), $config); |
|
20 | 20 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
21 | 21 | |
22 | - $container->setParameter('setono.sylius_strands.api_id', $config['api_id']); |
|
23 | - $container->setParameter('setono.sylius_strands.variant_based', $config['variant_based']); |
|
22 | + $container->setParameter('setono.sylius_strands.api_id', $config[ 'api_id' ]); |
|
23 | + $container->setParameter('setono.sylius_strands.variant_based', $config[ 'variant_based' ]); |
|
24 | 24 | |
25 | 25 | $loader->load('services.xml'); |
26 | 26 | } |