mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -19,8 +19,6 @@ use Chill\PersonBundle\Templating\Entity\PersonRenderInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
|
||||
|
||||
use function count;
|
||||
|
||||
class SimilarPersonMatcher
|
||||
{
|
||||
final public const SIMILAR_SEARCH_ORDER_BY_ALPHABETICAL = 'alphabetical';
|
||||
@@ -96,13 +94,13 @@ class SimilarPersonMatcher
|
||||
$qb->setParameter('personBirthdate', $person->getBirthdate());
|
||||
}
|
||||
|
||||
if ($person->getId() !== null) {
|
||||
if (null !== $person->getId()) {
|
||||
$qb->andWhere($qb->expr()->neq('p.id', ':personId'));
|
||||
$qb->setParameter('personId', $person->getId());
|
||||
|
||||
$notDuplicatePersons = $this->personNotDuplicateRepository->findNotDuplicatePerson($person);
|
||||
|
||||
if (count($notDuplicatePersons)) {
|
||||
if (\count($notDuplicatePersons)) {
|
||||
$qb->andWhere($qb->expr()->notIn('p.id', ':notDuplicatePersons'));
|
||||
$qb->setParameter('notDuplicatePersons', $notDuplicatePersons);
|
||||
}
|
||||
|
Reference in New Issue
Block a user