Skip to content

Commit

Permalink
Merge pull request #249 from symfony-cmf/analysis-5Z3xQx
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
dbu authored Apr 19, 2020
2 parents 12f3f64 + ab048f7 commit d9450c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/DynamicRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions tests/Unit/Routing/ChainRouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d9450c6

Please sign in to comment.