apply rector rules after updating the code with master branch

This commit is contained in:
Julien Fastré 2023-07-19 23:43:26 +02:00
parent e45430f0c9
commit aa553db659
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
8 changed files with 12 additions and 10 deletions

View File

@ -677,8 +677,8 @@ final class ActivityController extends AbstractController
throw $this->createNotFoundException('Accompanying Period not found');
}
// TODO Add permission
// $this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person);
// TODO Add permission
// $this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person);
} else {
throw $this->createNotFoundException('Person or Accompanying Period not found');
}

View File

@ -34,7 +34,7 @@ use UnexpectedValueException;
final readonly class CalendarDocController
{
public function __construct(
private EngineInterface $engine,
private \Twig\Environment $engine,
private EntityManagerInterface $entityManager,
private FormFactoryInterface $formFactory,
private Security $security,

View File

@ -51,7 +51,7 @@ services:
- "@chill.main.helper.translatable_string"
tags:
- { name: 'chill.custom_field', type: 'number' }
chill.form_extension.post_text_integer:
class: Chill\CustomFieldsBundle\Form\Extension\PostTextIntegerExtension
tags:
@ -91,7 +91,7 @@ services:
- "@chill.main.helper.translatable_string"
tags:
- { name: 'chill.custom_field', type: 'title' }
chill.custom_field.date:
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldDate
arguments:
@ -126,10 +126,11 @@ services:
chill.custom_field.custom_field_long_choice:
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldLongChoice
autowire: true
autoconfigure: true
arguments:
- "@chill.custom_field.custom_field_long_choice_option_repository"
- "@chill.main.helper.translatable_string"
- "@templating"
tags:
- { name: 'chill.custom_field', type: 'long_choice' }

View File

@ -30,7 +30,7 @@ final readonly class GenericDocForAccompanyingPeriodController
private Manager $manager,
private PaginatorFactory $paginator,
private Security $security,
private EngineInterface $twig,
private \Twig\Environment $twig,
) {
}

View File

@ -29,7 +29,7 @@ final readonly class GenericDocForPerson
private Manager $manager,
private PaginatorFactory $paginator,
private Security $security,
private EngineInterface $twig,
private \Twig\Environment $twig,
) {
}

View File

@ -45,7 +45,7 @@ class EventSearch extends AbstractSearch
private readonly Security $security,
private readonly EventRepository $er,
private readonly AuthorizationHelper $authorizationHelper,
private readonly TemplatingEngine $templating,
private readonly \Twig\Environment $templating,
private readonly PaginatorFactory $paginationFactory
) {
}

View File

@ -24,6 +24,7 @@ class PasswordRecoverEvent extends Event
/**
* @param bool $safelyGenerated true if generated safely (from console command, etc.)
* @param null|mixed $ip
*/
public function __construct(
private readonly ?string $token = null,

View File

@ -102,7 +102,7 @@ class ThirdPartyType extends AbstractType
'label' => 'thirdparty.Contact data are confidential',
]);
// Institutional ThirdParty (parent)
// Institutional ThirdParty (parent)
} else {
$builder
->add('nameCompany', TextType::class, [