ReviewOS

also looking at this

meemalabs/laravel-text-to-speech

Apply fixes from StyleCI

#4
Merged luigel wants to merge analysis-ZlGpWR into master
7 files +9 -10
config/config.phpmodified+2-2
Changes to config/config.php
@@ -39,8 +39,8 @@ return [
3939
4040 /**
4141 * The source that can be used.
42 * You can create your own source by implementing the Source interface
43 *
42 * You can create your own source by implementing the Source interface.
43 *
4444 * @see \Cion\TextToSpeech\Contracts\Source
4545 */
4646 'sources' => [
src/Contracts/Source.phpmodifiedformatting only+1-1
Changes to src/Contracts/Source.php
@@ -11,4 +11,4 @@ interface Source
1111 * @return string
1212 */
1313 public function handle(string $data): string;
14}⧵
14}
src/Providers/TextToSpeechServiceProvider.phpmodifiedformatting only+1-1
Changes to src/Providers/TextToSpeechServiceProvider.php
@@ -77,7 +77,7 @@ class TextToSpeechServiceProvider extends ServiceProvider
7777 */
7878 protected function bindSource()
7979 {
80 $this->app->bind(Source::class, config('tts.sources.' . config('tts.default_source')));
80 $this->app->bind(Source::class, config('tts.sources.'.config('tts.default_source')));
8181 }
8282
8383 /**
src/Sources/PathSource.phpmodifiedformatting only+1-1
Changes to src/Sources/PathSource.php
@@ -16,4 +16,4 @@ class PathSource implements SourceContract
1616 {
1717 return file_get_contents($data);
1818 }
19}⧵
19}
src/Sources/TextSource.phpmodifiedformatting only+1-1
Changes to src/Sources/TextSource.php
@@ -16,4 +16,4 @@ class TextSource implements SourceContract
1616 {
1717 return $data;
1818 }
19}⧵
19}
src/Sources/WebsiteSource.phpmodifiedformatting only+1-1
Changes to src/Sources/WebsiteSource.php
@@ -17,4 +17,4 @@ class WebsiteSource implements SourceContract
1717 // WIP
1818 return '';
1919 }
20}⧵
20}
src/Traits/Sourceable.phpmodified+2-3
Changes to src/Traits/Sourceable.php
@@ -33,9 +33,8 @@ trait Sourceable
3333 */
3434 protected function getTextFromSource(string $data): string
3535 {
36 if ($this->source !== null)
37 {
38 app()->bind(Source::class, config('tts.sources.' . $this->source));
36 if ($this->source !== null) {
37 app()->bind(Source::class, config('tts.sources.'.$this->source));
3938 }
4039
4140 return app(Source::class)->handle($data);