make dane and styleci happy

This commit is contained in:
Jakob Schrettenbrunner 2017-02-03 00:08:10 +01:00
parent 7f0608d412
commit 7f1000dd8a
3 changed files with 3 additions and 5 deletions

View file

@ -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}__}}";
}
}

View file

@ -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;
});
}
}