mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-26 01:31:20 +02:00
Update DateComparator.php
This commit is contained in:
committed by
GitHub
parent
8eed6f9c21
commit
f281f412c4
@@ -17,8 +17,8 @@ class DateComparator implements ComparatorInterface
|
|||||||
|
|
||||||
if ($aDate == $bDate) {
|
if ($aDate == $bDate) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
|
||||||
return $aDate < $bDate ? -1 : 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $aDate < $bDate ? -1 : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user