Skip to content
Permalink
Browse files

Refactor to use new methods.

  • Loading branch information...
markstory committed May 14, 2016
1 parent fec9e58 commit 62a3a2941731034a10ca5b80351826313d406e0e
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/Http/Client/Response.php
@@ -397,15 +397,12 @@ public function header($name = null)
public function cookie($name = null, $all = false)
{
if ($name === null) {
return $this->_cookies;
}
if (!isset($this->_cookies[$name])) {
return null;
return $this->getCookies();
}
if ($all) {
return $this->_cookies[$name];
return $this->getCookieData($name);
}
return $this->_cookies[$name]['value'];
return $this->getCookie($name);
}
/**

0 comments on commit 62a3a29

Please sign in to comment.
You can’t perform that action at this time.