Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change equal operators to identity operators

  • Loading branch information...
commit e38892ff06c0066c572f8251953a091041246814 1 parent 2ac5452
@PhantomWatson PhantomWatson authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/View/Helper/FormHelper.php
View
4 lib/Cake/View/Helper/FormHelper.php
@@ -2383,14 +2383,14 @@ public function dateTime($fieldName, $dateFormat = 'DMY', $timeFormat = '12', $a
$current->setDate($year, $month, $day);
}
if ($hour !== null) {
- if ($timeFormat == '12') {
+ if ($timeFormat === '12') {
$hour = date('H', strtotime("$hour:$min $meridian"));
}
$current->setTime($hour, $min);
}
$change = (round($min * (1 / $interval)) * $interval) - $min;
$current->modify($change > 0 ? "+$change minutes" : "$change minutes");
- $format = ($timeFormat == '12') ? 'Y m d h i a' : 'Y m d H i a';
+ $format = ($timeFormat === '12') ? 'Y m d h i a' : 'Y m d H i a';
$newTime = explode(' ', $current->format($format));
list($year, $month, $day, $hour, $min, $meridian) = $newTime;
}
Please sign in to comment.
Something went wrong with that request. Please try again.