Passed
Push — master ( 05853c...117d80 )
by Tõnis
04:48
created
src/Respondent.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $this->addError($attribute,
102 102
                 Yii::t('app',
103 103
                     'Invalid email address "{0}"', [$address]
104
-                ) . ' ' . Yii::t('app', 'Reason: {0}', [Yii::t('app', 'Invalid email format')])
104
+                ).' '.Yii::t('app', 'Reason: {0}', [Yii::t('app', 'Invalid email format')])
105 105
             );
106 106
             return false;
107 107
         }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function isSameAsMainAddress($attribute, $address)
116 116
     {
117
-        if (empty($address) | $attribute == 'email_address' ) {
117
+        if (empty($address) | $attribute == 'email_address') {
118 118
             return false;
119 119
         }
120 120
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             $this->addError($attribute,
123 123
                 Yii::t('app',
124 124
                     'Email address same as main addrress "{0}"', [$address]
125
-                ) . ' ' . Yii::t('app', 'Reason: {0}', [Yii::t('app', $attribute . ' duplicates main address')])
125
+                ).' '.Yii::t('app', 'Reason: {0}', [Yii::t('app', $attribute.' duplicates main address')])
126 126
             );
127 127
             return false;
128 128
         }
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             $this->addError($attribute,
221 221
                 Yii::t('app',
222 222
                     'Invalid phone number "{0}"', [$number]
223
-                ) . ' ' . Yii::t('app', 'Reason: {0}', [Yii::t('app', $attribute . ' duplicates main phone number')])
223
+                ).' '.Yii::t('app', 'Reason: {0}', [Yii::t('app', $attribute.' duplicates main phone number')])
224 224
             );
225 225
         }
226 226
         return null;
@@ -247,13 +247,13 @@  discard block
 block discarded – undo
247 247
             '`alternative_phone_numbers` LIKE :phone_number2',
248 248
         ];
249 249
 
250
-        $query->andWhere($condition, [':phone_number' => $phone_number, ':phone_number2' => '%\"' . $phone_number . '\"%']);
250
+        $query->andWhere($condition, [':phone_number' => $phone_number, ':phone_number2' => '%\"'.$phone_number.'\"%']);
251 251
 
252 252
         if ($query->count() > 0) {
253 253
             $this->addError($attribute,
254 254
                 Yii::t('app',
255 255
                     'Invalid phone number "{0}"', [$phone_number]
256
-                ) . ' ' . Yii::t('app', 'Reason: {0}', [Yii::t('app', 'Duplicate phone number')])
256
+                ).' '.Yii::t('app', 'Reason: {0}', [Yii::t('app', 'Duplicate phone number')])
257 257
             );
258 258
         }
259 259
     }
@@ -280,13 +280,13 @@  discard block
 block discarded – undo
280 280
             '`alternative_email_addresses` LIKE :email_address2',
281 281
         ];
282 282
 
283
-        $query->andWhere($email_condition, [':email_address' => $email_address, ':email_address2' => '%\"' . $email_address . '\"%']);
283
+        $query->andWhere($email_condition, [':email_address' => $email_address, ':email_address2' => '%\"'.$email_address.'\"%']);
284 284
 
285 285
         if ($query->count() > 0) {
286 286
             $this->addError($attribute,
287 287
                 Yii::t('app',
288 288
                     'Invalid email address "{0}"', [$email_address]
289
-                ) . ' ' . Yii::t('app', 'Reason: {0}', [Yii::t('app', 'Duplicates some other address')])
289
+                ).' '.Yii::t('app', 'Reason: {0}', [Yii::t('app', 'Duplicates some other address')])
290 290
             );
291 291
             return true;
292 292
         }
@@ -388,14 +388,14 @@  discard block
 block discarded – undo
388 388
         $query->createCommand()
389 389
             ->update(self::tableName(),
390 390
                 [$field=> $dateHelper->getDatetime6()],
391
-                ['in','token',$tokens]
391
+                ['in', 'token', $tokens]
392 392
             )->execute();
393 393
     }
394 394
 
395 395
     /**
396 396
      * @return array
397 397
      */
398
-    public function getParticipantData(){
398
+    public function getParticipantData() {
399 399
         return [];
400 400
     }
401 401
 
Please login to merge, or discard this patch.