Skip to content

Commit 2dd07dd

Browse files
committed
php-cs-fixer expectations for makers w/ generated comparison
1 parent 45c871c commit 2dd07dd

File tree

5 files changed

+3
-7
lines changed

5 files changed

+3
-7
lines changed

tests/fixtures/make-serializer-normalizer/EntityFixtureNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class EntityFixtureNormalizer implements NormalizerInterface
1010
{
1111
public function __construct(
1212
#[Autowire(service: 'serializer.normalizer.object')]
13-
private NormalizerInterface $normalizer
13+
private NormalizerInterface $normalizer,
1414
) {
1515
}
1616

tests/fixtures/make-serializer-normalizer/FooBarNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class FooBarNormalizer implements NormalizerInterface
99
{
1010
public function __construct(
1111
#[Autowire(service: 'serializer.normalizer.object')]
12-
private NormalizerInterface $normalizer
12+
private NormalizerInterface $normalizer,
1313
) {
1414
}
1515

tests/fixtures/make-validator/expected/FooBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class FooBar extends Constraint
1414
public function __construct(
1515
public string $mode = 'strict',
1616
?array $groups = null,
17-
mixed $payload = null
17+
mixed $payload = null,
1818
) {
1919
parent::__construct([], $groups, $payload);
2020
}

tests/fixtures/make-voter/expected/FooBarVoter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ protected function supports(string $attribute, mixed $subject): bool
2222
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool
2323
{
2424
$user = $token->getUser();
25-
2625
// if the user is anonymous, do not grant access
2726
if (!$user instanceof UserInterface) {
2827
return false;
@@ -34,7 +33,6 @@ protected function voteOnAttribute(string $attribute, mixed $subject, TokenInter
3433
// logic to determine if the user can EDIT
3534
// return true or false
3635
break;
37-
3836
case self::VIEW:
3937
// logic to determine if the user can VIEW
4038
// return true or false

tests/fixtures/make-voter/expected/not_final_FooBarVoter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ protected function supports(string $attribute, mixed $subject): bool
2222
protected function voteOnAttribute(string $attribute, mixed $subject, TokenInterface $token): bool
2323
{
2424
$user = $token->getUser();
25-
2625
// if the user is anonymous, do not grant access
2726
if (!$user instanceof UserInterface) {
2827
return false;
@@ -34,7 +33,6 @@ protected function voteOnAttribute(string $attribute, mixed $subject, TokenInter
3433
// logic to determine if the user can EDIT
3534
// return true or false
3635
break;
37-
3836
case self::VIEW:
3937
// logic to determine if the user can VIEW
4038
// return true or false

0 commit comments

Comments
 (0)