Skip to content

Commit 5bae671

Browse files
committed
Apply fixes from StyleCI
1 parent c41d0d3 commit 5bae671

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/Foundation/FoundationFormRequestTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ public function testValidatedMethodReturnsOnlyRequestedNestedValidatedData()
151151

152152
public function testAfterMethod()
153153
{
154-
$request = new class extends FormRequest {
154+
$request = new class extends FormRequest
155+
{
155156
public $value = 'value-from-request';
156157

157158
public function rules()
@@ -161,7 +162,8 @@ public function rules()
161162

162163
protected function failedValidation(Validator $validator)
163164
{
164-
throw new class ($validator) extends Exception {
165+
throw new class($validator) extends Exception
166+
{
165167
public function __construct(public $validator)
166168
{
167169
//
@@ -202,7 +204,6 @@ public function after(InjectedDependency $dep)
202204
], $messages);
203205
}
204206

205-
206207
/**
207208
* Catch the given exception thrown from the executor, and return it.
208209
*
@@ -436,8 +437,8 @@ class InvokableAfterValidationRule
436437
{
437438
public function __construct(private $value)
438439
{
439-
440440
}
441+
441442
public function __invoke($validator)
442443
{
443444
$validator->errors()->add('invokable', $this->value);

tests/Validation/ValidatorAfterRuleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Illuminate\Tests\Validation;
44

5-
use Illuminate\Container\Container;
65
use Illuminate\Translation\ArrayLoader;
76
use Illuminate\Translation\Translator;
87
use Illuminate\Validation\Validator;

0 commit comments

Comments
 (0)