Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray authored and github-actions[bot] committed Oct 30, 2023
1 parent 7612464 commit 9f39287
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/LazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function first(callable $callback = null)
$iterator = $this->getIterator();

if (is_null($callback)) {
if (!$iterator->valid()) {
if (! $iterator->valid()) {
return null;
}

Expand Down Expand Up @@ -124,7 +124,7 @@ public function take(int $limit): self
$iterator = $this->getIterator();

while ($limit--) {
if (!$iterator->valid()) {
if (! $iterator->valid()) {
break;
}

Expand All @@ -148,7 +148,7 @@ public function every(callable $callback): bool
$iterator = $this->getIterator();

foreach ($iterator as $key => $value) {
if (!$callback($value, $key)) {
if (! $callback($value, $key)) {
return false;
}
}
Expand Down

0 comments on commit 9f39287

Please sign in to comment.