Skip to content
Permalink
Browse files

Simplify every()

  • Loading branch information...
ravage84 committed Jan 24, 2017
1 parent b7680a2 commit f6116cd3e83f565b3611f7dc21ba84396c0bf1a3
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/Collection/CollectionTrait.php
@@ -89,14 +89,13 @@ public function reject(callable $c)
*/
public function every(callable $c)
{
$return = true;
foreach ($this->unwrap() as $key => $value) {
if (!$c($value, $key)) {
return false;
}
}
return $return;
return true;
}
/**

0 comments on commit f6116cd

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