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 26, 2023
1 parent eafd22e commit f3322f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 @@ -98,7 +98,7 @@ public function hasPrevious()
/**
* Iterate over a CursorCollection and yield its elements.
*
* @param boolean $iterateBackwards
* @param bool $iterateBackwards
*
* @return Generator
*/
Expand All @@ -111,7 +111,7 @@ public function getAutoIterator(bool $iterateBackwards = false): Generator
yield $item;
}

if (($iterateBackwards && !$page->hasPrevious()) || !$page->hasNext()) {
if (($iterateBackwards && ! $page->hasPrevious()) || ! $page->hasNext()) {
break;
}

Expand Down

0 comments on commit f3322f3

Please sign in to comment.