From ecbcd89cb54351906d376a575d79690e27220048 Mon Sep 17 00:00:00 2001 From: Jordi Date: Thu, 5 Sep 2024 15:13:41 +0200 Subject: [PATCH] Fix CI builds --- src/Action/LoginAction.php | 2 +- src/Action/RequestAction.php | 2 +- src/Action/ResetAction.php | 2 +- src/DependencyInjection/SonataUserExtension.php | 2 +- src/Document/UserManager.php | 2 +- src/Entity/UserManager.php | 2 +- src/Listener/UserListener.php | 2 +- src/Mailer/Mailer.php | 2 +- src/Model/User.php | 2 +- src/Security/RolesBuilder/AdminRolesBuilder.php | 2 +- src/Security/RolesBuilder/MatrixRolesBuilder.php | 2 +- src/Security/RolesBuilder/SecurityRolesBuilder.php | 2 +- src/Twig/GlobalVariables.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Action/LoginAction.php b/src/Action/LoginAction.php index 532294d36..9da07aa14 100644 --- a/src/Action/LoginAction.php +++ b/src/Action/LoginAction.php @@ -37,7 +37,7 @@ public function __construct( private TokenStorageInterface $tokenStorage, private TranslatorInterface $translator, private ?CsrfTokenManagerInterface $csrfTokenManager = null, - private bool $resetMail = true + private bool $resetMail = true, ) { } diff --git a/src/Action/RequestAction.php b/src/Action/RequestAction.php index 54aa513d3..af671720b 100644 --- a/src/Action/RequestAction.php +++ b/src/Action/RequestAction.php @@ -39,7 +39,7 @@ public function __construct( private UserManagerInterface $userManager, private MailerInterface $mailer, private TokenGeneratorInterface $tokenGenerator, - private int $retryTtl + private int $retryTtl, ) { } diff --git a/src/Action/ResetAction.php b/src/Action/ResetAction.php index 92789f376..945519518 100644 --- a/src/Action/ResetAction.php +++ b/src/Action/ResetAction.php @@ -38,7 +38,7 @@ public function __construct( private FormFactoryInterface $formFactory, private UserManagerInterface $userManager, private TranslatorInterface $translator, - private int $tokenTtl + private int $tokenTtl, ) { } diff --git a/src/DependencyInjection/SonataUserExtension.php b/src/DependencyInjection/SonataUserExtension.php index b36a15ad5..cfc7a023b 100644 --- a/src/DependencyInjection/SonataUserExtension.php +++ b/src/DependencyInjection/SonataUserExtension.php @@ -158,7 +158,7 @@ private function checkManagerTypeToModelTypesMapping(array $config): void private function prohibitModelTypeMapping( string $actualModelClass, string $prohibitedModelClass, - string $managerType + string $managerType, ): void { if (is_a($actualModelClass, $prohibitedModelClass, true)) { throw new \InvalidArgumentException( diff --git a/src/Document/UserManager.php b/src/Document/UserManager.php index 22db80ca6..83583e910 100644 --- a/src/Document/UserManager.php +++ b/src/Document/UserManager.php @@ -34,7 +34,7 @@ public function __construct( string $class, ManagerRegistry $registry, private CanonicalFieldsUpdaterInterface $canonicalFieldsUpdater, - private UserPasswordHasherInterface $userPasswordHasher + private UserPasswordHasherInterface $userPasswordHasher, ) { parent::__construct($class, $registry); } diff --git a/src/Entity/UserManager.php b/src/Entity/UserManager.php index 1cc128212..76c03e921 100644 --- a/src/Entity/UserManager.php +++ b/src/Entity/UserManager.php @@ -34,7 +34,7 @@ public function __construct( string $class, ManagerRegistry $registry, private CanonicalFieldsUpdaterInterface $canonicalFieldsUpdater, - private UserPasswordHasherInterface $userPasswordHasher + private UserPasswordHasherInterface $userPasswordHasher, ) { parent::__construct($class, $registry); } diff --git a/src/Listener/UserListener.php b/src/Listener/UserListener.php index e77751032..59e91728a 100644 --- a/src/Listener/UserListener.php +++ b/src/Listener/UserListener.php @@ -34,7 +34,7 @@ final class UserListener implements EventSubscriber { public function __construct( private CanonicalFieldsUpdaterInterface $canonicalFieldsUpdater, - private UserManagerInterface $userManager + private UserManagerInterface $userManager, ) { } diff --git a/src/Mailer/Mailer.php b/src/Mailer/Mailer.php index 8268e2947..c7867677d 100644 --- a/src/Mailer/Mailer.php +++ b/src/Mailer/Mailer.php @@ -29,7 +29,7 @@ public function __construct( private Environment $twig, private SymfonyMailerInterface $mailer, private array $fromEmail, - private string $emailTemplate + private string $emailTemplate, ) { } diff --git a/src/Model/User.php b/src/Model/User.php index 30930bef8..a1d5fa28c 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -89,7 +89,7 @@ public function __unserialize(array $data): void $this->enabled, $this->id, $this->email, - $this->emailCanonical + $this->emailCanonical, ] = $data; } diff --git a/src/Security/RolesBuilder/AdminRolesBuilder.php b/src/Security/RolesBuilder/AdminRolesBuilder.php index d90a92d91..9841a27dd 100644 --- a/src/Security/RolesBuilder/AdminRolesBuilder.php +++ b/src/Security/RolesBuilder/AdminRolesBuilder.php @@ -35,7 +35,7 @@ public function __construct( private AuthorizationCheckerInterface $authorizationChecker, private Pool $pool, private SonataConfiguration $configuration, - private TranslatorInterface $translator + private TranslatorInterface $translator, ) { } diff --git a/src/Security/RolesBuilder/MatrixRolesBuilder.php b/src/Security/RolesBuilder/MatrixRolesBuilder.php index b5e8f291f..f06466d98 100644 --- a/src/Security/RolesBuilder/MatrixRolesBuilder.php +++ b/src/Security/RolesBuilder/MatrixRolesBuilder.php @@ -23,7 +23,7 @@ final class MatrixRolesBuilder implements MatrixRolesBuilderInterface public function __construct( private TokenStorageInterface $tokenStorage, private AdminRolesBuilderInterface $adminRolesBuilder, - private ExpandableRolesBuilderInterface $securityRolesBuilder + private ExpandableRolesBuilderInterface $securityRolesBuilder, ) { } diff --git a/src/Security/RolesBuilder/SecurityRolesBuilder.php b/src/Security/RolesBuilder/SecurityRolesBuilder.php index 8048a043a..eb40027a7 100644 --- a/src/Security/RolesBuilder/SecurityRolesBuilder.php +++ b/src/Security/RolesBuilder/SecurityRolesBuilder.php @@ -31,7 +31,7 @@ public function __construct( private AuthorizationCheckerInterface $authorizationChecker, private SonataConfiguration $configuration, private TranslatorInterface $translator, - private array $rolesHierarchy = [] + private array $rolesHierarchy = [], ) { } diff --git a/src/Twig/GlobalVariables.php b/src/Twig/GlobalVariables.php index d9b2cdcca..4bfd23505 100644 --- a/src/Twig/GlobalVariables.php +++ b/src/Twig/GlobalVariables.php @@ -29,7 +29,7 @@ public function __construct( private string $defaultAvatar, private bool $impersonatingEnabled, private string $impersonatingRoute, - private array $impersonatingRouteParameters = [] + private array $impersonatingRouteParameters = [], ) { }