1 | <?php declare(strict_types = 1); |
||
19 | final class RouteMatcher implements RouteMatcherContract |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var FastrouteDispatcherFactory |
||
24 | */ |
||
25 | private $fastrouteDispatcherFactory; |
||
26 | |||
27 | /** |
||
28 | * @var RouteParserContract |
||
29 | */ |
||
30 | private $parser; |
||
31 | |||
32 | /** |
||
33 | * RouteMatcher constructor. |
||
34 | * |
||
35 | * @param RouteParserContract $parser |
||
36 | * @param FastrouteDispatcherFactory $fastrouteDispatcherFactory |
||
37 | */ |
||
38 | 2 | public function __construct(RouteParserContract $parser, FastrouteDispatcherFactory $fastrouteDispatcherFactory) |
|
43 | |||
44 | /** |
||
45 | * @inheritDoc |
||
46 | */ |
||
47 | 1 | public function match(ServerRequestInterface $request, RouteCollectionContract $routeCollection): RouteContract |
|
65 | |||
66 | } |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.