Skip to content

Commit f1e0057

Browse files
committed
[Form] Fix code style issues
1 parent 883a1b4 commit f1e0057

File tree

5 files changed

+40
-2
lines changed

5 files changed

+40
-2
lines changed

src/Symfony/Component/Form/Tests/Fixtures/AlternatingRowType.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Form\Tests\Fixtures;
413

514
use Symfony\Component\Form\AbstractType;

src/Symfony/Component/Form/Tests/Fixtures/ArrayChoiceLoader.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Form\Tests\Fixtures;
413

514
use Symfony\Component\Form\ChoiceList\Loader\CallbackChoiceLoader;

src/Symfony/Component/Form/Tests/Fixtures/AuthorType.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Form\Tests\Fixtures;
413

514
use Symfony\Component\Form\AbstractType;

src/Symfony/Component/Form/Tests/Fixtures/FixedDataTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(array $mapping)
2626
public function transform($value): mixed
2727
{
2828
if (!\array_key_exists($value, $this->mapping)) {
29-
throw new TransformationFailedException(sprintf('No mapping for value "%s"', $value));
29+
throw new TransformationFailedException(\sprintf('No mapping for value "%s"', $value));
3030
}
3131

3232
return $this->mapping[$value];
@@ -37,7 +37,7 @@ public function reverseTransform($value): mixed
3737
$result = array_search($value, $this->mapping, true);
3838

3939
if (false === $result) {
40-
throw new TransformationFailedException(sprintf('No reverse mapping for value "%s"', $value));
40+
throw new TransformationFailedException(\sprintf('No reverse mapping for value "%s"', $value));
4141
}
4242

4343
return $result;

src/Symfony/Component/Form/Tests/Fixtures/Organization.php

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

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Component\Form\Tests\Fixtures;
413

514
class Organization
@@ -19,6 +28,7 @@ public function getAuthors(): array
1928
public function addAuthor(Author $author): self
2029
{
2130
$this->authors[] = $author;
31+
2232
return $this;
2333
}
2434

@@ -27,6 +37,7 @@ public function removeAuthor(Author $author): self
2737
if (false !== $key = array_search($author, $this->authors, true)) {
2838
array_splice($this->authors, $key, 1);
2939
}
40+
3041
return $this;
3142
}
3243
}

0 commit comments

Comments
 (0)