Skip to content

Commit 2150243

Browse files
author
Fatih Aydın
committed
style: Fixed styling
1 parent 72a2982 commit 2150243

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

tests/Support/ValidatedInputTest.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Illuminate\Tests\Support;
44

5+
use Illuminate\Support\Carbon;
56
use Illuminate\Support\Collection;
67
use Illuminate\Support\Stringable;
78
use Illuminate\Support\ValidatedInput;
89
use Illuminate\Tests\Support\Fixtures\StringBackedEnum;
910
use PHPUnit\Framework\TestCase;
10-
use Illuminate\Support\Carbon;
1111

1212
class ValidatedInputTest extends TestCase
1313
{
@@ -120,7 +120,6 @@ public function test_when_has_method()
120120
$foo = $value;
121121
});
122122

123-
124123
$input->whenHas('foo.bar', function ($value) use (&$bar) {
125124
$bar = $value;
126125
});
@@ -212,7 +211,6 @@ public function test_when_filled_method()
212211
$foo = $value;
213212
});
214213

215-
216214
$input->whenFilled('foo.bar', function ($value) use (&$bar) {
217215
$bar = $value;
218216
});
@@ -248,7 +246,6 @@ public function test_missing_method()
248246
$this->assertTrue($input->missing(['votes', 'foo.bar']));
249247
}
250248

251-
252249
public function test_when_missing_method()
253250
{
254251
$input = new ValidatedInput(['foo' => ['bar' => null]]);
@@ -303,7 +300,6 @@ public function test_all_method()
303300
$this->assertEquals(['name' => 'Fatih', 'surname' => 'AYDIN', 'foo' => ['bar' => null, 'baz' => '']], $input->all());
304301
}
305302

306-
307303
public function test_input_method()
308304
{
309305
$input = new ValidatedInput(['name' => 'Fatih', 'surname' => 'AYDIN', 'foo' => ['bar' => null, 'baz' => '']]);
@@ -341,7 +337,6 @@ public function test_str_method()
341337
$this->assertSame('', $input->str('unknown_key')->value());
342338
}
343339

344-
345340
public function test_string_method()
346341
{
347342
$input = new ValidatedInput([
@@ -370,7 +365,6 @@ public function test_string_method()
370365
$this->assertSame('', $input->string('unknown_key')->value());
371366
}
372367

373-
374368
public function test_boolean_method()
375369
{
376370
$input = new ValidatedInput([
@@ -379,7 +373,7 @@ public function test_boolean_method()
379373
'checked' => 1,
380374
'unchecked' => '0',
381375
'with_on' => 'on',
382-
'with_yes' => 'yes'
376+
'with_yes' => 'yes',
383377
]);
384378

385379
$this->assertTrue($input->boolean('checked'));
@@ -391,7 +385,6 @@ public function test_boolean_method()
391385
$this->assertTrue($input->boolean('with_yes'));
392386
}
393387

394-
395388
public function test_integer_method()
396389
{
397390
$input = new ValidatedInput([
@@ -417,7 +410,6 @@ public function test_integer_method()
417410
$this->assertSame(0, $input->integer('null', 123456));
418411
}
419412

420-
421413
public function test_float_method()
422414
{
423415
$input = new ValidatedInput([
@@ -445,7 +437,6 @@ public function test_float_method()
445437
$this->assertSame(0.0, $input->float('null', 123.456));
446438
}
447439

448-
449440
public function test_date_method()
450441
{
451442
$input = new ValidatedInput([
@@ -516,7 +507,6 @@ public function test_collect_method()
516507
$this->assertEquals(['users' => [1, 2, 3], 'roles' => [4, 5, 6], 'foo' => ['bar', 'baz'], 'email' => '[email protected]'], $input->collect()->all());
517508
}
518509

519-
520510
public function test_only_method()
521511
{
522512
$input = new ValidatedInput(['name' => 'Fatih', 'surname' => 'AYDIN', 'foo' => ['bar' => null, 'baz' => '']]);

0 commit comments

Comments
 (0)