Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit fa3eff2

Browse files
devhaozigithub-actions[bot]
authored andcommitted
Fix styling
1 parent 609abb4 commit fa3eff2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/V1.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function ask(
207207

208208
$line = $this->formatStreamMessage($line);
209209

210-
if (!$this->checkFields($line)) {
210+
if (! $this->checkFields($line)) {
211211
if (isset($line["detail"]) && $line["detail"] === "Too many requests in 1 hour. Try again later.") {
212212
throw new Exception("Rate limit exceeded");
213213
}
@@ -283,7 +283,7 @@ public function getConversations(int $offset = 0, int $limit = 20, $account = 0)
283283
throw new Exception('Response is not json');
284284
}
285285

286-
if (!isset($data['items'])) {
286+
if (! isset($data['items'])) {
287287
throw new Exception('Field missing');
288288
}
289289

src/V2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function ask(string $prompt, string $user = null, bool $stream = false)
118118
throw new Exception('Response is not json');
119119
}
120120

121-
if (!$this->checkFields($data)) {
121+
if (! $this->checkFields($data)) {
122122
throw new Exception('Field missing');
123123
}
124124

0 commit comments

Comments
 (0)