Skip to content

Commit 6af65ad

Browse files
committed
phpcs
1 parent c9ce2b3 commit 6af65ad

File tree

7 files changed

+51
-3
lines changed

7 files changed

+51
-3
lines changed

tests/DependentFieldConfigTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests;
411

512
use PHPUnit\Framework\TestCase;

tests/FunctionalTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests;
411

512
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
@@ -75,7 +82,6 @@ public function testDynamicFields()
7582
;
7683
}
7784

78-
7985
protected static function getKernelClass(): string
8086
{
8187
return DynamicFormsTestKernel::class;

tests/fixtures/DynamicFormsTestKernel.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests\fixtures;
411

512
use Psr\Log\NullLogger;

tests/fixtures/Enum/DynamicTestFood.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests\fixtures\Enum;
411

512
enum DynamicTestFood: string

tests/fixtures/Enum/DynamicTestMeal.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests\fixtures\Enum;
411

512
enum DynamicTestMeal: string

tests/fixtures/Enum/DynamicTestPizzaSize.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests\fixtures\Enum;
411

512
enum DynamicTestPizzaSize: int

tests/fixtures/TestDynamicForm.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
<?php
22

3+
/*
4+
* This file is part of the SymfonyCasts DynamicForms package.
5+
* Copyright (c) SymfonyCasts <https://symfonycasts.com/>
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
310
namespace Symfonycasts\DynamicForms\Tests\fixtures;
411

512
use Symfony\Component\Form\AbstractType;
@@ -29,7 +36,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
2936
]);
3037

3138
// addDynamic(string $name, array $dependencies, callable $callback): self
32-
$builder->addDependent('mainFood', ['meal'], function(DependentField $field, ?DynamicTestMeal $meal) {
39+
$builder->addDependent('mainFood', ['meal'], function (DependentField $field, ?DynamicTestMeal $meal) {
3340
$field->add(EnumType::class, [
3441
'class' => DynamicTestFood::class,
3542
'placeholder' => null === $meal ? 'Select a meal first' : sprintf('What is for %s?', $meal->getReadable()),
@@ -39,7 +46,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
3946
]);
4047
});
4148

42-
$builder->addDependent('pizzaSize', ['mainFood', 'upperCasePizzaSizes'], function(DependentField $field, ?DynamicTestFood $food, bool $upperCasePizzaSizes) {
49+
$builder->addDependent('pizzaSize', ['mainFood', 'upperCasePizzaSizes'], function (DependentField $field, ?DynamicTestFood $food, bool $upperCasePizzaSizes) {
4350
if (DynamicTestFood::Pizza !== $food) {
4451
return;
4552
}

0 commit comments

Comments
 (0)