Completed
Push — master ( 7c230f...19e916 )
by
unknown
02:26
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/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/Script/ProcessQueueScript.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
     }
161 161
 
162 162
     /**
163
-     * @return Closure
163
+     * @return \Closure
164 164
      */
165 165
     protected function getProcessedQueueCallback(): callable
166 166
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
     {
167 167
         $climate = $this->climate();
168 168
 
169
-        $callback = function ($success, $failures, $skipped) use ($climate): void {
169
+        $callback = function($success, $failures, $skipped) use ($climate): void {
170 170
             if (!empty($success)) {
171 171
                 $climate->green()->out(sprintf('%s emails were successfully sent.', count($success)));
172 172
             }
Please login to merge, or discard this patch.
src/Charcoal/Email/Api/V1/OpenAction.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace Charcoal\Email\Api\V1;
6 6
 
7
-use Charcoal\Email\EmailLog;
8 7
 use Charcoal\Email\Services\Tracker;
9
-use Charcoal\Model\Service\ModelLoader;
10 8
 use Psr\Http\Message\ResponseInterface as Response;
11 9
 use Psr\Http\Message\ServerRequestInterface as Request;
12 10
 
Please login to merge, or discard this patch.
src/Charcoal/Email/ApiModule.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 // From 'locomotivemtl/charcoal-app'
12 12
 use Charcoal\App\Module\AbstractModule;
13
-
14 13
 use Charcoal\Email\Api\V1\LinkAction;
15 14
 use Charcoal\Email\Api\V1\OpenAction;
16 15
 
Please login to merge, or discard this patch.
src/Charcoal/Email/Objects/EmailLog.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 
10 10
 // From 'locomotivemtl/charcoal-core'
11 11
 use Charcoal\Model\AbstractModel;
12
-
13 12
 use Charcoal\Email\EmailAwareTrait;
14 13
 
15 14
 /**
Please login to merge, or discard this patch.
src/Charcoal/Email/ServiceProvider/EmailServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
          * @param Container $container Pimple DI container.
45 45
          * @return EmailConfig
46 46
          */
47
-        $container['email/config'] = function (Container $container): EmailConfig {
47
+        $container['email/config'] = function(Container $container): EmailConfig {
48 48
             $appConfig = $container['config'];
49 49
             $emailConfig = new EmailConfig($appConfig['email']);
50 50
             return $emailConfig;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
          * @param Container $container Pimple DI container.
55 55
          * @return ViewInterface
56 56
          */
57
-        $container['email/view'] = function (Container $container): ViewInterface {
57
+        $container['email/view'] = function(Container $container): ViewInterface {
58 58
             return $container['view'];
59 59
         };
60 60
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
          */
95 95
         $container['email/tracker'] = function(Container $container): Tracker {
96 96
             return new Tracker(
97
-                (string)$container['base-url'],
97
+                (string) $container['base-url'],
98 98
                 $container['model/factory']
99 99
             );
100 100
         };
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
          * @param Container $container Pimple DI container.
104 104
          * @return \Charcoal\Email\EmailInterface
105 105
          */
106
-        $container['email'] = $container->factory(function (Container $container): EmailInterface {
106
+        $container['email'] = $container->factory(function(Container $container): EmailInterface {
107 107
             return $container['email/factory']->create('email');
108 108
         });
109 109
     }
Please login to merge, or discard this patch.
src/Charcoal/Email/Services/Tracker.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 // From 'locomotivemtl/charcoal-factory'
8 8
 use Charcoal\Factory\FactoryInterface;
9
-
10 9
 use Charcoal\Email\Email;
11 10
 use Charcoal\Email\Objects\Link;
12 11
 use Charcoal\Email\Objects\LinkLog;
Please login to merge, or discard this patch.