Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
16 | 27 | protected function compare(mixed $itemValue, mixed $argumentValue): bool |
|
17 | { |
||
18 | 27 | if (!$itemValue instanceof DateTimeInterface) { |
|
19 | 24 | return $itemValue == $argumentValue; |
|
20 | } |
||
21 | |||
22 | 3 | return $argumentValue instanceof DateTimeInterface |
|
23 | 3 | && $itemValue->getTimestamp() === $argumentValue->getTimestamp(); |
|
24 | } |
||
26 |