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