diff --git a/src/Resources/CursorCollection.php b/src/Resources/CursorCollection.php index a17f6df3..0f83c7e5 100644 --- a/src/Resources/CursorCollection.php +++ b/src/Resources/CursorCollection.php @@ -37,7 +37,7 @@ abstract protected function createResourceObject(); */ final public function next() { - if (!$this->hasNext()) { + if (! $this->hasNext()) { return null; } @@ -60,7 +60,7 @@ final public function next() */ final public function previous() { - if (!$this->hasPrevious()) { + if (! $this->hasPrevious()) { return null; } @@ -112,7 +112,7 @@ public function getAutoIterator(bool $iterateBackwards = false): LazyCollection yield $item; } - if (($iterateBackwards && !$page->hasPrevious()) || !$page->hasNext()) { + if (($iterateBackwards && ! $page->hasPrevious()) || ! $page->hasNext()) { break; } diff --git a/src/Resources/LazyCollection.php b/src/Resources/LazyCollection.php index dbeac940..90360f53 100644 --- a/src/Resources/LazyCollection.php +++ b/src/Resources/LazyCollection.php @@ -75,7 +75,7 @@ public function first(callable $callback = null): mixed $iterator = $this->getIterator(); if (is_null($callback)) { - if (!$iterator->valid()) { + if (! $iterator->valid()) { return null; } @@ -118,7 +118,7 @@ public function take(int $limit): self $iterator = $this->getIterator(); while ($limit--) { - if (!$iterator->valid()) { + if (! $iterator->valid()) { break; } @@ -142,7 +142,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; } }