From ab048f7ef750deaa01062ed8888ded139039bf7a Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sun, 19 Apr 2020 10:48:41 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/DynamicRouter.php | 13 +++++++------ tests/Unit/Routing/ChainRouterTest.php | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/DynamicRouter.php b/src/DynamicRouter.php index 8a78a48a..38bc2b54 100644 --- a/src/DynamicRouter.php +++ b/src/DynamicRouter.php @@ -89,12 +89,13 @@ class DynamicRouter implements RouterInterface, RequestMatcherInterface, Chained * * @throws \InvalidArgumentException If the matcher is not a request or url matcher */ - public function __construct(RequestContext $context, - $matcher, - UrlGeneratorInterface $generator, - $uriFilterRegexp = '', - EventDispatcherInterface $eventDispatcher = null, - RouteProviderInterface $provider = null + public function __construct( + RequestContext $context, + $matcher, + UrlGeneratorInterface $generator, + $uriFilterRegexp = '', + EventDispatcherInterface $eventDispatcher = null, + RouteProviderInterface $provider = null ) { $this->context = $context; if (!$matcher instanceof RequestMatcherInterface && !$matcher instanceof UrlMatcherInterface) { diff --git a/tests/Unit/Routing/ChainRouterTest.php b/tests/Unit/Routing/ChainRouterTest.php index 48c1046d..e36f501d 100644 --- a/tests/Unit/Routing/ChainRouterTest.php +++ b/tests/Unit/Routing/ChainRouterTest.php @@ -392,8 +392,9 @@ public function testMatchAndNotAllowed() ->expects($this->once()) ->method('match') ->with($url) - ->will($this->returnValue(['test'] - )) + ->will($this->returnValue( + ['test'] + )) ; $this->router->add($low, 10); $this->router->add($high, 100);