Replace function is_integer (alias) by is_int.

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Juan Basso 2009-11-19 20:04:32 -02:00 committed by mark_story
parent 9dcac18b87
commit 9b6b258fed
2 changed files with 2 additions and 2 deletions

View file

@ -348,7 +348,7 @@ class CookieComponent extends Object {
return $this->__expires;
}
$this->__reset = $this->__expires;
if (is_integer($expires) || is_numeric($expires)) {
if (is_int($expires) || is_numeric($expires)) {
return $this->__expires = $now + intval($expires);
}
return $this->__expires = strtotime($expires, $now);

View file

@ -63,7 +63,7 @@ class TimeHelper extends AppHelper {
if (empty($dateString)) {
return false;
}
if (is_integer($dateString) || is_numeric($dateString)) {
if (is_int($dateString) || is_numeric($dateString)) {
$date = intval($dateString);
} else {
$date = strtotime($dateString);