Skip to content

Commit

Permalink
Micro optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Feb 17, 2014
1 parent a0d973c commit 16c1c20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function findItem(ResourceInterface $resource, $identifier)
}

$criteria = new Criteria();
$criteria->andWhere($criteria->expr()->eq(reset($identifierNames), $identifier));
$criteria->where($criteria->expr()->eq(reset($identifierNames), $identifier));

$found = $data->matching($criteria);

Expand Down

0 comments on commit 16c1c20

Please sign in to comment.