Test Failed
Push — master ( 9b3943...8924b8 )
by Mathieu
02:13
created
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/Email.php 2 patches
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   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use Charcoal\Factory\FactoryInterface;
24 24
 
25 25
 // From 'locomotivemtl/charcoal-view'
26
-use Charcoal\View\GenericView;
27 26
 use Charcoal\View\ViewableInterface;
28 27
 use Charcoal\View\ViewableTrait;
29 28
 
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/EmailQueueItem.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace Charcoal\Email;
6 6
 
7 7
 use Exception;
8
-use InvalidArgumentException;
9 8
 
10 9
 // From 'pimple/pimple'
11 10
 use Pimple\Container;
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
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
          * @param Container $container Pimple DI container.
43 43
          * @return EmailConfig
44 44
          */
45
-        $container['email/config'] = function (Container $container): EmailConfig {
45
+        $container['email/config'] = function(Container $container): EmailConfig {
46 46
             $appConfig = $container['config'];
47 47
             $emailConfig = new EmailConfig($appConfig['email']);
48 48
             return $emailConfig;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
          * @param Container $container Pimple DI container.
53 53
          * @return ViewInterface
54 54
          */
55
-        $container['email/view'] = function (Container $container): ViewInterface {
55
+        $container['email/view'] = function(Container $container): ViewInterface {
56 56
             return $container['view'];
57 57
         };
58 58
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
          * @param Container $container Pimple DI container.
82 82
          * @return \Charcoal\Email\EmailInterface
83 83
          */
84
-        $container['email'] = $container->factory(function (Container $container): EmailInterface {
84
+        $container['email'] = $container->factory(function(Container $container): EmailInterface {
85 85
             return $container['email/factory']->create('email');
86 86
         });
87 87
     }
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
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         $climate = $this->climate();
62 62
 
63
-        $processedCallback = function ($success, $failures, $skipped) use ($climate): void {
63
+        $processedCallback = function($success, $failures, $skipped) use ($climate): void {
64 64
             if (!empty($success)) {
65 65
                 $climate->green()->out(sprintf('%s emails were successfully sent.', count($success)));
66 66
             }
Please login to merge, or discard this patch.