mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
update cs after php-cs-fixer upgrade
This commit is contained in:
@@ -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);
|
||||
|
@@ -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());
|
||||
|
@@ -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();
|
||||
|
@@ -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);
|
||||
|
@@ -68,7 +68,7 @@ final class PersonJsonNormalizerTest extends KernelTestCase
|
||||
CenterResolverManagerInterface $centerResolverManager,
|
||||
ResidentialAddressRepository $residentialAddressRepository,
|
||||
PhoneNumberHelperInterface $phoneNumberHelper,
|
||||
NormalizerInterface $normalizer
|
||||
NormalizerInterface $normalizer,
|
||||
): PersonJsonNormalizer {
|
||||
$personJsonNormalizer = new PersonJsonNormalizer(
|
||||
$render,
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user