mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 01:01:19 +02:00
Merge pull request #230 from diogocavilha/master
Update DateComparator.php
This commit is contained in:
@@ -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