@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ->setParameter('excludedUid', $authenticationMappingEntity->getUid()); |
77 | 77 | } |
78 | 78 | |
79 | - if ((int)$qb->getQuery()->getSingleScalarResult() > 0) { |
|
79 | + if ((int) $qb->getQuery()->getSingleScalarResult() > 0) { |
|
80 | 80 | $this->context->buildViolation($this->translator->trans('The user name you entered (%userName%) has already been registered.', ['%userName%' => $userName], 'validators')) |
81 | 81 | ->atPath('uname') |
82 | 82 | ->addViolation(); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $qb->andWhere('m.uid != :excludedUid') |
96 | 96 | ->setParameter('excludedUid', $authenticationMappingEntity->getUid()); |
97 | 97 | } |
98 | - $uCount = (int)$qb->getQuery()->getSingleScalarResult(); |
|
98 | + $uCount = (int) $qb->getQuery()->getSingleScalarResult(); |
|
99 | 99 | |
100 | 100 | $query = $this->userVerificationRepository->createQueryBuilder('v') |
101 | 101 | ->select('COUNT(v.uid)') |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | ->setParameter('email', $emailAddress) |
105 | 105 | ->setParameter('chgtype', ZAuthConstant::VERIFYCHGTYPE_EMAIL) |
106 | 106 | ->getQuery(); |
107 | - $vCount = (int)$query->getSingleScalarResult(); |
|
107 | + $vCount = (int) $query->getSingleScalarResult(); |
|
108 | 108 | |
109 | 109 | if ($uCount + $vCount > 0) { |
110 | 110 | $this->context->buildViolation($this->translator->trans('The email address you entered (%email%) has already been registered.', ['%email%' => $emailAddress], 'validators')) |