apply more cs rules for php-cs

This commit is contained in:
2023-10-17 13:27:03 +02:00
parent 0b0cbed9db
commit bc2041cbdd
1485 changed files with 8169 additions and 9620 deletions

View File

@@ -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);
}