mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +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()) {
|
if ($step->isFinal()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ class PersonJsonNormalizer implements
|
|||||||
'deathdate',
|
'deathdate',
|
||||||
'center',
|
'center',
|
||||||
'altNames',
|
'altNames',
|
||||||
'email'
|
'email',
|
||||||
];
|
];
|
||||||
|
|
||||||
$fields = array_filter(
|
$fields = array_filter(
|
||||||
|
@ -21,6 +21,7 @@ use Chill\PersonBundle\Entity\Household\HouseholdMember;
|
|||||||
use Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
|
use RuntimeException;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use function array_map;
|
use function array_map;
|
||||||
@ -59,8 +60,8 @@ final class HouseholdApiControllerTest extends WebTestCase
|
|||||||
$nbReference = $em->createQueryBuilder()->select('count(ar)')->from(AddressReference::class, 'ar')
|
$nbReference = $em->createQueryBuilder()->select('count(ar)')->from(AddressReference::class, 'ar')
|
||||||
->getQuery()->getSingleScalarResult();
|
->getQuery()->getSingleScalarResult();
|
||||||
|
|
||||||
if ($nbReference === 0) {
|
if (0 === $nbReference) {
|
||||||
throw new \RuntimeException('any reference found. Add a reference in database to perform this test');
|
throw new RuntimeException('any reference found. Add a reference in database to perform this test');
|
||||||
}
|
}
|
||||||
|
|
||||||
$reference = $em->createQueryBuilder()->select('ar')->from(AddressReference::class, 'ar')
|
$reference = $em->createQueryBuilder()->select('ar')->from(AddressReference::class, 'ar')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user