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