Passed
Push — master ( b39628...7861b1 )
by Mathieu
02:37 queued 11s
created
src/Charcoal/Email/Email.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
     /**
751 751
      * Send the email to all recipients
752 752
      *
753
-     * @return boolean Success / Failure.
753
+     * @return boolean|null Success / Failure.
754 754
      * @todo Implement methods and property for toggling rich-text vs. plain-text
755 755
      *       emails (`$mail->isHTML(true)`).
756 756
      */
@@ -887,7 +887,7 @@  discard block
 block discarded – undo
887 887
      * Log the send event for each recipient.
888 888
      *
889 889
      * @param  boolean $result Success or failure.
890
-     * @param  mixed   $mailer The raw mailer.
890
+     * @param  PHPMailer   $mailer The raw mailer.
891 891
      * @return void
892 892
      */
893 893
     protected function logSend($result, $mailer)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     public function setTo($email)
238 238
     {
239 239
         if (is_string($email)) {
240
-            $email = [ $email ];
240
+            $email = [$email];
241 241
         }
242 242
 
243 243
         if (!is_array($email)) {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     public function setCc($email)
304 304
     {
305 305
         if (is_string($email)) {
306
-            $email = [ $email ];
306
+            $email = [$email];
307 307
         }
308 308
 
309 309
         if (!is_array($email)) {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     {
371 371
         if (is_string($email)) {
372 372
             // Means we have a straight email
373
-            $email = [ $email ];
373
+            $email = [$email];
374 374
         }
375 375
 
376 376
         if (!is_array($email)) {
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -20,18 +20,14 @@
 block discarded – undo
20 20
 use Charcoal\Factory\FactoryInterface;
21 21
 
22 22
 // Module 'charcoal-view'
23
-use Charcoal\View\GenericView;
24 23
 use Charcoal\View\ViewableInterface;
25 24
 use Charcoal\View\ViewableTrait;
26 25
 
27 26
 // Module 'charcoal-queue'
28 27
 use Charcoal\Queue\QueueableInterface;
29 28
 use Charcoal\Queue\QueueableTrait;
30
-
31
-
32 29
 use Charcoal\Email\EmailInterface;
33 30
 use Charcoal\Email\EmailConfig;
34
-use Charcoal\Email\EmailLog;
35 31
 use Charcoal\Email\EmailQueueItem;
36 32
 
37 33
 /**
Please login to merge, or discard this patch.
src/Charcoal/Email/EmailConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
285 285
     public function setSmtpSecurity($security)
286 286
     {
287 287
         $security = strtoupper($security);
288
-        $validSecurity = [ '', 'TLS', 'SSL' ];
288
+        $validSecurity = ['', 'TLS', 'SSL'];
289 289
 
290 290
         if (!in_array($security, $validSecurity)) {
291 291
             throw new InvalidArgumentException(
Please login to merge, or discard this patch.
src/Charcoal/Email/ServiceProvider/EmailServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
          * @param Container $container Pimple DI container.
37 37
          * @return \Charcoal\Email\EmailConfig
38 38
          */
39
-        $container['email/config'] = function (Container $container) {
39
+        $container['email/config'] = function(Container $container) {
40 40
             $appConfig = $container['config'];
41 41
             $emailConfig = new EmailConfig($appConfig['email']);
42 42
             return $emailConfig;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
          * @param Container $container Pimple DI container.
47 47
          * @return \Charcoal\View\ViewInterface
48 48
          */
49
-        $container['email/view'] = function (Container $container) {
49
+        $container['email/view'] = function(Container $container) {
50 50
             return $container['view'];
51 51
         };
52 52
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
          * @param Container $container Pimple DI container.
76 76
          * @return \Charcoal\Email\EmailInterface
77 77
          */
78
-        $container['email'] = $container->factory(function (Container $container) {
78
+        $container['email'] = $container->factory(function(Container $container) {
79 79
             return $container['email/factory']->create('email');
80 80
         });
81 81
     }
Please login to merge, or discard this patch.
src/Charcoal/Email/EmailAwareTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * Convert an email address (RFC822) into a proper array notation.
35 35
      *
36
-     * @param  mixed $var An email array (containing an "email" key and optionally a "name" key).
36
+     * @param  string $var An email array (containing an "email" key and optionally a "name" key).
37 37
      * @throws InvalidArgumentException If the email is invalid.
38 38
      * @return array|null
39 39
      */
Please login to merge, or discard this patch.
src/Charcoal/Email/EmailLog.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@
 block discarded – undo
265 265
     }
266 266
 
267 267
     /**
268
-     * @param  null|string|DateTime $ts The "send date" datetime value.
268
+     * @param  string $ts The "send date" datetime value.
269 269
      * @throws InvalidArgumentException If the ts is not a valid datetime value.
270 270
      * @return self
271 271
      */
Please login to merge, or discard this patch.
src/Charcoal/Email/Script/ProcessQueueScript.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         $climate = $this->climate();
59 59
 
60
-        $processedCallback = function ($success, $failures, $skipped) use ($climate) {
60
+        $processedCallback = function($success, $failures, $skipped) use ($climate) {
61 61
             if (!empty($success)) {
62 62
                 $climate->green()->out(sprintf('%s emails were successfully sent.', count($success)));
63 63
             }
Please login to merge, or discard this patch.