Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | 2 | public function __invoke( |
|
33 | PingDataProviderInterface $dataProvider, |
||
34 | array $queryParams, |
||
35 | array $args |
||
36 | ): ResponderInterface { |
||
37 | 2 | if (!$dataProvider->isOk()) { |
|
38 | 1 | throw new MethodCallFailedException(ErrorCodeEnum::GENERIC_ERROR); |
|
39 | } |
||
40 | |||
41 | 1 | return $this->responderFactory->createPingResponder(); |
|
42 | } |
||
44 |