update cs after php-cs-fixer upgrade

This commit is contained in:
2024-09-12 12:02:33 +02:00
parent 5d0b531820
commit f0f651edea
286 changed files with 374 additions and 374 deletions

View File

@@ -35,7 +35,7 @@ class IdToEntityDataTransformer implements DataTransformerInterface
public function __construct(
private readonly ObjectRepository $repository,
private readonly bool $multiple = false,
?callable $getId = null
?callable $getId = null,
) {
$this->getId = $getId ?? static fn (object $o) => $o->getId();
}

View File

@@ -103,7 +103,7 @@ trait AppendScopeChoiceTypeTrait
AuthorizationHelper $authorizationHelper,
TranslatableStringHelper $translatableStringHelper,
ObjectManager $om,
$name = 'scope'
$name = 'scope',
) {
$reachableScopes = $authorizationHelper
->getReachableScopes($user, $role, $center);

View File

@@ -40,7 +40,7 @@ class ComposedRoleScopeType extends AbstractType
public function __construct(
private readonly TranslatableStringHelper $translatableStringHelper,
RoleProvider $roleProvider
RoleProvider $roleProvider,
) {
$this->roles = $roleProvider->getRoles();
$this->rolesWithoutScope = $roleProvider->getRolesWithoutScopes();

View File

@@ -32,7 +32,7 @@ final class PickCenterType extends AbstractType
public function __construct(
private readonly ExportManager $exportManager,
private readonly RegroupmentRepository $regroupmentRepository,
private readonly AuthorizationHelperForCurrentUserInterface $authorizationHelper
private readonly AuthorizationHelperForCurrentUserInterface $authorizationHelper,
) {}
public function buildForm(FormBuilderInterface $builder, array $options)

View File

@@ -59,7 +59,7 @@ final class FilterOrderType extends \Symfony\Component\Form\AbstractType
$entityChoicesBuilder = $builder->create('entity_choices', null, ['compound' => true]);
foreach ($helper->getEntityChoices() as $key => [
'label' => $label, 'choices' => $choices, 'options' => $opts, 'class' => $class
'label' => $label, 'choices' => $choices, 'options' => $opts, 'class' => $class,
]) {
$entityChoicesBuilder->add($key, EntityType::class, [
'label' => $label,
@@ -114,7 +114,7 @@ final class FilterOrderType extends \Symfony\Component\Form\AbstractType
$userPickersBuilder = $builder->create('user_pickers', null, ['compound' => true]);
foreach ($helper->getUserPickers() as $name => [
'label' => $label, 'options' => $opts
'label' => $label, 'options' => $opts,
]) {
$userPickersBuilder->add(
$name,

View File

@@ -51,7 +51,7 @@ class PostalCodeType extends AbstractType
TranslatableStringHelper $helper,
UrlGeneratorInterface $urlGenerator,
PostalCodeChoiceLoader $choiceLoader,
TranslatorInterface $translator
TranslatorInterface $translator,
) {
$this->translatableStringHelper = $helper;
$this->urlGenerator = $urlGenerator;

View File

@@ -42,7 +42,7 @@ class ScopePickerType extends AbstractType
public function __construct(
private readonly AuthorizationHelperInterface $authorizationHelper,
private readonly Security $security,
private readonly TranslatableStringHelperInterface $translatableStringHelper
private readonly TranslatableStringHelperInterface $translatableStringHelper,
) {}
public function buildForm(FormBuilderInterface $builder, array $options)

View File

@@ -49,7 +49,7 @@ class UserPickerType extends AbstractType
TokenStorageInterface $tokenStorage,
protected UserRepository $userRepository,
protected UserACLAwareRepositoryInterface $userACLAwareRepository,
private readonly UserRender $userRender
private readonly UserRender $userRender,
) {
$this->authorizationHelper = $authorizationHelper;
$this->tokenStorage = $tokenStorage;

View File

@@ -37,7 +37,7 @@ class UserPasswordType extends AbstractType
public function __construct(
\Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface $passwordEncoder,
LoggerInterface $chillLogger
LoggerInterface $chillLogger,
) {
$this->passwordEncoder = $passwordEncoder;
$this->chillLogger = $chillLogger;