Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 11 | public function isBetterThan(EvaluationResult $other): bool |
|
30 | { |
||
31 | 11 | if (abs($this->score - $other->score) < self::EPSILON) { |
|
32 | // Scores are considered the same, prefer earliest decision. (Shallowest node) |
||
33 | 11 | return $this->age > $other->age; |
|
34 | } |
||
35 | 9 | return $this->score > $other->score; |
|
36 | } |
||
37 | |||
52 |