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