From 7f1000dd8ac80e04ae221de3fdff52ed12a31cfd Mon Sep 17 00:00:00 2001 From: Jakob Schrettenbrunner Date: Fri, 3 Feb 2017 00:08:10 +0100 Subject: [PATCH] make dane and styleci happy --- app/Extensions/PhraseAppTranslator.php | 1 + app/Providers/PhraseAppTranslationProvider.php | 6 ++---- config/app.php | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/Extensions/PhraseAppTranslator.php b/app/Extensions/PhraseAppTranslator.php index 0d755664d..5a8d4a84e 100644 --- a/app/Extensions/PhraseAppTranslator.php +++ b/app/Extensions/PhraseAppTranslator.php @@ -40,6 +40,7 @@ class PhraseAppTranslator extends LaravelTranslator public function get($key, array $replace = [], $locale = null, $fallback = true) { $key = substr($key, strpos($key, '.') + 1); + return "{{__phrase_${key}__}}"; } } diff --git a/app/Providers/PhraseAppTranslationProvider.php b/app/Providers/PhraseAppTranslationProvider.php index 76de046ec..e6ba42116 100644 --- a/app/Providers/PhraseAppTranslationProvider.php +++ b/app/Providers/PhraseAppTranslationProvider.php @@ -28,8 +28,8 @@ use Pterodactyl\Extensions\PhraseAppTranslator; use Illuminate\Translation\TranslationServiceProvider; use Illuminate\Translation\Translator as IlluminateTranslator; -class PhraseAppTranslationProvider extends TranslationServiceProvider { - +class PhraseAppTranslationProvider extends TranslationServiceProvider +{ /** * Register the service provider. * @@ -58,6 +58,4 @@ class PhraseAppTranslationProvider extends TranslationServiceProvider { return $trans; }); } - - } diff --git a/config/app.php b/config/app.php index 79bd1c07b..58a095c40 100644 --- a/config/app.php +++ b/config/app.php @@ -139,7 +139,6 @@ return [ Illuminate\Redis\RedisServiceProvider::class, Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, Illuminate\Session\SessionServiceProvider::class, - //Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, Illuminate\Notifications\NotificationServiceProvider::class,