php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -43,7 +43,7 @@ final class ReportControllerNextTest extends WebTestCase
->get('doctrine.orm.entity_manager');
$this->person = $em
->getRepository(\Chill\PersonBundle\Entity\Person::class)
->getRepository(Person::class)
->findOneBy(
[
'lastName' => 'Charline',
@@ -58,7 +58,7 @@ final class ReportControllerNextTest extends WebTestCase
// get custom fields group from fixture
$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(

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'
);

View File

@@ -44,7 +44,9 @@ final class ReportVoterTest extends KernelTestCase
*/
protected $voter;
public static function setUpBeforeClass(): void {}
public static function setUpBeforeClass(): void
{
}
protected function setUp(): void
{

View File

@@ -58,7 +58,7 @@ final class TimelineProviderTest extends WebTestCase
$scopesSocial = array_filter(
self::$em
->getRepository(\Chill\MainBundle\Entity\Scope::class)
->getRepository(Scope::class)
->findAll(),
static fn (Scope $scope) => 'social' === $scope->getName()['en']
);