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