@@ -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 | } |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | { |
| 14 | 14 | public function load(array $config, ContainerBuilder $container): void |
| 15 | 15 | { |
| 16 | - $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
|
| 16 | + $config = $this->processConfiguration($this->getConfiguration([ ], $container), $config); |
|
| 17 | 17 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
| 18 | 18 | |
| 19 | - $container->setParameter('setono_sylius_strands.api_id', $config['api_id']); |
|
| 20 | - $container->setParameter('setono_sylius_strands.variant_based', $config['variant_based']); |
|
| 19 | + $container->setParameter('setono_sylius_strands.api_id', $config[ 'api_id' ]); |
|
| 20 | + $container->setParameter('setono_sylius_strands.variant_based', $config[ 'variant_based' ]); |
|
| 21 | 21 | |
| 22 | 22 | $loader->load('services.xml'); |
| 23 | 23 | } |