Completed
Push — master ( 758cec...9118c8 )
by Nate
03:28
created
src/Segment/SegmentInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
      * @param array $config
21 21
      * @return ResponseInterface
22 22
      */
23
-    public function run(array $config = []): ResponseInterface;
23
+    public function run(array $config = [ ]): ResponseInterface;
24 24
 
25 25
     /**
26 26
      * @param array $config
27 27
      * @return ResponseInterface
28 28
      */
29
-    public function __invoke(array $config = []): ResponseInterface;
29
+    public function __invoke(array $config = [ ]): ResponseInterface;
30 30
 }
Please login to merge, or discard this patch.
src/Segment/AbstractSegment.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function defaultSegments(): array
40 40
     {
41
-        return [];
41
+        return [ ];
42 42
     }
43 43
 
44 44
     /**
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
     public function addAfter(string $key, $segment, string $afterKey = null)
63 63
     {
64 64
         if ($afterKey === null) {
65
-            $this->segments[$key] = $segment;
65
+            $this->segments[ $key ] = $segment;
66 66
             return $this;
67 67
         }
68 68
 
69 69
         if (false === ($segments = ArrayHelper::insertAfter($this->segments, $afterKey, $key, $segment))) {
70
-            $this->segments[$key] = $segment;
70
+            $this->segments[ $key ] = $segment;
71 71
             return $this;
72 72
         }
73 73
 
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
     public function addBefore(string $key, $segment, string $beforeKey = null)
85 85
     {
86 86
         if ($beforeKey === null) {
87
-            $this->segments = [$key => $segment] + $this->segments;
87
+            $this->segments = [ $key => $segment ] + $this->segments;
88 88
             return $this;
89 89
         }
90 90
 
91 91
         if (false === ($segments = ArrayHelper::insertBefore($this->segments, $beforeKey, $key, $segment))) {
92
-            $this->segments[$key] = $segment;
92
+            $this->segments[ $key ] = $segment;
93 93
             return $this;
94 94
         }
95 95
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * @inheritdoc
103 103
      */
104
-    public function run(array $config = []): ResponseInterface
104
+    public function run(array $config = [ ]): ResponseInterface
105 105
     {
106 106
         // Reconfigure?
107 107
         if (!empty($config)) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     /**
152 152
      * @inheritdoc
153 153
      */
154
-    public function __invoke(array $config = []): ResponseInterface
154
+    public function __invoke(array $config = [ ]): ResponseInterface
155 155
     {
156 156
         return $this->run($config);
157 157
     }
Please login to merge, or discard this patch.