Skip to content

Commit cdd4a1e

Browse files
binarykgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 849e2c7 commit cdd4a1e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Exceptions/Solutions/OpenAiSolution.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(protected Throwable $throwable)
2424

2525
$this->solution = Cache::remember($cacheKey,
2626
now()->addHour(),
27-
fn() => trim(Prism::text()
27+
fn () => trim(Prism::text()
2828
->using(config('restify.ai_solutions.provider'), config('restify.ai_solutions.model'))
2929
->withSystemPrompt('You are an expert PHP/Laravel developer. Provide concise, actionable solutions in a single paragraph without line breaks, code blocks, or formatting. Your response should be suitable for JSON API responses.')
3030
->withPrompt($this->generatePrompt($this->throwable))
@@ -63,7 +63,7 @@ protected function generatePrompt(Throwable $throwable): string
6363
$snippet = $applicationFrame->getSnippet(15);
6464

6565
return (string) view('restify::prompts.prompt', [
66-
'snippet' => collect($snippet)->map(fn($line, $number) => $number.' '.$line)->join(PHP_EOL),
66+
'snippet' => collect($snippet)->map(fn ($line, $number) => $number.' '.$line)->join(PHP_EOL),
6767
'file' => $applicationFrame->file,
6868
'line' => $applicationFrame->lineNumber,
6969
'exception' => $throwable->getMessage(),
@@ -76,13 +76,13 @@ public function restifyDocs(): string
7676
$docs = [];
7777

7878
// Get Field methods
79-
$fieldMethods = $this->getMethodsFrom(__DIR__ . '/../../Fields/Field.php');
79+
$fieldMethods = $this->getMethodsFrom(__DIR__.'/../../Fields/Field.php');
8080
if ($fieldMethods) {
8181
$docs[] = $fieldMethods;
8282
}
8383

8484
// Get Repository methods
85-
$repositoryMethods = $this->getMethodsFrom(__DIR__ . '/../../Repositories/Repository.php');
85+
$repositoryMethods = $this->getMethodsFrom(__DIR__.'/../../Repositories/Repository.php');
8686
if ($repositoryMethods) {
8787
$docs[] = $repositoryMethods;
8888
}
@@ -94,7 +94,7 @@ protected function getMethodsFrom($filePath): string
9494
{
9595
$fileName = pathinfo($filePath, PATHINFO_FILENAME);
9696

97-
if (!file_exists($filePath)) {
97+
if (! file_exists($filePath)) {
9898
return '';
9999
}
100100

@@ -111,6 +111,6 @@ protected function getMethodsFrom($filePath): string
111111
$methods[] = $methodSignature;
112112
}
113113

114-
return empty($methods) ? '' : 'Available '.$fileName.' methods: ' . implode(', ', $methods);
114+
return empty($methods) ? '' : 'Available '.$fileName.' methods: '.implode(', ', $methods);
115115
}
116116
}

0 commit comments

Comments
 (0)