Skip to content

Commit

Permalink
Reduced size of has() method (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
SidRoberts authored and anned20 committed Oct 2, 2017
1 parent 3888da5 commit b12de60
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ public function get($id)
*/
public function has($id)
{
if (array_key_exists($id, $this->entries)) {
return true;
}

return false;
return array_key_exists($id, $this->entries);
}

/**
Expand Down

0 comments on commit b12de60

Please sign in to comment.