Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed Nov 15, 2023
1 parent 714b51a commit 1b54bef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function get(int|string $key): mixed
* Sets the given element to the given key in the collection.
*
* @param TKey $key
* @param T $element
* @param T $element
*
* @return Collection<TKey, T>
*/
Expand Down Expand Up @@ -273,6 +273,7 @@ public function find(\Closure $predicate): mixed
public function filter(?\Closure $predicate = null): self
{
$result = array_filter($this->elements, $predicate, \ARRAY_FILTER_USE_BOTH);

return new self($result);
}

Expand Down

0 comments on commit 1b54bef

Please sign in to comment.