@@ -20,11 +20,11 @@ |
||
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 | } |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |