Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function predict(array $samples) |
||
15 | { |
||
16 | if (!is_array($samples[0])) { |
||
17 | $predicted = $this->predictSample($samples); |
||
|
|||
18 | } else { |
||
19 | $predicted = []; |
||
20 | foreach ($samples as $index => $sample) { |
||
21 | $predicted[$index] = $this->predictSample($sample); |
||
22 | } |
||
23 | } |
||
24 | |||
25 | return $predicted; |
||
26 | } |
||
27 | } |
||
28 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.