ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Require aws php sdk

#24
Merged luigel wants to merge docs-change-return-type into main
2 files +6 -6
composer.jsonmodified+1-1
Changes to composer.json
@@ -26,11 +26,11 @@
2626 ],
2727 "require": {
2828 "php": "^7.3|^7.4|^8.0",
29 "aws/aws-sdk-php": "^3.178",
2930 "guzzlehttp/guzzle": "^6.0|^7.0",
3031 "illuminate/support": "5.*|^6.0|^7.0|^8.0"
3132 },
3233 "require-dev": {
33 "aws/aws-sdk-php": "^3.0",
3434 "orchestra/testbench": "^4.0|^5.0|^6.0",
3535 "phpunit/phpunit": "^5.0|^6.0|^8.0|^9.3"
3636 },
src/Converters/PollyConverter.phpmodified+5-5
Changes to src/Converters/PollyConverter.php
@@ -18,7 +18,7 @@ class PollyConverter implements Converter
1818 /**
1919 * Client instance of Polly.
2020 *
21 * @var \Aws\Polly\PollyClient
21 * @var PollyClient
2222 */
2323 protected $client;
2424
@@ -163,11 +163,11 @@ class PollyConverter implements Converter
163163 /**
164164 * Get the text type.
165165 *
166 * @return void
166 * @return string
167167 */
168168 protected function textType()
169169 {
170 $default = config('tts.text_type', 'text');
170 $default = (string) config('tts.text_type', 'text');
171171
172172 return $this->textType ?? $default;
173173 }
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -185,7 +185,7 @@ class PollyConverter implements Converter formatting only
185185 /**
186186 * Get the audio format.
187187 *
188 * @param array $options
188 * @param array $options
189189 * @return string
190190 */
191191 protected function format($options)
Changes to src/Converters/PollyConverter.php
@@ -198,7 +198,7 @@ class PollyConverter implements Converter
198198 /**
199199 * Get the content of the result from AWS Polly.
200200 *
201 * @param mixed $result
201 * @param Result $result
202202 * @return mixed
203203 */
204204 protected function getResultContent($result)