Completed
Push — master ( 0e72d4...02f0a5 )
by Nate
18s queued 12s
created
src/Transport.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 
9 9
 namespace flipbox\postmark;
10 10
 
11
-use craft\helpers\Json;
12 11
 use Psr\Http\Message\ResponseInterface;
12
+use craft\helpers\Json;
13 13
 
14 14
 /**
15 15
  * @author Flipbox Factory <[email protected]>
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
     protected function getRecipientCount(\Swift_Mime_Message $message): int
47 47
     {
48 48
         return (
49
-            count((array)$message->getTo())
50
-            + count((array)$message->getCc())
51
-            + count((array)$message->getBcc())
49
+            count((array) $message->getTo())
50
+            + count((array) $message->getCc())
51
+            + count((array) $message->getBcc())
52 52
         );
53 53
     }
54 54
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         );
64 64
 
65 65
         if (is_array($error)) {
66
-            $error['StatusCode'] = $response->getStatusCode();
66
+            $error[ 'StatusCode' ] = $response->getStatusCode();
67 67
         }
68 68
 
69 69
         return $error;
Please login to merge, or discard this patch.
src/Adapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     {
73 73
         return [
74 74
             'class' => Transport::class,
75
-            'constructArgs' => [$this->token]
75
+            'constructArgs' => [ $this->token ]
76 76
         ];
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
src/Postmark.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
         Event::on(
31 31
             MailerHelper::class,
32 32
             MailerHelper::EVENT_REGISTER_MAILER_TRANSPORT_TYPES,
33
-            function (RegisterComponentTypesEvent $event) {
34
-                $event->types[] = Adapter::class;
33
+            function(RegisterComponentTypesEvent $event) {
34
+                $event->types[ ] = Adapter::class;
35 35
             }
36 36
         );
37 37
     }
Please login to merge, or discard this patch.