| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function output(Collection $detectedQueries, Response $response) |
||
| 16 | { |
||
| 17 | if ($response instanceof JsonResponse) { |
||
| 18 | $data = $response->getData(true); |
||
| 19 | if (! is_array($data)){ |
||
| 20 | $data = [ $data ]; |
||
|
|
|||
| 21 | } |
||
| 22 | |||
| 23 | $data['warning_queries'] = $detectedQueries; |
||
| 24 | $response->setData($data); |
||
| 25 | } |
||
| 28 |