Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 88.24% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class ListTubesCommand extends AbstractCommand implements \Pheanstalk\ResponseParser |
||
20 | { |
||
21 | /** |
||
22 | * @inheritDoc |
||
23 | */ |
||
24 | 1 | public function getGroup(): string |
|
25 | { |
||
26 | 1 | return 'queuepool'; |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | 1 | public function getAction(): string |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | public function getResponseParser() |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @inheritDoc |
||
47 | */ |
||
48 | 1 | public function parseResponse($responseLine, $responseData) |
|
66 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: