@@ -141,7 +141,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |