@@ -185,7 +185,7 @@ |
||
185 | 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 | - $this->validatePhoneNumber($attribute, $item); |
|
188 | + $this->validatePhoneNumber($attribute, $item); |
|
189 | 189 | } |
190 | 190 | } |
191 | 191 | $this->alternative_phone_numbers = yii\helpers\Json::encode($cleanItems); |
@@ -142,7 +142,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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] |
@@ -386,14 +386,14 @@ discard block |
||
386 | 386 | $query->createCommand() |
387 | 387 | ->update(self::tableName(), |
388 | 388 | [$field=> $dateHelper->getDatetime6()], |
389 | - ['in','token',$tokens] |
|
389 | + ['in', 'token', $tokens] |
|
390 | 390 | )->execute(); |
391 | 391 | } |
392 | 392 | |
393 | 393 | /** |
394 | 394 | * @return array |
395 | 395 | */ |
396 | - public function getParticipantData(){ |
|
396 | + public function getParticipantData() { |
|
397 | 397 | return []; |
398 | 398 | } |
399 | 399 |