Merge pull request #175 from SergiX44/analysis-1bWrP1
Apply fixes from StyleCI
This commit is contained in:
commit
b2342f4acb
2 changed files with 2 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue