We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | protected function runSelect() |
||
15 | { |
||
16 | $query = base64_encode(json_encode([$this->toSql() => $this->getBindings()])); |
||
17 | |||
18 | if (app('crud')->hasQuery($query)) { |
||
19 | return app('crud')->getQuery($query); |
||
20 | } |
||
21 | |||
22 | $result = parent::runSelect(); |
||
23 | app('crud')->saveQuery($query, $result); |
||
24 | |||
25 | return $result; |
||
26 | } |
||
28 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.