make dane and styleci happy
This commit is contained in:
parent
7f0608d412
commit
7f1000dd8a
3 changed files with 3 additions and 5 deletions
|
@ -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}__}}";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue