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

@@ -196,7 +196,7 @@ final class PersonAddressControllerTest extends WebTestCase
*/
protected function refreshPerson()
{
self::$person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
self::$person = $this->em->getRepository(Person::class)
->find(self::$person->getId());
}
}

View File

@@ -89,7 +89,7 @@ final class PersonControllerCreateTest extends WebTestCase
$form = $crawler->selectButton("Créer l'usager")->form();
$this->assertInstanceOf(
\Symfony\Component\DomCrawler\Form::class,
Form::class,
$form,
'The page contains a button'
);

View File

@@ -205,7 +205,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase
*/
protected function refreshPerson()
{
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
$this->person = $this->em->getRepository(Person::class)
->find($this->person->getId());
}

View File

@@ -98,7 +98,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
*/
protected function refreshPerson()
{
$this->person = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
$this->person = $this->em->getRepository(Person::class)
->find($this->person->getId());
}
}