Completed
Push — master ( 418d70...7cb0e9 )
by Tõnis
06:06
created
src/Respondent.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                     $this->addError($attribute, Yii::t('app', 'Duplicate email in alternative email addresses'));
142 142
                 }
143 143
 
144
-                if ($i > static::MAX_ALTERNATIVE_CONTACTS) {
144
+                if ($i>static::MAX_ALTERNATIVE_CONTACTS) {
145 145
                     $this->addError($attribute, Yii::t('app', 'Maximum alternative addresses limit ({0}) reached for {1}', [static::MAX_ALTERNATIVE_CONTACTS, $this->email_address]));
146 146
                 }
147 147
                 $address = strtolower(trim($address));
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 $item = strtolower(trim($item));
182 182
                 $this->validateAlternativePhoneNumberInternalDuplicates($attribute, $item, $key);
183 183
 
184
-                if ($i >= static::MAX_ALTERNATIVE_CONTACTS) {
184
+                if ($i>=static::MAX_ALTERNATIVE_CONTACTS) {
185 185
                     $this->addError($attribute, Yii::t('app', 'Maximum alternative phone numbers limit ({0}) reached for {1}', [static::MAX_ALTERNATIVE_CONTACTS, $this->phone_number]));
186 186
                 }
187 187
                $this->validatePhoneNumber($attribute, $item);
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
         $query->andWhere($condition, [':phone_number' => $phone_number, ':phone_number2' => '%\"' . $phone_number . '\"%']);
247 247
 
248
-        if ($query->count() > 0) {
248
+        if ($query->count()>0) {
249 249
             $this->addError($attribute,
250 250
                 Yii::t('app',
251 251
                     'Invalid phone number "{0}"', [$phone_number]
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
         $query->andWhere($email_condition, [':email_address' => $email_address, ':email_address2' => '%\"' . $email_address . '\"%']);
280 280
 
281
-        if ($query->count() > 0) {
281
+        if ($query->count()>0) {
282 282
             $this->addError($attribute,
283 283
                 Yii::t('app',
284 284
                     'Invalid email address "{0}"', [$email_address]
@@ -384,14 +384,14 @@  discard block
 block discarded – undo
384 384
         $query->createCommand()
385 385
             ->update(self::tableName(),
386 386
                 [$field=> $dateHelper->getDatetime6()],
387
-                ['in','token',$tokens]
387
+                ['in', 'token', $tokens]
388 388
             )->execute();
389 389
     }
390 390
 
391 391
     /**
392 392
      * @return array
393 393
      */
394
-    public function getParticipantData(){
394
+    public function getParticipantData() {
395 395
         return [];
396 396
     }
397 397
 
Please login to merge, or discard this patch.