ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Apply fixes from StyleCI

#31
Merged luigel wants to merge analysis-Vr1RR6 into support-laravel-9
15 files +55 -58
src/Converters/PollyConverter.phpmodified+13-15
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -26,7 +26,7 @@ class PollyConverter implements Converter formatting only
2626 /**
2727 * Construct converter.
2828 *
29 * @param PollyClient $client
29 * @param PollyClient $client
3030 */
3131 public function __construct(PollyClient $client)
3232 {
Changes to src/Converters/PollyConverter.php
@@ -46,9 +46,8 @@ class PollyConverter implements Converter
4646 /**
4747 * Converts the text to speech.
4848 *
49 * @param string $data
50 * @param array|null $options
51 *
49 * @param string $data
50 * @param array|null $options
5251 * @return string|array
5352 */
5453 public function convert(string $data, array $options = null)
@@ -82,9 +81,8 @@ class PollyConverter implements Converter
8281 /**
8382 * Request to Amazon Polly to synthesize speech.
8483 *
85 * @param string|array $text
86 * @param array|null $options
87 *
84 * @param string|array $text
85 * @param array|null $options
8886 * @return array|\Aws\Result
8987 */
9088 protected function synthesizeSpeech($text, array $options = null)
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -137,7 +135,7 @@ class PollyConverter implements Converter formatting only
137135 /**
138136 * Checks the length of the text if more than 3000.
139137 *
140 * @param string $text
138 * @param string $text
141139 * @return bool
142140 */
143141 protected function isTextAboveLimit(string $text)
formatting only · 10 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -148,8 +146,8 @@ class PollyConverter implements Converter formatting only
148146 /**
149147 * Chunk the given text into array.
150148 *
151 * @param string $text
152 * @param int $size
149 * @param string $text
150 * @param int $size
153151 * @return array
154152 */
155153 protected function getChunkText(string $text, int $size = 2000)
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -160,7 +158,7 @@ class PollyConverter implements Converter formatting only
160158 /**
161159 * Get the text to speech voice ID.
162160 *
163 * @param array $options
161 * @param array $options
164162 * @return string
165163 */
166164 protected function voice($options)
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -195,7 +193,7 @@ class PollyConverter implements Converter formatting only
195193 /**
196194 * Get the audio format.
197195 *
198 * @param array $options
196 * @param array $options
199197 * @return string
200198 */
201199 protected function format($options)
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -212,7 +210,7 @@ class PollyConverter implements Converter formatting only
212210 /**
213211 * Get the engine.
214212 *
215 * @param array $options
213 * @param array $options
216214 * @return string
217215 */
218216 protected function engine($options)
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -235,7 +233,7 @@ class PollyConverter implements Converter formatting only
235233 /**
236234 * Get the content of the result from AWS Polly.
237235 *
238 * @param Result $result
236 * @param Result $result
239237 * @return mixed
240238 */
241239 protected function getResultContent($result)
formatting only · 8 hidden lines
Changes to src/Converters/PollyConverter.php
@@ -256,7 +254,7 @@ class PollyConverter implements Converter formatting only
256254 /**
257255 * Format the given json string into an array.
258256 *
259 * @param string $json
257 * @param string $json
260258 * @return array
261259 */
262260 protected function formatToArray($json)