Completed
Push — master ( afecfa...1e7fe4 )
by Axel
04:56 queued 11s
created
src/system/ZAuthModule/Validator/Constraints/ValidUserFieldsValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'))
Please login to merge, or discard this patch.