| Conditions | 4 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function matches(Request $request, ?int $requestType = HttpKernelInterface::MAIN_REQUEST): bool |
||
| 16 | { |
||
| 17 | if ($requestType !== HttpKernelInterface::MAIN_REQUEST) { |
||
| 18 | return false; |
||
| 19 | } |
||
| 20 | |||
| 21 | if ($this->matchPreviouslyMatchedRequest($request)) { |
||
| 22 | return true; |
||
| 23 | } |
||
| 24 | 10 | ||
| 25 | if (!$this->matchRequestPathAgainstLists($request->getPathInfo())) { |
||
| 26 | 10 | return false; |
|
| 27 | 10 | } |
|
| 28 | 10 | ||
| 29 | $this->markRequestAsMatched($request); |
||
| 30 | |||
| 31 | return true; |
||
| 32 | } |
||
| 79 |