@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $this->addError($attribute, Yii::t('app', 'Duplicate email in alternative email addresses')); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - if ($i >= static::MAX_ALTERNATIVE_CONTACTS) { |
|
| 143 | + if ($i>=static::MAX_ALTERNATIVE_CONTACTS) { |
|
| 144 | 144 | $this->addError($attribute, Yii::t('app', 'Maximum alternative addresses limit ({0}) reached for {1}', [static::MAX_ALTERNATIVE_CONTACTS, $this->email_address])); |
| 145 | 145 | } |
| 146 | 146 | $address = strtolower(trim($address)); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $item = strtolower(trim($item)); |
| 181 | 181 | $this->validateAlternativePhoneNumberInternalDuplicates($attribute, $item, $key); |
| 182 | 182 | |
| 183 | - if ($i >= static::MAX_ALTERNATIVE_CONTACTS) { |
|
| 183 | + if ($i>=static::MAX_ALTERNATIVE_CONTACTS) { |
|
| 184 | 184 | $this->addError($attribute, Yii::t('app', 'Maximum alternative phone numbers limit ({0}) reached for {1}', [static::MAX_ALTERNATIVE_CONTACTS, $this->phone_number])); |
| 185 | 185 | } |
| 186 | 186 | $this->validatePhoneNumber($attribute, $item); |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | $query->andWhere($condition, [':phone_number' => $phone_number, ':phone_number2' => '%\"' . $phone_number . '\"%']); |
| 246 | 246 | |
| 247 | - if ($query->count() > 0) { |
|
| 247 | + if ($query->count()>0) { |
|
| 248 | 248 | $this->addError($attribute, |
| 249 | 249 | Yii::t('app', |
| 250 | 250 | 'Invalid phone number "{0}"', [$phone_number] |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | |
| 278 | 278 | $query->andWhere($email_condition, [':email_address' => $email_address, ':email_address2' => '%\"' . $email_address . '\"%']); |
| 279 | 279 | |
| 280 | - if ($query->count() > 0) { |
|
| 280 | + if ($query->count()>0) { |
|
| 281 | 281 | $this->addError($attribute, |
| 282 | 282 | Yii::t('app', |
| 283 | 283 | 'Invalid email address "{0}"', [$email_address] |
@@ -383,14 +383,14 @@ discard block |
||
| 383 | 383 | $query->createCommand() |
| 384 | 384 | ->update(self::tableName(), |
| 385 | 385 | [$field=> $dateHelper->getDatetime6()], |
| 386 | - ['in','token',$tokens] |
|
| 386 | + ['in', 'token', $tokens] |
|
| 387 | 387 | )->execute(); |
| 388 | 388 | } |
| 389 | 389 | |
| 390 | 390 | /** |
| 391 | 391 | * @return array |
| 392 | 392 | */ |
| 393 | - public function getParticipantData(){ |
|
| 393 | + public function getParticipantData() { |
|
| 394 | 394 | return []; |
| 395 | 395 | } |
| 396 | 396 | |