Skip to content

Commit e711808

Browse files
committed
run cs fixer
1 parent f8c3d3b commit e711808

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/platform/src/Bridge/Gemini/Gemini/ResultConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public function supports(Model $model): bool
4444
public function convert(RawResultInterface|RawHttpResult $result, array $options = []): ResultInterface
4545
{
4646
$response = $result->getObject();
47-
47+
4848
if (429 === $response->getStatusCode()) {
4949
throw new RateExceededException();
5050
}
51-
51+
5252
if ($options['stream'] ?? false) {
5353
return new StreamResult($this->convertStream($response));
5454
}

src/platform/src/Bridge/OpenAi/Gpt/ResultConverter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@ private function parseResetTime(string $resetTime): float
216216
$seconds = 0;
217217

218218
if (preg_match('/^(?:(\d+)m)?(?:(\d+)s)?$/', $resetTime, $matches)) {
219-
$minutes = isset($matches[1]) ? (int)$matches[1] : 0;
220-
$secs = isset($matches[2]) ? (int)$matches[2] : 0;
219+
$minutes = isset($matches[1]) ? (int) $matches[1] : 0;
220+
$secs = isset($matches[2]) ? (int) $matches[2] : 0;
221221
$seconds = ($minutes * 60) + $secs;
222222
}
223223

224-
return (float)$seconds;
224+
return (float) $seconds;
225225
}
226226
}

src/platform/tests/Bridge/Gemini/Gemini/ResultConverterRateLimitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ public function testRateLimitExceededThrowsException()
4545
throw $e;
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)