Skip to content

Commit

Permalink
Fix up lint and don't make temporary variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 13, 2017
1 parent 5bfe86e commit c0d6659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/Http/Cookie/CookieCollection.php
Expand Up @@ -98,8 +98,7 @@ public function get($name)
*/
public function has($name)
{
$key = mb_strtolower($name);
return isset($this->cookies[$key]);
return isset($this->cookies[mb_strtolower($name)]);
}

/**
Expand All @@ -112,8 +111,7 @@ public function has($name)
*/
public function remove($name)
{
$key = mb_strtolower($name);
unset($this->cookies[$key]);
unset($this->cookies[mb_strtolower($name)]);

return $this;
}
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase/Http/Cookie/CookieCollectionTest.php
Expand Up @@ -91,7 +91,6 @@ public function testAdd()
$rememberNo = new Cookie('remember_me', 'no');
$this->assertSame($collection, $collection->add($remember)->add($rememberNo));
$this->assertSame($rememberNo, $collection->get('remember_me'));

}

/**
Expand Down

0 comments on commit c0d6659

Please sign in to comment.