@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $this->app->singleton(VocabularyLoader::class, Loader::class); |
| 41 | 41 | $this->app->singleton(Builder::class, StandardVocabularyBuilder::class); |
| 42 | 42 | $this->app->singleton(Reader::class, JsonReader::class); |
| 43 | - $this->app->singleton(Translator::class, function (Application $app): Translator { |
|
| 43 | + $this->app->singleton(Translator::class, function(Application $app): Translator { |
|
| 44 | 44 | $executor = new Executor($app->get(VocabularyLoader::class)); |
| 45 | 45 | |
| 46 | 46 | $executor->addFormatter($app->get(SentenceCase::class)); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $patterns = array_map( |
| 43 | - function (string $wordOrPhrase): string { |
|
| 43 | + function(string $wordOrPhrase): string { |
|
| 44 | 44 | return sprintf('/\b%s\b/ui', $wordOrPhrase); |
| 45 | 45 | }, |
| 46 | 46 | array_keys($finalMap) |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | return preg_replace_callback( |
| 23 | 23 | self::PATTERN, |
| 24 | - function ($matches) { |
|
| 24 | + function($matches) { |
|
| 25 | 25 | return strtoupper($matches[0]); |
| 26 | 26 | }, |
| 27 | 27 | $str |