diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php old mode 100644 new mode 100755 index acf8cafde5..eb42f45c73 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -107,5 +107,4 @@ class Controller extends BaseController return $sum; } - } diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 0a28ce307b..240a44846d 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -222,4 +222,5 @@ class HomeController extends Controller return false; } + } diff --git a/app/Http/Middleware/EncryptCookies.php b/app/Http/Middleware/EncryptCookies.php old mode 100644 new mode 100755 index 3c8220180d..b61a40ea41 --- a/app/Http/Middleware/EncryptCookies.php +++ b/app/Http/Middleware/EncryptCookies.php @@ -6,7 +6,6 @@ * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ - declare(strict_types = 1); namespace FireflyIII\Http\Middleware; diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php old mode 100644 new mode 100755 index ef0014b45d..a0486084c0 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -6,7 +6,6 @@ * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ - declare(strict_types = 1); namespace FireflyIII\Http\Middleware; @@ -33,7 +32,6 @@ class RedirectIfAuthenticated public function handle($request, Closure $next, $guard = null) { if (Auth::guard($guard)->check()) { - return redirect('/'); } diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php old mode 100644 new mode 100755 index f338ac0af5..dd56e47a6b --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -6,8 +6,8 @@ * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ - declare(strict_types = 1); + namespace FireflyIII\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php old mode 100644 new mode 100755 index 51076da6cc..8b4a758db2 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -12,7 +12,6 @@ declare(strict_types = 1); namespace FireflyIII\Providers; use Illuminate\Support\ServiceProvider; -use Log; use URL; /** @@ -49,10 +48,5 @@ class AppServiceProvider extends ServiceProvider */ public function register() { - // make sure the logger doesn't log everything when it doesn't need to. - $monolog = Log::getMonolog(); - foreach ($monolog->getHandlers() as $handler) { - $handler->setLevel(config('app.log-level')); - } } } diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php old mode 100644 new mode 100755 index b24e9e542a..1d69ceb777 --- a/app/Providers/AuthServiceProvider.php +++ b/app/Providers/AuthServiceProvider.php @@ -11,7 +11,6 @@ declare(strict_types = 1); namespace FireflyIII\Providers; -use Illuminate\Contracts\Auth\Access\Gate as GateContract; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; /** @@ -32,15 +31,13 @@ class AuthServiceProvider extends ServiceProvider ]; /** - * Register any application authentication / authorization services. - * - * @param \Illuminate\Contracts\Auth\Access\Gate $gate + * Register any authentication / authorization services. * * @return void */ - public function boot(GateContract $gate) + public function boot() { - $this->registerPolicies($gate); + $this->registerPolicies(); // }