mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 21:13:57 +00:00
update cs after php-cs-fixer upgrade
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -103,7 +103,7 @@ trait AppendScopeChoiceTypeTrait
|
||||
AuthorizationHelper $authorizationHelper,
|
||||
TranslatableStringHelper $translatableStringHelper,
|
||||
ObjectManager $om,
|
||||
$name = 'scope'
|
||||
$name = 'scope',
|
||||
) {
|
||||
$reachableScopes = $authorizationHelper
|
||||
->getReachableScopes($user, $role, $center);
|
||||
|
@@ -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();
|
||||
|
@@ -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)
|
||||
|
@@ -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,
|
||||
|
@@ -51,7 +51,7 @@ class PostalCodeType extends AbstractType
|
||||
TranslatableStringHelper $helper,
|
||||
UrlGeneratorInterface $urlGenerator,
|
||||
PostalCodeChoiceLoader $choiceLoader,
|
||||
TranslatorInterface $translator
|
||||
TranslatorInterface $translator,
|
||||
) {
|
||||
$this->translatableStringHelper = $helper;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
|
@@ -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)
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user