Skip to content

Commit 8f54955

Browse files
author
Dominik Liebler
authored
Merge pull request DesignPatternsPHP#230 from diogocavilha/master
Update DateComparator.php
2 parents 99c21d9 + f281f41 commit 8f54955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Behavioral/Strategy/DateComparator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public function compare($a, $b)
1717

1818
if ($aDate == $bDate) {
1919
return 0;
20-
} else {
21-
return $aDate < $bDate ? -1 : 1;
2220
}
21+
22+
return $aDate < $bDate ? -1 : 1;
2323
}
2424
}

0 commit comments

Comments
 (0)