mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix cs
This commit is contained in:
parent
b5a1985fa1
commit
93345c09a1
@ -337,7 +337,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
||||
if ($step->isFinal()) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -91,7 +91,7 @@ class PersonJsonNormalizer implements
|
||||
'deathdate',
|
||||
'center',
|
||||
'altNames',
|
||||
'email'
|
||||
'email',
|
||||
];
|
||||
|
||||
$fields = array_filter(
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user