From 93345c09a1ab3706a8136364a0744ef2e8e56864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 11 Feb 2022 13:45:21 +0100 Subject: [PATCH] fix cs --- .../ChillMainBundle/Entity/Workflow/EntityWorkflow.php | 2 +- .../Serializer/Normalizer/PersonJsonNormalizer.php | 2 +- .../Tests/Controller/HouseholdApiControllerTest.php | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php index 0984a3740..b9773040a 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php @@ -337,7 +337,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface if ($step->isFinal()) { return true; } - }; + } return false; } diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php index bfac5f936..e91748de8 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php @@ -91,7 +91,7 @@ class PersonJsonNormalizer implements 'deathdate', 'center', 'altNames', - 'email' + 'email', ]; $fields = array_filter( diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/HouseholdApiControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/HouseholdApiControllerTest.php index 94711dd2d..08034978e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/HouseholdApiControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/HouseholdApiControllerTest.php @@ -21,6 +21,7 @@ use Chill\PersonBundle\Entity\Household\HouseholdMember; use Chill\PersonBundle\Entity\Person; use DateTime; use Doctrine\ORM\EntityManagerInterface; +use RuntimeException; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Symfony\Component\HttpFoundation\Request; use function array_map; @@ -59,8 +60,8 @@ final class HouseholdApiControllerTest extends WebTestCase $nbReference = $em->createQueryBuilder()->select('count(ar)')->from(AddressReference::class, 'ar') ->getQuery()->getSingleScalarResult(); - if ($nbReference === 0) { - throw new \RuntimeException('any reference found. Add a reference in database to perform this test'); + if (0 === $nbReference) { + throw new RuntimeException('any reference found. Add a reference in database to perform this test'); } $reference = $em->createQueryBuilder()->select('ar')->from(AddressReference::class, 'ar')