Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 4 |
1 | <?php |
||
35 | public function explain(string $sessionKey, string $time, string $timeKey, Request $request): array |
||
36 | { |
||
37 | $data = Cache::get($sessionKey); |
||
38 | if (isset($data[$time][$timeKey])) { |
||
39 | $query = $data[$time][$timeKey]; |
||
40 | return QueryBuilderHelper::analyze($query['rawSql'], $query['bindings']); |
||
41 | } |
||
42 | |||
43 | return [ |
||
44 | 'queryParts' => "", |
||
45 | 'query' => "", |
||
46 | 'optimized' => "", |
||
47 | ]; |
||
50 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.