Skip to content

Commit

Permalink
Another PSR-2 d'oh
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 19, 2015
1 parent 848532b commit 5b658bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -525,7 +525,8 @@ public function unfold(callable $transformer = null)
* {@inheritDoc}
*
*/
public function through(callable $handler) {
public function through(callable $handler)
{
$result = $handler($this);
return $result instanceof CollectionInterface ? $result: new Collection($result);
}
Expand Down

0 comments on commit 5b658bd

Please sign in to comment.