Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 8 | public function __invoke(ResponseInterface $response): void |
|
23 | { |
||
24 | 8 | $httpStatusCode = $response->getStatusCode(); |
|
25 | |||
26 | 8 | if ($httpStatusCode < StatusCodeInterface::STATUS_OK |
|
27 | 8 | || $httpStatusCode > StatusCodeInterface::STATUS_MULTIPLE_CHOICES |
|
28 | ) { |
||
29 | 3 | throw GuardErrorException::with($response); |
|
30 | } |
||
33 |