Skip to content

Commit

Permalink
Fix elseifs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Pustułka committed Apr 20, 2017
1 parent 92d966a commit 832bdb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Http/Client/Response.php
Expand Up @@ -462,7 +462,9 @@ protected function toArrayClient(CookieInterface $cookie)
{
if ($cookie instanceof Cookie) {
return $cookie->toArrayClient();
} elseif ($cookie->getExpiry()) {
}

if ($cookie->getExpiry()) {
$expires = $cookie->getExpiry()->format(Cookie::EXPIRES_FORMAT);
} else {
$expires = '';
Expand Down
4 changes: 3 additions & 1 deletion src/Http/Response.php
Expand Up @@ -2080,7 +2080,9 @@ protected function toArrayResponse(CookieInterface $cookie)
{
if ($cookie instanceof Cookie) {
return $cookie->toArrayResponse();
} elseif ($cookie->getExpiry()) {
}

if ($cookie->getExpiry()) {
$expires = $cookie->getExpiry()->format('U');
} else {
$expires = '';
Expand Down

0 comments on commit 832bdb7

Please sign in to comment.