update php-cs-fixer and rector + fix rules

This commit is contained in:
2024-01-09 13:50:45 +01:00
parent a63b40fb6c
commit 825cd127d1
79 changed files with 220 additions and 229 deletions

View File

@@ -43,7 +43,7 @@ final class ReportControllerTest extends WebTestCase
private static $group;
/**
* @var \Chill\PersonBundle\Entity\Person
* @var Person
*/
private static $person;
@@ -59,7 +59,7 @@ final class ReportControllerTest extends WebTestCase
// get a random person
self::$person = self::$kernel->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository(\Chill\PersonBundle\Entity\Person::class)
->getRepository(Person::class)
->findOneBy(
[
'lastName' => 'Charline',
@@ -73,7 +73,7 @@ final class ReportControllerTest extends WebTestCase
$customFieldsGroups = self::$kernel->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository(\Chill\CustomFieldsBundle\Entity\CustomFieldsGroup::class)
->getRepository(CustomFieldsGroup::class)
->findBy(['entity' => \Chill\ReportBundle\Entity\Report::class]);
// filter customFieldsGroup to get only "situation de logement"
$filteredCustomFieldsGroupHouse = array_filter(
@@ -123,7 +123,7 @@ final class ReportControllerTest extends WebTestCase
$form = $crawlerAddAReportPage->selectButton('Créer un nouveau rapport')->form();
$this->assertInstanceOf(
\Symfony\Component\DomCrawler\Form::class,
Form::class,
$form,
'I can see a form with a button "add a new report" '
);
@@ -242,7 +242,7 @@ final class ReportControllerTest extends WebTestCase
$link = $crawlerPersonPage->selectLink("AJOUT D'UN RAPPORT")->link();
$this->assertInstanceOf(
\Symfony\Component\DomCrawler\Link::class,
Link::class,
$link,
'There is a "add a report" link in menu'
);
@@ -270,7 +270,7 @@ final class ReportControllerTest extends WebTestCase
->form();
$this->assertInstanceOf(
\Symfony\Component\DomCrawler\Form::class,
Form::class,
$addForm,
'I have a report form'
);