Test Setup Failed
Branch master (e1df9b)
by Mathieu
07:09
created
src/Charcoal/Email/Email.php 2 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.
src/Charcoal/Email/EmailQueueItem.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * Set the recipient's email address.
128 128
      *
129
-     * @param  string|array $email An email address.
129
+     * @param  string $email An email address.
130 130
      * @throws InvalidArgumentException If the email address is invalid.
131 131
      * @return EmailQueueItem Chainable
132 132
      */
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * Set the sender's email address.
162 162
      *
163
-     * @param  string|array $email An email address.
163
+     * @param  string $email An email address.
164 164
      * @throws InvalidArgumentException If the email address is invalid.
165 165
      * @return EmailQueueItem Chainable
166 166
      */
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
      * @param  callable $callback        An optional callback routine executed after the item is processed.
320 320
      * @param  callable $successCallback An optional callback routine executed when the item is resolved.
321 321
      * @param  callable $failureCallback An optional callback routine executed when the item is rejected.
322
-     * @return boolean  Success / Failure
322
+     * @return null|boolean  Success / Failure
323 323
      */
324 324
     public function process(
325 325
         callable $callback = null,
Please login to merge, or discard this patch.
src/Charcoal/Email/Queue/QueueItemTrait.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * Set the queue's ID.
97 97
      *
98 98
      * @param mixed $id The unique queue identifier.
99
-     * @return QueueItemInterface Chainable
99
+     * @return QueueItemTrait Chainable
100 100
      */
101 101
     public function setQueueId($id)
102 102
     {
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * Set the item's processed status.
120 120
      *
121 121
      * @param boolean $processed Whether the item has been processed.
122
-     * @return QueueItemInterface Chainable
122
+     * @return QueueItemTrait Chainable
123 123
      */
124 124
     public function setProcessed($processed)
125 125
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @param  null|string|DateTimeInterface $ts A date/time string or object.
144 144
      * @throws InvalidArgumentException If the date/time is invalid.
145
-     * @return QueueItemInterface Chainable
145
+     * @return QueueItemTrait Chainable
146 146
      */
147 147
     public function setQueuedDate($ts)
148 148
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      *
188 188
      * @param  null|string|DateTimeInterface $ts A date/time string or object.
189 189
      * @throws InvalidArgumentException If the date/time is invalid.
190
-     * @return QueueItemInterface Chainable
190
+     * @return QueueItemTrait Chainable
191 191
      */
192 192
     public function setProcessingDate($ts)
193 193
     {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      *
233 233
      * @param  null|string|DateTimeInterface $ts A date/time string or object.
234 234
      * @throws InvalidArgumentException If the date/time is invalid.
235
-     * @return QueueItemInterface Chainable
235
+     * @return QueueItemTrait Chainable
236 236
      */
237 237
     public function setProcessedDate($ts)
238 238
     {
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      *
278 278
      * Presets the item as _to-be_ processed and queued now.
279 279
      *
280
-     * @return QueueItemInterface Chainable
280
+     * @return QueueItemTrait Chainable
281 281
      */
282 282
     public function preSaveQueueItem()
283 283
     {
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/Queue/AbstractQueueManager.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -228,9 +228,9 @@
 block discarded – undo
228 228
             'val'      => 0
229 229
         ]);
230 230
         $loader->addFilter([
231
-             'property' => 'processing_date',
232
-             'val'      => date('Y-m-d H:i:s'),
233
-             'operator' => '<'
231
+                'property' => 'processing_date',
232
+                'val'      => date('Y-m-d H:i:s'),
233
+                'operator' => '<'
234 234
         ]);
235 235
 
236 236
         $queueId = $this->queueId();
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
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         /**
28 28
          * @return PHPMailer
29 29
          */
30
-        $container['phpmailer'] = $container->factory(function (Container $container) {
30
+        $container['phpmailer'] = $container->factory(function(Container $container) {
31 31
             $throwException = true;
32 32
             $mailer = new PHPMailer($throwException);
33 33
             return $mailer;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         /**
37 37
          * @return EmailConfig
38 38
          */
39
-        $container['email/config'] = function (Container $container) {
39
+        $container['email/config'] = function(Container $container) {
40 40
             $config = $container['config'];
41 41
             $emailConfig = new EmailConfig($config['email']);
42 42
             return $emailConfig;
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
         /**
46 46
          * @return \Charcoal\View\ViewInterface
47 47
          */
48
-        $container['email/view'] = function (Container $container) {
48
+        $container['email/view'] = function(Container $container) {
49 49
             return $container['view'];
50 50
         };
51 51
 
52 52
         /**
53 53
          * @return Email
54 54
          */
55
-        $container['email'] = $container->factory(function (Container $container) {
55
+        $container['email'] = $container->factory(function(Container $container) {
56 56
             $email = new Email();
57 57
             return $email;
58 58
         });
Please login to merge, or discard this patch.