From 275adf2d8af5e427daebec849573486131042d8c Mon Sep 17 00:00:00 2001 From: tai-sho Date: Sun, 9 Jun 2024 04:00:07 +0000 Subject: [PATCH] Fix styling --- src/Client.php | 2 -- tests/ClientTest.php | 9 ++++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Client.php b/src/Client.php index 6e31507..42b044e 100644 --- a/src/Client.php +++ b/src/Client.php @@ -420,7 +420,6 @@ public function getAllPages(string $endpoint, array $params = []): array $data = json_decode($response->getBody()->getContents(), true); $nextToken = $data['next_token'] ?? null; - } while ($nextToken); return $allResponses; @@ -580,4 +579,3 @@ public function getAllDailyStress(array $params = []): array return $this->getAllPages('usercollection/daily_stress', $params); } } - diff --git a/tests/ClientTest.php b/tests/ClientTest.php index a52870f..a63436c 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -4,12 +4,12 @@ namespace OuraApiPhp\Tests; -use OuraApiPhp\Client; -use PHPUnit\Framework\TestCase; -use GuzzleHttp\Psr7\Response; +use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Handler\MockHandler; use GuzzleHttp\HandlerStack; -use GuzzleHttp\Client as GuzzleClient; +use GuzzleHttp\Psr7\Response; +use OuraApiPhp\Client; +use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; /** @@ -833,4 +833,3 @@ public function testGetAllDailyStress(): void $this->assertInstanceOf(ResponseInterface::class, $responses[1]); } } -