Conditions | 5 |
Paths | 6 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 13 | public function extractBest(): ?Node |
|
22 | { |
||
23 | 13 | $bestNode = null; |
|
24 | |||
25 | 13 | foreach ($this->nodes as $node) { |
|
26 | 13 | if ($bestNode === null || $node->getF() < $bestNode->getF()) { |
|
|
|||
27 | 13 | $bestNode = $node; |
|
28 | } |
||
29 | } |
||
30 | |||
31 | 13 | if ($bestNode !== null) { |
|
32 | 13 | $this->remove($bestNode); |
|
33 | } |
||
34 | |||
35 | 13 | return $bestNode; |
|
36 | } |
||
71 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.