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

@@ -247,7 +247,7 @@ final class PersonMoveEventSubscriberTest extends KernelTestCase
?\Twig\Environment $engine = null,
?NotificationPersisterInterface $notificationPersister = null,
?Security $security = null,
?TranslatorInterface $translator = null
?TranslatorInterface $translator = null,
): PersonAddressMoveEventSubscriber {
if (null === $translator) {
$double = $this->prophesize(TranslatorInterface::class);

View File

@@ -222,7 +222,7 @@ final class PersonControllerCreateTest extends WebTestCase
Form &$creationForm,
string $firstname = 'God',
string $lastname = 'Jesus',
?\DateTime $birthdate = null
?\DateTime $birthdate = null,
) {
$creationForm->get(self::FIRSTNAME_INPUT)->setValue($firstname.'_'.uniqid());
$creationForm->get(self::LASTNAME_INPUT)->setValue($lastname.'_'.uniqid());

View File

@@ -562,7 +562,7 @@ final class MembersEditorTest extends TestCase
private function buildMembersEditorFactory(
?EventDispatcherInterface $eventDispatcher = null,
?ValidatorInterface $validator = null
?ValidatorInterface $validator = null,
) {
if (null === $eventDispatcher) {
$double = $this->getProphet()->prophesize();

View File

@@ -242,7 +242,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
?TranslatorInterface $translator = null,
?TranslatableStringHelper $translatableStringHelper = null,
?NormalizerInterface $normalizer = null,
?SummaryBudgetInterface $summaryBudget = null
?SummaryBudgetInterface $summaryBudget = null,
): PersonDocGenNormalizer {
if (null === $summaryBudget) {
$summaryBudget = $this->prophesize(SummaryBudgetInterface::class);
@@ -278,7 +278,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
?RelationshipRepository $relationshipRepository = null,
?TranslatorInterface $translator = null,
?TranslatableStringHelper $translatableStringHelper = null,
?SummaryBudgetInterface $summaryBudget = null
?SummaryBudgetInterface $summaryBudget = null,
): PersonDocGenNormalizer {
if (null === $relationshipRepository) {
$relationshipRepository = $this->prophesize(RelationshipRepository::class);

View File

@@ -68,7 +68,7 @@ final class PersonJsonNormalizerTest extends KernelTestCase
CenterResolverManagerInterface $centerResolverManager,
ResidentialAddressRepository $residentialAddressRepository,
PhoneNumberHelperInterface $phoneNumberHelper,
NormalizerInterface $normalizer
NormalizerInterface $normalizer,
): PersonJsonNormalizer {
$personJsonNormalizer = new PersonJsonNormalizer(
$render,

View File

@@ -105,7 +105,7 @@ class AccompanyingPeriodContextTest extends KernelTestCase
AccompanyingPeriod $entity,
array $data,
array $expectedNormalized,
callable $assertionsOnData
callable $assertionsOnData,
): void {
$context = $this->buildContext();
$template = new DocGeneratorTemplate();

View File

@@ -77,7 +77,7 @@ final class PersonContextTest extends KernelTestCase
Person $entity,
array $data,
array $expectedNormalized,
callable $assertionsOnData
callable $assertionsOnData,
): void {
// we boot kernel only for this test
self::bootKernel();
@@ -354,7 +354,7 @@ final class PersonContextTest extends KernelTestCase
?TranslatableStringHelperInterface $translatableStringHelper = null,
?ThirdPartyRender $thirdPartyRender = null,
?ThirdPartyRepository $thirdPartyRepository = null,
?ResidentialAddressRepository $residentialAddressRepository = null
?ResidentialAddressRepository $residentialAddressRepository = null,
): PersonContext {
if (null === $authorizationHelper) {
$authorizationHelper = $this->prophesize(AuthorizationHelperInterface::class)->reveal();

View File

@@ -41,7 +41,7 @@ class AccompanyingPeriodWorkEvaluationGenericDocProviderTest extends KernelTestC
public function testBuildFetchQueryForAccompanyingPeriod(
?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null,
?string $content = null
?string $content = null,
): void {
$period = $this->entityManager->createQuery('SELECT a FROM '.AccompanyingPeriod::class.' a')
->setMaxResults(1)