also looking at this
meemalabs/laravel-text-to-speech
Apply fixes from StyleCI
#4
7 files
+9
-10
| @@ -39,8 +39,8 @@ return [ | ||
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * 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 | * | |
| 44 | 44 | * @see \Cion\TextToSpeech\Contracts\Source |
| 45 | 45 | */ |
| 46 | 46 | 'sources' => [ |
| @@ -77,7 +77,7 @@ class TextToSpeechServiceProvider extends ServiceProvider | ||
| 77 | 77 | */ |
| 78 | 78 | protected function bindSource() |
| 79 | 79 | { |
| 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'))); | |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | /** |
| @@ -33,9 +33,8 @@ trait Sourceable | ||
| 33 | 33 | */ |
| 34 | 34 | protected function getTextFromSource(string $data): string |
| 35 | 35 | { |
| 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)); | |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | 40 | return app(Source::class)->handle($data); |