Skip to content

Commit c83c34e

Browse files
committed
minor symfony#61040 chore: PHP CS Fixer fixes (keradus)
This PR was squashed before being merged into the 7.4 branch. Discussion ---------- chore: PHP CS Fixer fixes | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix CS <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT with love by [PHP Coding Standards Fixer](https://cs.symfony.com/) Commits ------- 536986f chore: PHP CS Fixer fixes
2 parents 565964d + 536986f commit c83c34e

File tree

12 files changed

+26
-24
lines changed

12 files changed

+26
-24
lines changed

src/Symfony/Bridge/Doctrine/ArgumentResolver/EntityValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function resolve(Request $request, ArgumentMetadata $argument): array
7373
return [];
7474
}
7575

76-
throw new NearMissValueResolverException(sprintf('Cannot find mapping for "%s": declare one using either the #[MapEntity] attribute or mapped route parameters.', $options->class));
76+
throw new NearMissValueResolverException(\sprintf('Cannot find mapping for "%s": declare one using either the #[MapEntity] attribute or mapped route parameters.', $options->class));
7777
}
7878
try {
7979
$object = $manager->getRepository($options->class)->findOneBy($criteria);

src/Symfony/Bridge/Doctrine/Types/DatePointType.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ final class DatePointType extends DateTimeImmutableType
2020
public const NAME = 'date_point';
2121

2222
/**
23-
* @param T $value
24-
*
25-
* @return (T is null ? null : DatePoint)
26-
*
27-
* @template T
28-
*/
23+
* @param T $value
24+
*
25+
* @return (T is null ? null : DatePoint)
26+
*
27+
* @template T
28+
*/
2929
public function convertToPHPValue(mixed $value, AbstractPlatform $platform): ?DatePoint
3030
{
3131
if (null === $value || $value instanceof DatePoint) {

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ private function registerWorkflowConfiguration(array $config, ContainerBuilder $
11651165
$workflow['definition_validators'][] = match ($workflow['type']) {
11661166
'state_machine' => Workflow\Validator\StateMachineValidator::class,
11671167
'workflow' => Workflow\Validator\WorkflowValidator::class,
1168-
default => throw new \LogicException(\sprintf('Invalid workflow type "%s".', $workflow['type'])),
1168+
default => throw new \LogicException(\sprintf('Invalid workflow type "%s".', $workflow['type'])),
11691169
};
11701170

11711171
// Create Workflow

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/PhpFrameworkExtensionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,10 @@ public function testValidatorEmailValidationMode(string $mode)
440440

441441
$this->createContainerFromClosure(function (ContainerBuilder $container) use ($mode) {
442442
$container->loadFromExtension('framework', [
443-
'annotations' => false,
444-
'http_method_override' => false,
445-
'handle_all_throwables' => true,
446-
'php_errors' => ['log' => true],
443+
'annotations' => false,
444+
'http_method_override' => false,
445+
'handle_all_throwables' => true,
446+
'php_errors' => ['log' => true],
447447
'validation' => [
448448
'email_validation_mode' => $mode,
449449
],

src/Symfony/Bundle/SecurityBundle/Tests/SecurityTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function testLogin()
154154
->method('getProvidedServices')
155155
->willReturn([
156156
'security.authenticator.custom.dev' => $authenticator,
157-
'security.authenticator.remember_me.main' => $authenticator
157+
'security.authenticator.remember_me.main' => $authenticator,
158158
])
159159
;
160160
$firewallAuthenticatorLocator
@@ -287,7 +287,7 @@ public function testLoginFailsWhenTooManyAuthenticatorsFound()
287287
->method('getProvidedServices')
288288
->willReturn([
289289
'security.authenticator.custom.main' => $authenticator,
290-
'security.authenticator.other.main' => $authenticator
290+
'security.authenticator.other.main' => $authenticator,
291291
])
292292
;
293293

src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
use Twig\Attribute\AsTwigFilter;
3131
use Twig\Attribute\AsTwigFunction;
3232
use Twig\Attribute\AsTwigTest;
33-
use Twig\Cache\FilesystemCache;
3433
use Twig\Environment;
3534
use Twig\Extension\ExtensionInterface;
3635
use Twig\Extension\RuntimeExtensionInterface;

src/Symfony/Bundle/TwigBundle/Resources/config/twig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
use Twig\Cache\FilesystemCache;
4141
use Twig\Cache\ReadOnlyFilesystemCache;
4242
use Twig\Environment;
43+
use Twig\ExpressionParser\Infix\BinaryOperatorExpressionParser;
4344
use Twig\Extension\CoreExtension;
4445
use Twig\Extension\DebugExtension;
4546
use Twig\Extension\EscaperExtension;
4647
use Twig\Extension\OptimizerExtension;
4748
use Twig\Extension\StagingExtension;
4849
use Twig\ExtensionSet;
49-
use Twig\ExpressionParser\Infix\BinaryOperatorExpressionParser;
5050
use Twig\Loader\ChainLoader;
5151
use Twig\Loader\FilesystemLoader;
5252
use Twig\Profiler\Profile;

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ public static function getFormatsAndBuildDir(): array
308308
];
309309
}
310310

311-
312311
/**
313312
* @dataProvider stopwatchExtensionAvailabilityProvider
314313
*/

src/Symfony/Bundle/TwigBundle/Tests/Functional/AttributeExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public function registerContainerConfiguration(LoaderInterface $loader): void
9090
$kernel->boot();
9191
}
9292

93-
9493
/**
9594
* @before
95+
*
9696
* @after
9797
*/
9898
#[Before, After]

src/Symfony/Component/AssetMapper/Compiler/Parser/JavascriptSequenceParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public function parseUntil(int $position): void
152152

153153
if (false === $endPos) {
154154
$this->endsWithSequence(self::STATE_STRING, $position);
155+
155156
return;
156157
}
157158

0 commit comments

Comments
 (0)