From f3322f3788e4008540211bcc7eb25f8479e8e715 Mon Sep 17 00:00:00 2001 From: Naoray Date: Thu, 26 Oct 2023 10:20:54 +0000 Subject: [PATCH] Fix styling --- src/Resources/CursorCollection.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }