Skip to content

Commit e23ba42

Browse files
committed
phpcs
1 parent 50103e0 commit e23ba42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/EDTFUtils.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static function validate($edtf_text, $intervals = TRUE, $sets = TRUE, $st
165165
if (!empty($dates[1]) && !($dates[1] == '..')) {
166166
$msgs = array_merge($msgs, self::validateDate($dates[1], $strict));
167167
}
168-
// Check if start date is sooner than end date
168+
// Check if start date is sooner than end date.
169169
if (self::compareDates($dates[0], $dates[1]) > 0) {
170170
$msgs[] = "The start date must be sooner than the end date.";
171171
}
@@ -188,7 +188,7 @@ public static function validate($edtf_text, $intervals = TRUE, $sets = TRUE, $st
188188
* The second date.
189189
*
190190
* @return int
191-
* Returns -1 if $date1 is earlier, 1 if $date1 is later, 0 if they are equal.
191+
* Returns -1, 1 or 0 based on the order of the two dates.
192192
*/
193193
private static function compareDates($date1, $date2) {
194194
$isoDate1 = self::iso8601Value($date1);

0 commit comments

Comments
 (0)