Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Apr 13, 2023
1 parent c41d0d3 commit 5bae671
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions tests/Foundation/FoundationFormRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public function testValidatedMethodReturnsOnlyRequestedNestedValidatedData()

public function testAfterMethod()
{
$request = new class extends FormRequest {
$request = new class extends FormRequest
{
public $value = 'value-from-request';

public function rules()
Expand All @@ -161,7 +162,8 @@ public function rules()

protected function failedValidation(Validator $validator)
{
throw new class ($validator) extends Exception {
throw new class($validator) extends Exception
{
public function __construct(public $validator)
{
//
Expand Down Expand Up @@ -202,7 +204,6 @@ public function after(InjectedDependency $dep)
], $messages);
}


/**
* Catch the given exception thrown from the executor, and return it.
*
Expand Down Expand Up @@ -436,8 +437,8 @@ class InvokableAfterValidationRule
{
public function __construct(private $value)
{

}

public function __invoke($validator)
{
$validator->errors()->add('invokable', $this->value);
Expand Down
1 change: 0 additions & 1 deletion tests/Validation/ValidatorAfterRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Illuminate\Tests\Validation;

use Illuminate\Container\Container;
use Illuminate\Translation\ArrayLoader;
use Illuminate\Translation\Translator;
use Illuminate\Validation\Validator;
Expand Down

0 comments on commit 5bae671

Please sign in to comment.