From 70d4a0cb389f08902f0bb10bc4b54623967ccc4d Mon Sep 17 00:00:00 2001 From: Jeremy Kenedy Date: Sat, 28 Mar 2020 10:19:12 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Http/Middleware/Authenticate.php | 2 +- app/Traits/ActivationTrait.php | 4 ++-- app/Traits/CaptchaTrait.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 4e2418467..2f4ddc95c 100755 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -54,7 +54,7 @@ protected function redirectTo($request) */ public function handle($request, Closure $next) { - if (!$this->auth->check()) { + if (! $this->auth->check()) { return redirect()->to('/login') ->with('status', 'success') ->with('message', 'Please login.'); diff --git a/app/Traits/ActivationTrait.php b/app/Traits/ActivationTrait.php index 532bd6836..0aaffd8be 100755 --- a/app/Traits/ActivationTrait.php +++ b/app/Traits/ActivationTrait.php @@ -27,11 +27,11 @@ public function initiateEmailActivation(User $user) } /** - * Validate the Users Email + * Validate the Users Email. * * @param User $user * - * @return boolean + * @return bool */ protected function validateEmail(User $user) { diff --git a/app/Traits/CaptchaTrait.php b/app/Traits/CaptchaTrait.php index 338138761..c47740d54 100755 --- a/app/Traits/CaptchaTrait.php +++ b/app/Traits/CaptchaTrait.php @@ -8,9 +8,9 @@ trait CaptchaTrait { /** - * Check Google Captcha Passed or Failed + * Check Google Captcha Passed or Failed. * - * @return boolean + * @return bool */ public function captchaCheck() {