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 f23e7cb commit b6c2b11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Resources/CursorCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ abstract protected function createResourceObject();
*/
final public function next()
{
if (!$this->hasNext()) {
if (! $this->hasNext()) {
return null;
}

Expand All @@ -60,7 +60,7 @@ final public function next()
*/
final public function previous()
{
if (!$this->hasPrevious()) {
if (! $this->hasPrevious()) {
return null;
}

Expand Down Expand Up @@ -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;
}

Expand Down
6 changes: 3 additions & 3 deletions src/Resources/LazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

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

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

Expand All @@ -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;
}
}
Expand Down

0 comments on commit b6c2b11

Please sign in to comment.