Passed
Push — master ( 0a0db2...90eb5b )
by Joachim
04:45
created
src/Widget/Widget.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
13 13
     private $template;
14 14
 
15 15
     /** @var string[] */
16
-    private $items = [];
16
+    private $items = [ ];
17 17
 
18 18
     /** @var string[][] */
19
-    private $filters = [];
19
+    private $filters = [ ];
20 20
 
21 21
     public function __construct(string $template)
22 22
     {
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function addItem(string $item): self
55 55
     {
56
-        $this->items[] = $item;
56
+        $this->items[ ] = $item;
57 57
 
58 58
         return $this;
59 59
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function addFilter(string $key, string $value): self
66 66
     {
67
-        $this->filters[$key][] = $value;
67
+        $this->filters[ $key ][ ] = $value;
68 68
 
69 69
         return $this;
70 70
     }
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
             return null;
76 76
         }
77 77
 
78
-        $filterGroups = [];
78
+        $filterGroups = [ ];
79 79
 
80 80
         foreach ($this->filters as $key => $val) {
81
-            $filterGroups[] = $key . '::' . implode(';;', $val);
81
+            $filterGroups[ ] = $key . '::' . implode(';;', $val);
82 82
         }
83 83
 
84 84
         return implode('_._', $filterGroups);
Please login to merge, or discard this patch.
src/Twig/ItemCodeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function getFilters(): array
13 13
     {
14 14
         return [
15
-            new TwigFilter('strands_item_code', [Runtime::class, 'itemCode'], ['is_safe' => ['html']]),
15
+            new TwigFilter('strands_item_code', [ Runtime::class, 'itemCode' ], [ 'is_safe' => [ 'html' ] ]),
16 16
         ];
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Twig/WidgetExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@
 block discarded – undo
13 13
     public function getFilters(): array
14 14
     {
15 15
         return [
16
-            new TwigFilter('strands_add_items', [Runtime::class, 'addItems'], ['is_safe' => ['html']]),
17
-            new TwigFilter('strands_add_cart_items', [Runtime::class, 'addCartItems'], ['is_safe' => ['html']]),
16
+            new TwigFilter('strands_add_items', [ Runtime::class, 'addItems' ], [ 'is_safe' => [ 'html' ] ]),
17
+            new TwigFilter('strands_add_cart_items', [ Runtime::class, 'addCartItems' ], [ 'is_safe' => [ 'html' ] ]),
18 18
         ];
19 19
     }
20 20
 
21 21
     public function getFunctions(): array
22 22
     {
23 23
         return [
24
-            new TwigFunction('strands_widget', [Runtime::class, 'widget'], ['is_safe' => ['html']]),
24
+            new TwigFunction('strands_widget', [ Runtime::class, 'widget' ], [ 'is_safe' => [ 'html' ] ]),
25 25
         ];
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Twig/FormatMoneyExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function getFilters(): array
14 14
     {
15 15
         return [
16
-            new TwigFilter('strands_format_money', [$this, 'formatMoney']),
16
+            new TwigFilter('strands_format_money', [ $this, 'formatMoney' ]),
17 17
         ];
18 18
     }
19 19
 
Please login to merge, or discard this patch.