From 17a72d0895280874af219823bb3dcc233f0c27fe Mon Sep 17 00:00:00 2001 From: stanjg Date: Fri, 4 May 2018 14:05:42 +0200 Subject: [PATCH] StyleCI fixes --- app/Http/Controllers/Base/AccountController.php | 2 +- app/Http/Middleware/LanguageMiddleware.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Base/AccountController.php b/app/Http/Controllers/Base/AccountController.php index 0c75e7a17..c7b74a750 100644 --- a/app/Http/Controllers/Base/AccountController.php +++ b/app/Http/Controllers/Base/AccountController.php @@ -6,8 +6,8 @@ use Pterodactyl\Models\User; use Prologue\Alerts\AlertsMessageBag; use Pterodactyl\Http\Controllers\Controller; use Pterodactyl\Services\Users\UserUpdateService; -use Pterodactyl\Http\Requests\Base\AccountDataFormRequest; use Pterodactyl\Traits\Helpers\AvailableLanguages; +use Pterodactyl\Http\Requests\Base\AccountDataFormRequest; class AccountController extends Controller { diff --git a/app/Http/Middleware/LanguageMiddleware.php b/app/Http/Middleware/LanguageMiddleware.php index f9fa40d04..b938519a7 100644 --- a/app/Http/Middleware/LanguageMiddleware.php +++ b/app/Http/Middleware/LanguageMiddleware.php @@ -11,9 +11,9 @@ namespace Pterodactyl\Http\Middleware; use Closure; use Illuminate\Http\Request; +use Illuminate\Support\Facades\Auth; use Illuminate\Foundation\Application; use Illuminate\Contracts\Config\Repository; -use Illuminate\Support\Facades\Auth; class LanguageMiddleware { @@ -48,7 +48,7 @@ class LanguageMiddleware */ public function handle(Request $request, Closure $next) { - if (!Auth::check() || $this->config->get('pterodactyl.lang.global')) { + if (! Auth::check() || $this->config->get('pterodactyl.lang.global')) { $this->app->setLocale($this->config->get('app.locale', 'en')); } else { $this->app->setLocale(Auth::user()->language);