@@ -181,7 +181,7 @@ |
||
181 | 181 | $object = $class->getMethod('instance')->invoke(null); |
182 | 182 | $context->setResponse($object); |
183 | 183 | $class->getMethod('proccess')->invokeArgs($object, [ |
184 | - new Runnable([$object,'onRequest']), |
|
184 | + new Runnable([$object, 'onRequest']), |
|
185 | 185 | $this->getRequest($context), |
186 | 186 | $this->matcher->getAttribute('buffer', true), |
187 | 187 | $context->isDebug(), |
@@ -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; |