From 103819827b7c2e6cbd7b2fca6a42f26ee8475c32 Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Sat, 4 Apr 2020 17:29:15 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- app/Controllers/Auth/AuthController.php | 4 +--- app/Web/ValidationHelper.php | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/Controllers/Auth/AuthController.php b/app/Controllers/Auth/AuthController.php index a2a2179..fe948c3 100644 --- a/app/Controllers/Auth/AuthController.php +++ b/app/Controllers/Auth/AuthController.php @@ -8,10 +8,8 @@ use App\Web\Session; use App\Web\ValidationHelper; use Psr\Http\Message\ServerRequestInterface as Request; - abstract class AuthController extends Controller { - protected function checkRecaptcha(ValidationHelper $validator, Request $request) { $validator->callIf($this->getSetting('recaptcha_enabled') === 'on', function (Session $session) use (&$request) { @@ -65,4 +63,4 @@ abstract class AuthController extends Controller return $bindString; } -} \ No newline at end of file +} diff --git a/app/Web/ValidationHelper.php b/app/Web/ValidationHelper.php index eba80b0..21c8a26 100644 --- a/app/Web/ValidationHelper.php +++ b/app/Web/ValidationHelper.php @@ -3,7 +3,6 @@ namespace App\Web; - class ValidationHelper { /** @@ -31,7 +30,6 @@ class ValidationHelper if (!$this->failed && $condition) { $this->failed = true; $this->session->alert(lang($alert), $type); - } return $this; @@ -65,4 +63,4 @@ class ValidationHelper { return $this->failed; } -} \ No newline at end of file +}