StyleCI fixes
This commit is contained in:
parent
6aabb2da13
commit
17a72d0895
2 changed files with 3 additions and 3 deletions
|
@ -6,8 +6,8 @@ use Pterodactyl\Models\User;
|
||||||
use Prologue\Alerts\AlertsMessageBag;
|
use Prologue\Alerts\AlertsMessageBag;
|
||||||
use Pterodactyl\Http\Controllers\Controller;
|
use Pterodactyl\Http\Controllers\Controller;
|
||||||
use Pterodactyl\Services\Users\UserUpdateService;
|
use Pterodactyl\Services\Users\UserUpdateService;
|
||||||
use Pterodactyl\Http\Requests\Base\AccountDataFormRequest;
|
|
||||||
use Pterodactyl\Traits\Helpers\AvailableLanguages;
|
use Pterodactyl\Traits\Helpers\AvailableLanguages;
|
||||||
|
use Pterodactyl\Http\Requests\Base\AccountDataFormRequest;
|
||||||
|
|
||||||
class AccountController extends Controller
|
class AccountController extends Controller
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,9 +11,9 @@ namespace Pterodactyl\Http\Middleware;
|
||||||
|
|
||||||
use Closure;
|
use Closure;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Foundation\Application;
|
use Illuminate\Foundation\Application;
|
||||||
use Illuminate\Contracts\Config\Repository;
|
use Illuminate\Contracts\Config\Repository;
|
||||||
use Illuminate\Support\Facades\Auth;
|
|
||||||
|
|
||||||
class LanguageMiddleware
|
class LanguageMiddleware
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,7 @@ class LanguageMiddleware
|
||||||
*/
|
*/
|
||||||
public function handle(Request $request, Closure $next)
|
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'));
|
$this->app->setLocale($this->config->get('app.locale', 'en'));
|
||||||
} else {
|
} else {
|
||||||
$this->app->setLocale(Auth::user()->language);
|
$this->app->setLocale(Auth::user()->language);
|
||||||
|
|
Loading…
Reference in a new issue