Skip to content

Commit

Permalink
Minor improve on DirectAccessTrait
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardosoliv committed Feb 1, 2014
1 parent 8c79836 commit 6b59b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EBT/Collection/DirectAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function get($index, $defaultValue = null)
{
$index = (string) $index;

$collection = $this->getItems();
$items = $this->getItems();

return isset($collection[$index]) ? $collection[$index] : $defaultValue;
return isset($items[$index]) ? $items[$index] : $defaultValue;
}

/**
Expand Down

0 comments on commit 6b59b40

Please sign in to comment.