Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Sergio Brighenti 2020-04-04 17:29:15 +00:00 committed by StyleCI Bot
parent 5606224339
commit 103819827b
2 changed files with 2 additions and 6 deletions

View file

@ -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;
}
}
}

View file

@ -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;
}
}
}