Skip to content

Commit a75e20e

Browse files
committed
Fix php-cs-fixer bugs in examples
1 parent 6743305 commit a75e20e

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

examples/gemini/multi-speaker-voice.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Symfony\AI\Platform\Message\Message;
1414
use Symfony\AI\Platform\Message\MessageBag;
1515

16-
require_once dirname(__DIR__) . '/bootstrap.php';
16+
require_once dirname(__DIR__).'/bootstrap.php';
1717

1818
$platform = PlatformFactory::create(env('GEMINI_API_KEY'), http_client());
1919

@@ -31,25 +31,25 @@
3131
'speaker' => 'Joe',
3232
'voiceConfig' => [
3333
'prebuiltVoiceConfig' => [
34-
'voiceName' => 'Kore'
35-
]
36-
]
34+
'voiceName' => 'Kore',
35+
],
36+
],
3737
],
3838
[
3939
'speaker' => 'Jane',
4040
'voiceConfig' => [
4141
'prebuiltVoiceConfig' => [
42-
'voiceName' => 'Puck'
43-
]
44-
]
45-
]
46-
]
47-
]
48-
]
42+
'voiceName' => 'Puck',
43+
],
44+
],
45+
],
46+
],
47+
],
48+
],
4949
]);
5050

5151
// Example call
5252
// php examples/gemini/multi-speaker-voice.php > out.pcm
5353
// ffmpeg -f s16le -ar 24000 -ac 1 -i out.pcm out.wav
5454

55-
echo $result->asBinary() . \PHP_EOL;
55+
echo $result->asBinary().\PHP_EOL;

examples/gemini/single-speaker-voice.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Symfony\AI\Platform\Message\Message;
1414
use Symfony\AI\Platform\Message\MessageBag;
1515

16-
require_once dirname(__DIR__) . '/bootstrap.php';
16+
require_once dirname(__DIR__).'/bootstrap.php';
1717

1818
$platform = PlatformFactory::create(env('GEMINI_API_KEY'), http_client());
1919

@@ -25,14 +25,14 @@
2525
'speechConfig' => [
2626
'voiceConfig' => [
2727
'prebuiltVoiceConfig' => [
28-
'voiceName' => 'Kore'
29-
]
30-
]
31-
]
28+
'voiceName' => 'Kore',
29+
],
30+
],
31+
],
3232
]);
3333

3434
// Example call
3535
// php examples/gemini/single-speaker-voice.php > out.pcm
3636
// ffmpeg -f s16le -ar 24000 -ac 1 -i out.pcm out.wav
3737

38-
echo $result->asBinary() . \PHP_EOL;
38+
echo $result->asBinary().\PHP_EOL;

0 commit comments

Comments
 (0)