Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tai-sho authored and github-actions[bot] committed Jun 9, 2024
1 parent 7e350fd commit 275adf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -580,4 +579,3 @@ public function getAllDailyStress(array $params = []): array
return $this->getAllPages('usercollection/daily_stress', $params);
}
}

9 changes: 4 additions & 5 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -833,4 +833,3 @@ public function testGetAllDailyStress(): void
$this->assertInstanceOf(ResponseInterface::class, $responses[1]);
}
}

0 comments on commit 275adf2

Please sign in to comment.