Completed
Push — master ( 6f51c2...a1727f )
by Philippe
02:45
created
src/Mailer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Postmark\PostmarkClient;
20 20
 use yii\base\InvalidConfigException;
21 21
 use yii\mail\BaseMailer;
22
-use Yii;
23 22
 
24 23
 /**
25 24
  * This component allow user to send an email
Please login to merge, or discard this patch.
src/Message.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     }
231 231
 
232 232
     /**
233
-     * @return string|null text body of the message
233
+     * @return string text body of the message
234 234
      * @since XXX
235 235
      */
236 236
     public function getTextBody()
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     }
249 249
 
250 250
     /**
251
-     * @return string|null html body of the message
251
+     * @return string html body of the message
252 252
      * @since XXX
253 253
      */
254 254
     public function getHtmlBody()
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     }
318 318
 
319 319
     /**
320
-     * @return integer|null current templateId
320
+     * @return string current templateId
321 321
      * @since XXX
322 322
      */
323 323
     public function getTemplateId()
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -15,13 +15,9 @@
 block discarded – undo
15 15
 namespace sweelix\postmark;
16 16
 
17 17
 
18
-use yii\base\InvalidConfigException;
19 18
 use yii\base\InvalidParamException;
20 19
 use yii\base\NotSupportedException;
21
-use yii\helpers\ArrayHelper;
22 20
 use yii\mail\BaseMessage;
23
-use Yii;
24
-use yii\mail\MailerInterface;
25 21
 
26 22
 /**
27 23
  * This component allow user to send an email
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
         } else {
449 449
             $embed['ContentType'] = 'application/octet-stream';
450 450
         }
451
-        $embed['ContentID'] = 'cid:' . uniqid();
451
+        $embed['ContentID'] = 'cid:'.uniqid();
452 452
         $this->attachments[] = $embed;
453 453
         return $embed['ContentID'];
454 454
     }
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         } else {
470 470
             $embed['ContentType'] = 'application/octet-stream';
471 471
         }
472
-        $embed['ContentID'] = 'cid:' . uniqid();
472
+        $embed['ContentID'] = 'cid:'.uniqid();
473 473
         $this->attachments[] = $embed;
474 474
         return $embed['ContentID'];
475 475
     }
@@ -500,9 +500,9 @@  discard block
 block discarded – undo
500 500
                         $emails[] = $email;
501 501
                     } else {
502 502
                         if (preg_match('/[.,:]/', $email) > 0) {
503
-                            $email = '"'. $email .'"';
503
+                            $email = '"'.$email.'"';
504 504
                         }
505
-                        $emails[] = $email . ' ' . '<' . $key . '>';
505
+                        $emails[] = $email.' '.'<'.$key.'>';
506 506
                     }
507 507
                 }
508 508
                 $emails = implode(', ', $emails);
Please login to merge, or discard this patch.