ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Apply fixes from StyleCI

#2
Merged luigel wants to merge analysis-4xbAEP into master
4 files +17 -18
src/Contracts/Formatter.phpmodifiedformatting only+10-10
Changes to src/Contracts/Formatter.php
@@ -1,16 +1,16 @@
1<?php
1<?php
22
33namespace Cion\TextToSpeech\Contracts;
44
55interface Formatter
66{
7/**
8 * Handles the filename of the audio.
9 *
10 * @param string $text The text source
11 * @param mixed $audio The result audio content.
12 *
13 * @return string
14 */
7 /**
8 * Handles the filename of the audio.
9 *
10 * @param string $text The text source
11 * @param mixed $audio The result audio content.
12 *
13 * @return string
14 */
1515 public function handle($text, $audio = null): string;
16}⧵
16}
src/Converters/PollyConverter.phpmodifiedformatting only+1-1
Changes to src/Converters/PollyConverter.php
@@ -74,7 +74,7 @@ class PollyConverter implements Converter
7474
7575 // Store audio file to disk
7676 return $this->store(
77 $this->getTextFromSource($data),
77 $this->getTextFromSource($data),
7878 $this->getResultContent($result)
7979 );
8080 }
src/Providers/TextToSpeechServiceProvider.phpmodified+0-1
Changes to src/Providers/TextToSpeechServiceProvider.php
@@ -4,7 +4,6 @@ namespace Cion\TextToSpeech\Providers;
44
55use Cion\TextToSpeech\Contracts\Formatter;
66use Cion\TextToSpeech\Facades\TextToSpeech;
7use Cion\TextToSpeech\Formatters\DefaultFilenameFormatter;
87use Cion\TextToSpeech\TextToSpeechManager;
98use Illuminate\Support\ServiceProvider;
109
src/Traits/Storable.phpmodifiedformatting only+6-6
Changes to src/Traits/Storable.php
@@ -25,7 +25,7 @@ trait Storable
2525 * Set where to store the converted file.
2626 *
2727 * @param string $disk
28 *
28 *
2929 * @return $this
3030 */
3131 public function disk(string $disk)
@@ -39,7 +39,7 @@ trait Storable
3939 * Set path to where to store the converted file.
4040 *
4141 * @param string $path
42 *
42 *
4343 * @return $this
4444 */
4545 public function saveTo(string $path)
@@ -54,7 +54,7 @@ trait Storable
5454 *
5555 * @param string $text
5656 * @param mixed $resultContent
57 *
57 *
5858 * @return string
5959 */
6060 protected function store($text, $resultContent)
@@ -73,12 +73,12 @@ trait Storable
7373 *
7474 * @param string $text
7575 * @param mixed $audio
76 *
76 *
7777 * @return void
7878 */
7979 protected function ensurePathIsNotNull($text, $audio)
8080 {
81 $filename = $this->path ?: $this->getDefaultPath() . '/' . $this->getDefaultFilename($text, $audio);
81 $filename = $this->path ?: $this->getDefaultPath().'/'.$this->getDefaultFilename($text, $audio);
8282
8383 if (! $this->hasExtension($filename)) {
8484 $filename .= '.'.$this->getExtension();
@@ -113,7 +113,7 @@ trait Storable
113113 *
114114 * @param string $text
115115 * @param mixed $audio
116 *
116 *
117117 * @return string
118118 */
119119 protected function getDefaultFilename($text, $audio)