diff --git a/src/Resources/CursorCollection.php b/src/Resources/CursorCollection.php index 36e4d40d..2a20e54e 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; } @@ -98,7 +98,7 @@ public function hasPrevious() /** * Iterate over a CursorCollection and yield its elements. * - * @param boolean $iterateBackwards + * @param bool $iterateBackwards * * @return Generator */ @@ -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; }