@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $this->addError($attribute, Yii::t('app', 'Duplicate email in alternative email addresses')); |
144 | 144 | } |
145 | 145 | |
146 | - if ($i > static::MAX_ALTERNATIVE_CONTACTS) { |
|
146 | + if ($i>static::MAX_ALTERNATIVE_CONTACTS) { |
|
147 | 147 | $this->addError($attribute, Yii::t('app', 'Maximum alternative addresses limit ({0}) reached for {1}', [static::MAX_ALTERNATIVE_CONTACTS, $this->email_address])); |
148 | 148 | } |
149 | 149 | $address = strtolower(trim($address)); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $item = strtolower(trim($item)); |
185 | 185 | $this->validateAlternativePhoneNumberInternalDuplicates($attribute, $item, $key); |
186 | 186 | |
187 | - if ($i > static::MAX_ALTERNATIVE_CONTACTS) { |
|
187 | + if ($i>static::MAX_ALTERNATIVE_CONTACTS) { |
|
188 | 188 | $this->addError($attribute, Yii::t('app', 'Maximum alternative phone numbers limit ({0}) reached for {1}', [static::MAX_ALTERNATIVE_CONTACTS, $this->phone_number])); |
189 | 189 | } |
190 | 190 | $this->validatePhoneNumber($attribute, $item); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | |
250 | 250 | $query->andWhere($condition, [':phone_number' => $phone_number, ':phone_number2' => '%\"' . $phone_number . '\"%']); |
251 | 251 | |
252 | - if ($query->count() > 0) { |
|
252 | + if ($query->count()>0) { |
|
253 | 253 | $this->addError($attribute, |
254 | 254 | Yii::t('app', |
255 | 255 | 'Invalid phone number "{0}"', [$phone_number] |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | |
283 | 283 | $query->andWhere($email_condition, [':email_address' => $email_address, ':email_address2' => '%\"' . $email_address . '\"%']); |
284 | 284 | |
285 | - if ($query->count() > 0) { |
|
285 | + if ($query->count()>0) { |
|
286 | 286 | $this->addError($attribute, |
287 | 287 | Yii::t('app', |
288 | 288 | 'Invalid email address "{0}"', [$email_address] |
@@ -389,14 +389,14 @@ discard block |
||
389 | 389 | return $query->createCommand() |
390 | 390 | ->update(self::tableName(), |
391 | 391 | [$field=> $dateHelper->getDatetime6()], |
392 | - ['in','token',$tokens] |
|
392 | + ['in', 'token', $tokens] |
|
393 | 393 | )->execute(); |
394 | 394 | } |
395 | 395 | |
396 | 396 | /** |
397 | 397 | * @return array |
398 | 398 | */ |
399 | - public function getParticipantData(){ |
|
399 | + public function getParticipantData() { |
|
400 | 400 | return []; |
401 | 401 | } |
402 | 402 |