Skip to content

Commit

Permalink
Cleaned code.
Browse files Browse the repository at this point in the history
  • Loading branch information
7r1n17y committed Jul 9, 2017
1 parent 4aa74ab commit bba8e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Manage/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public function send(string $name = null, array $options = array('val' => null,
if (!is_int($expire) && !is_float($expire)) {
throw new \InvalidArgumentException(sprintf('$expire only accepts integers. Input was: "%s"', gettype($expire));
}
$expire = intval($expire);
$expire = intval($expire);
if ($expire === 0) {
$expire = time() - (time() * 2);
}
setcookie($name, $this->_encode(array('val' => $val)), time() + ($expire), $this->params['path'], $this->params['domain'], $this->params['secure'], $this->params['httponly']);
}
}
}
?>

0 comments on commit bba8e75

Please sign in to comment.