@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | protected $matcher; |
40 | 40 | |
41 | 41 | |
42 | - public function __construct(array $methods, string $uri, array $attribute=[]) |
|
42 | + public function __construct(array $methods, string $uri, array $attribute = []) |
|
43 | 43 | { |
44 | - array_walk($methods, function ($value) { |
|
44 | + array_walk($methods, function($value) { |
|
45 | 45 | return strtoupper($value); |
46 | 46 | }); |
47 | 47 | $this->methods = $methods; |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * @param RequestInterface $request |
158 | 158 | * @return array|null |
159 | 159 | */ |
160 | - public function match(RequestInterface $request):?array |
|
160 | + public function match(RequestInterface $request): ?array |
|
161 | 161 | { |
162 | 162 | if (count($this->methods) > 0 && !\in_array($request->getMethod(), $this->methods)) { |
163 | 163 | return null; |