Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class Response implements Responsable |
||
19 | { |
||
20 | /** |
||
21 | * @var \Cog\Laravel\Sense\Db\Query\Models\Query |
||
22 | */ |
||
23 | private $query; |
||
24 | |||
25 | public function __construct($query) |
||
26 | { |
||
27 | $this->query = $query; |
||
28 | } |
||
29 | |||
30 | public function toResponse($request) |
||
33 | } |
||
34 | |||
35 | private function toHtml() |
||
39 | ]); |
||
40 | } |
||
41 | |||
42 | private function toJson() |
||
45 | } |
||
46 | } |
||
47 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: