diff --git a/src/V1.php b/src/V1.php index 5c18edd..f8a5048 100644 --- a/src/V1.php +++ b/src/V1.php @@ -207,7 +207,7 @@ public function ask( $line = $this->formatStreamMessage($line); - if (!$this->checkFields($line)) { + if (! $this->checkFields($line)) { if (isset($line["detail"]) && $line["detail"] === "Too many requests in 1 hour. Try again later.") { throw new Exception("Rate limit exceeded"); } @@ -283,7 +283,7 @@ public function getConversations(int $offset = 0, int $limit = 20, $account = 0) throw new Exception('Response is not json'); } - if (!isset($data['items'])) { + if (! isset($data['items'])) { throw new Exception('Field missing'); } diff --git a/src/V2.php b/src/V2.php index d52f9c4..b3a0012 100644 --- a/src/V2.php +++ b/src/V2.php @@ -118,7 +118,7 @@ public function ask(string $prompt, string $user = null, bool $stream = false) throw new Exception('Response is not json'); } - if (!$this->checkFields($data)) { + if (! $this->checkFields($data)) { throw new Exception('Field missing'); }