| Conditions | 4 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 3 | public function getSupportingHandler(Request $request): AbstractRequestHandler |
|
| 21 | { |
||
| 22 | 3 | foreach ($this->requestHandlers as $requestHandler) { |
|
| 23 | 2 | if ($requestHandler->supportsApplication($request) && $requestHandler->supportsRequest($request)) { |
|
| 24 | 2 | return $requestHandler; |
|
| 25 | } |
||
| 26 | } |
||
| 27 | |||
| 28 | 1 | throw new MissingRequestHandlerException(); |
|
| 29 | } |
||
| 36 |