| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | 4 | private function compareTwoBirthDates( |
|
| 57 | Person $person, |
||
| 58 | int $j |
||
| 59 | ): AgeComparatorResult{ |
||
| 60 | 4 | if ($person->birthDate() < $this->people[$j]->birthDate()) { |
|
| 61 | 3 | return new AgeComparatorResult($person, $this->people[$j]); |
|
| 62 | } |
||
| 63 | |||
| 64 | 3 | return new AgeComparatorResult($this->people[$j], $person); |
|
| 65 | } |
||
| 66 | } |
||
| 67 |