@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | public function run(ServerRequestInterface $request) : ResponseInterface |
291 | 291 | { |
292 | 292 | // lazy resolving of the given request... |
293 | - $routing = new CallableRequestHandler(function (ServerRequestInterface $request) : ResponseInterface { |
|
293 | + $routing = new CallableRequestHandler(function(ServerRequestInterface $request) : ResponseInterface { |
|
294 | 294 | return $this->match($request)->handle($request); |
295 | 295 | }); |
296 | 296 | |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | { |
331 | 331 | try { |
332 | 332 | return $this->handle($request); |
333 | - } catch (MethodNotAllowedException|PageNotFoundException $e) { |
|
333 | + } catch (MethodNotAllowedException | PageNotFoundException $e) { |
|
334 | 334 | $request = $request->withAttribute(self::ATTR_NAME_FOR_ROUTING_ERROR, $e); |
335 | 335 | |
336 | 336 | return $handler->handle($request); |
@@ -148,7 +148,7 @@ |
||
148 | 148 | ); |
149 | 149 | |
150 | 150 | foreach ($this->resources as $resource) { |
151 | - (function () use ($resource) { |
|
151 | + (function() use ($resource) { |
|
152 | 152 | require $resource; |
153 | 153 | })->call($collector); |
154 | 154 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | } |
297 | 297 | } |
298 | 298 | |
299 | - usort($result, function (Route $a, Route $b) : int { |
|
299 | + usort($result, function(Route $a, Route $b) : int { |
|
300 | 300 | return $b->priority <=> $a->priority; |
301 | 301 | }); |
302 | 302 | |
@@ -420,8 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | if (empty($result) and isset($this->annotationReader)) { |
422 | 422 | $annotations = ($reflector instanceof ReflectionClass) ? |
423 | - $this->annotationReader->getClassAnnotations($reflector) : |
|
424 | - $this->annotationReader->getMethodAnnotations($reflector); |
|
423 | + $this->annotationReader->getClassAnnotations($reflector) : $this->annotationReader->getMethodAnnotations($reflector); |
|
425 | 424 | |
426 | 425 | foreach ($annotations as $annotation) { |
427 | 426 | if ($annotation instanceof $annotationName) { |