Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 10 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
60 | View Code Duplication | public function query($query) |
|
61 | { |
||
62 | $result = parent::query($query); |
||
63 | if (false === $result) { |
||
64 | $this->checkGoneAway(); |
||
65 | $result = parent::query($query); |
||
66 | } |
||
67 | |||
68 | return $result; |
||
69 | } |
||
70 | |||
87 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.