@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | public function add( |
141 | 141 | string $pattern, |
142 | 142 | mixed $handler, |
143 | - array|string $methods, |
|
143 | + array | string $methods, |
|
144 | 144 | string $name = '', |
145 | 145 | array $attributes = [] |
146 | 146 | ): Route { |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | $name = trim($pattern, '/'); |
431 | 431 | } |
432 | 432 | |
433 | - $this->group($pattern, function (Router $router) use ($handler, $maps, $name, $attributes) { |
|
433 | + $this->group($pattern, function(Router $router) use ($handler, $maps, $name, $attributes) { |
|
434 | 434 | foreach ($maps as $map) { |
435 | 435 | if ($map['many']) { |
436 | 436 | /** @var Route $route */ |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | string $pattern, |
145 | 145 | mixed $handler, |
146 | 146 | ?string $name = null, |
147 | - array|string $methods = [], |
|
147 | + array | string $methods = [], |
|
148 | 148 | array $attributes = [] |
149 | 149 | ) { |
150 | 150 | $this->pattern = $pattern; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $this->name = $name ?? ''; |
154 | 154 | $this->attributes = $attributes; |
155 | 155 | |
156 | - if(is_string($methods)){ |
|
156 | + if (is_string($methods)) { |
|
157 | 157 | $methods = [$methods]; |
158 | 158 | } |
159 | 159 |