Completed
Push — master ( b2cf95...fabdf2 )
by Lars
03:31
created
examples/callback_csv.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@
 block discarded – undo
69 69
 /**
70 70
  * Function to clean the data from the Callback Function for optimized display
71 71
  *
72
- * @param $email
73
- * @param $bounce_type
74
- * @param $remove
72
+ * @param string $email
73
+ * @param string $bounce_type
74
+ * @param boolean $remove
75 75
  *
76 76
  * @return mixed
77 77
  */
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
     $remove = $displayData['remove'];
37 37
     $removeraw = $displayData['removestat'];
38 38
 
39
-    $msg = $msgnum . ',' . $currentTime . ',' . $ruleNo . ',' . $ruleCat . ',' . $bounceType . ',' . $removeraw . ',' . $email . ',' . $subject;
39
+    $msg = $msgnum.','.$currentTime.','.$ruleNo.','.$ruleCat.','.$bounceType.','.$removeraw.','.$email.','.$subject;
40 40
 
41
-    $filename = 'logs/bouncelog_' . \date('m') . \date('Y') . '.csv';
41
+    $filename = 'logs/bouncelog_'.\date('m').\date('Y').'.csv';
42 42
     if (!\file_exists($filename)) {
43
-        $tmsg = 'Msg#,Current Time,Rule Number,Rule Category,Bounce Type,Status,Email,Subject' . "\n" . $msg;
43
+        $tmsg = 'Msg#,Current Time,Rule Number,Rule Category,Bounce Type,Status,Email,Subject'."\n".$msg;
44 44
     } else {
45 45
         $fileContents = \file_get_contents($filename);
46 46
 
47
-        if (\stripos($fileContents, "\n" . $msgnum . ',') !== false) {
47
+        if (\stripos($fileContents, "\n".$msgnum.',') !== false) {
48 48
             $doPutFile = false;
49 49
         }
50 50
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     $handle = \fopen($filename, 'ab');
55 55
     if ($handle) {
56
-        if (\fwrite($handle, $tmsg . "\n") === false) {
56
+        if (\fwrite($handle, $tmsg."\n") === false) {
57 57
             echo 'Cannot write message<br />';
58 58
         }
59 59
         \fclose($handle);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         echo 'Cannot open file to append<br />';
62 62
     }
63 63
 
64
-    echo $msgnum . ': ' . $ruleNo . ' | ' . $ruleCat . ' | ' . $bounceType . ' | ' . $remove . ' | ' . $email . ' | ' . $subject . "<br />\n";
64
+    echo $msgnum.': '.$ruleNo.' | '.$ruleCat.' | '.$bounceType.' | '.$remove.' | '.$email.' | '.$subject."<br />\n";
65 65
 
66 66
     return true;
67 67
 }
@@ -109,16 +109,16 @@  discard block
 block discarded – undo
109 109
     // change the remove flag from true or 1 to textual representation
110 110
     if (\stripos($remove, 'moved') !== false && \stripos($remove, 'hard') !== false) {
111 111
         $data['removestat'] = 'moved (hard)';
112
-        $data['remove'] = '<span style="color:red;">' . 'moved (hard)' . '</span>';
112
+        $data['remove'] = '<span style="color:red;">'.'moved (hard)'.'</span>';
113 113
     } elseif (\stripos($remove, 'moved') !== false && \stripos($remove, 'soft') !== false) {
114 114
         $data['removestat'] = 'moved (soft)';
115
-        $data['remove'] = '<span style="color:gray;">' . 'moved (soft)' . '</span>';
115
+        $data['remove'] = '<span style="color:gray;">'.'moved (soft)'.'</span>';
116 116
     } elseif ($remove == true || $remove == '1') {
117 117
         $data['removestat'] = 'deleted';
118
-        $data['remove'] = '<span style="color:red;">' . 'deleted' . '</span>';
118
+        $data['remove'] = '<span style="color:red;">'.'deleted'.'</span>';
119 119
     } else {
120 120
         $data['removestat'] = 'not deleted';
121
-        $data['remove'] = '<span style="color:gray;">' . 'not deleted' . '</span>';
121
+        $data['remove'] = '<span style="color:gray;">'.'not deleted'.'</span>';
122 122
     }
123 123
 
124 124
     return $data;
Please login to merge, or discard this patch.
examples/callback_database.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
 /**
59 59
  * Function to clean the data from the Callback Function for optimized display
60 60
  *
61
- * @param $email
62
- * @param $bounceType
63
- * @param $remove
61
+ * @param string $email
62
+ * @param string $bounceType
63
+ * @param boolean $remove
64 64
  *
65 65
  * @return mixed
66 66
  */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     $emailAddy = $displayData['emailAddy'];
51 51
     $remove = $displayData['remove'];
52 52
 
53
-    echo $msgnum . ': ' . $ruleNo . ' | ' . $ruleCat . ' | ' . $bounceType . ' | ' . $remove . ' | ' . $email . ' | ' . $subject . "<br />\n";
53
+    echo $msgnum.': '.$ruleNo.' | '.$ruleCat.' | '.$bounceType.' | '.$remove.' | '.$email.' | '.$subject."<br />\n";
54 54
 
55 55
     return true;
56 56
 }
@@ -97,16 +97,16 @@  discard block
 block discarded – undo
97 97
     // change the remove flag from true or 1 to textual representation
98 98
     if (\stripos($remove, 'moved') !== false && \stripos($remove, 'hard') !== false) {
99 99
         $data['removestat'] = 'moved (hard)';
100
-        $data['remove'] = '<span style="color:red;">' . 'moved (hard)' . '</span>';
100
+        $data['remove'] = '<span style="color:red;">'.'moved (hard)'.'</span>';
101 101
     } elseif (\stripos($remove, 'moved') !== false && \stripos($remove, 'soft') !== false) {
102 102
         $data['removestat'] = 'moved (soft)';
103
-        $data['remove'] = '<span style="color:gray;">' . 'moved (soft)' . '</span>';
103
+        $data['remove'] = '<span style="color:gray;">'.'moved (soft)'.'</span>';
104 104
     } elseif ($remove == true || $remove == '1') {
105 105
         $data['removestat'] = 'deleted';
106
-        $data['remove'] = '<span style="color:red;">' . 'deleted' . '</span>';
106
+        $data['remove'] = '<span style="color:red;">'.'deleted'.'</span>';
107 107
     } else {
108 108
         $data['removestat'] = 'not deleted';
109
-        $data['remove'] = '<span style="color:gray;">' . 'not deleted' . '</span>';
109
+        $data['remove'] = '<span style="color:gray;">'.'not deleted'.'</span>';
110 110
     }
111 111
 
112 112
     return $data;
Please login to merge, or discard this patch.
examples/callback_echo.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
 /**
59 59
  * Function to clean the data from the Callback Function for optimized display
60 60
  *
61
- * @param $email
62
- * @param $bounceType
63
- * @param $remove
61
+ * @param string $email
62
+ * @param string $bounceType
63
+ * @param boolean $remove
64 64
  *
65 65
  * @return mixed
66 66
  */
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     $emailName = $displayData['emailName'];
33 33
     $emailAddy = $displayData['emailAddy'];
34 34
     $remove = $displayData['remove'];
35
-    echo $msgnum . ': ' . $ruleNo . ' | ' . $ruleCat . ' | ' . $bounceType . ' | ' . $remove . ' | ' . $email . ' | ' . $subject . "<br />\n";
35
+    echo $msgnum.': '.$ruleNo.' | '.$ruleCat.' | '.$bounceType.' | '.$remove.' | '.$email.' | '.$subject."<br />\n";
36 36
 
37 37
     return true;
38 38
 }
@@ -80,16 +80,16 @@  discard block
 block discarded – undo
80 80
     // change the remove flag from true or 1 to textual representation
81 81
     if (\stripos($remove, 'moved') !== false && \stripos($remove, 'hard') !== false) {
82 82
         $data['removestat'] = 'moved (hard)';
83
-        $data['remove'] = '<span style="color:red;">' . 'moved (hard)' . '</span>';
83
+        $data['remove'] = '<span style="color:red;">'.'moved (hard)'.'</span>';
84 84
     } elseif (\stripos($remove, 'moved') !== false && \stripos($remove, 'soft') !== false) {
85 85
         $data['removestat'] = 'moved (soft)';
86
-        $data['remove'] = '<span style="color:gray;">' . 'moved (soft)' . '</span>';
86
+        $data['remove'] = '<span style="color:gray;">'.'moved (soft)'.'</span>';
87 87
     } elseif ($remove == true || $remove == '1') {
88 88
         $data['removestat'] = 'deleted';
89
-        $data['remove'] = '<span style="color:red;">' . 'deleted' . '</span>';
89
+        $data['remove'] = '<span style="color:red;">'.'deleted'.'</span>';
90 90
     } else {
91 91
         $data['removestat'] = 'not deleted';
92
-        $data['remove'] = '<span style="color:gray;">' . 'not deleted' . '</span>';
92
+        $data['remove'] = '<span style="color:gray;">'.'not deleted'.'</span>';
93 93
     }
94 94
 
95 95
     return $data;
Please login to merge, or discard this patch.
examples/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 echo '<hr style="width:200px;" />';
86 86
 $time_end = microtime_float();
87 87
 $time = $time_end - $time_start;
88
-echo 'Seconds to process: ' . $time . '<br />';
88
+echo 'Seconds to process: '.$time.'<br />';
89 89
 
90 90
 /**
91 91
  * @return float
@@ -94,5 +94,5 @@  discard block
 block discarded – undo
94 94
 {
95 95
     list($usec, $sec) = \explode(' ', \microtime());
96 96
 
97
-    return (float) $usec + (float) $sec;
97
+    return (float)$usec + (float)$sec;
98 98
 }
Please login to merge, or discard this patch.
src/BounceMailHandler/phpmailer-bmh_rules.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 
523 523
     if ($result['rule_no'] == '0000') {
524 524
         if ($debug_mode) {
525
-            echo 'Body:' . $bmh_newline . $body . $bmh_newline;
525
+            echo 'Body:'.$bmh_newline.$body.$bmh_newline;
526 526
             echo $bmh_newline;
527 527
         }
528 528
     } else {
@@ -572,14 +572,14 @@  discard block
 block discarded – undo
572 572
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
573 573
         $email_arr = @\imap_rfc822_parse_adrlist($email, 'default.domain.name');
574 574
         if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') {
575
-            $result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host;
575
+            $result['email'] = $email_arr[0]->mailbox.'@'.$email_arr[0]->host;
576 576
         }
577 577
     } elseif (\preg_match('/Final-Recipient: rfc822;(.*)/i', $dsn_report, $match)) {
578 578
         $email = \trim($match[1], "<> \t\r\n\0\x0B");
579 579
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
580 580
         $email_arr = @\imap_rfc822_parse_adrlist($email, 'default.domain.name');
581 581
         if (isset($email_arr[0]->host) && $email_arr[0]->host != '.SYNTAX-ERROR.' && $email_arr[0]->host != 'default.domain.name') {
582
-            $result['email'] = $email_arr[0]->mailbox . '@' . $email_arr[0]->host;
582
+            $result['email'] = $email_arr[0]->mailbox.'@'.$email_arr[0]->host;
583 583
         }
584 584
     }
585 585
 
@@ -1549,7 +1549,7 @@  discard block
 block discarded – undo
1549 1549
          *   Delivery to the following recipients failed.
1550 1550
          *   [email protected]
1551 1551
          */
1552
-        elseif (\preg_match("/Delivery to the following recipients failed.*\n.*\n.*" . \preg_quote($result['email'], '/') . '/i', $dsn_msg)) {
1552
+        elseif (\preg_match("/Delivery to the following recipients failed.*\n.*\n.*".\preg_quote($result['email'], '/').'/i', $dsn_msg)) {
1553 1553
             $result['rule_cat'] = 'other';
1554 1554
             $result['rule_no'] = '0176';
1555 1555
         }
@@ -1598,11 +1598,11 @@  discard block
 block discarded – undo
1598 1598
 
1599 1599
     if ($result['rule_no'] == '0000') {
1600 1600
         if ($debug_mode) {
1601
-            echo 'email: ' . $result['email'] . $bmh_newline;
1602
-            echo 'Action: ' . $action . $bmh_newline;
1603
-            echo 'Status: ' . $status_code . $bmh_newline;
1604
-            echo 'Diagnostic-Code: ' . $diag_code . $bmh_newline;
1605
-            echo "DSN Message:<br />\n" . $dsn_msg . $bmh_newline;
1601
+            echo 'email: '.$result['email'].$bmh_newline;
1602
+            echo 'Action: '.$action.$bmh_newline;
1603
+            echo 'Status: '.$status_code.$bmh_newline;
1604
+            echo 'Diagnostic-Code: '.$diag_code.$bmh_newline;
1605
+            echo "DSN Message:<br />\n".$dsn_msg.$bmh_newline;
1606 1606
             echo $bmh_newline;
1607 1607
         }
1608 1608
     } else {
Please login to merge, or discard this patch.
src/BounceMailHandler/BounceMailHandler.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -311,16 +311,16 @@  discard block
 block discarded – undo
311 311
     public function globalDelete(): bool
312 312
     {
313 313
         $dateArr = \explode('-', $this->deleteMsgDate); // date format is yyyy-mm-dd
314
-        $delDate = \mktime(0, 0, 0, (int) ($dateArr[1]), (int) ($dateArr[2]), (int) ($dateArr[0]));
314
+        $delDate = \mktime(0, 0, 0, (int)($dateArr[1]), (int)($dateArr[2]), (int)($dateArr[0]));
315 315
 
316
-        $port = $this->port . '/' . $this->service . '/' . $this->serviceOption;
317
-        $mboxt = \imap_open('{' . $this->mailhost . ':' . $port . '}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
316
+        $port = $this->port.'/'.$this->service.'/'.$this->serviceOption;
317
+        $mboxt = \imap_open('{'.$this->mailhost.':'.$port.'}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
318 318
 
319 319
         if ($mboxt === false) {
320 320
             return false;
321 321
         }
322 322
 
323
-        $list = \imap_getmailboxes($mboxt, '{' . $this->mailhost . ':' . $port . '}', '*');
323
+        $list = \imap_getmailboxes($mboxt, '{'.$this->mailhost.':'.$port.'}', '*');
324 324
 
325 325
         if (\is_array($list)) {
326 326
             foreach ($list as $key => $val) {
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                 $nameRaw = $nameArr[\count($nameArr) - 1];
330 330
 
331 331
                 if (\stripos($nameRaw, 'sent') === false) {
332
-                    $mboxd = \imap_open('{' . $this->mailhost . ':' . $port . '}' . $nameRaw, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE);
332
+                    $mboxd = \imap_open('{'.$this->mailhost.':'.$port.'}'.$nameRaw, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE);
333 333
                     $messages = \imap_sort($mboxd, SORTDATE, 0);
334 334
 
335 335
                     foreach ($messages as $message) {
@@ -399,19 +399,19 @@  discard block
 block discarded – undo
399 399
         if (\trim($mailbox) === '') {
400 400
             // this is a critical error with either the mailbox name blank or an invalid mailbox name
401 401
             // need to stop processing and exit at this point
402
-            echo 'Invalid mailbox name for move operation. Cannot continue: ' . $mailbox . "<br />\n";
402
+            echo 'Invalid mailbox name for move operation. Cannot continue: '.$mailbox."<br />\n";
403 403
             exit();
404 404
         }
405 405
 
406
-        $port = $this->port . '/' . $this->service . '/' . $this->serviceOption;
406
+        $port = $this->port.'/'.$this->service.'/'.$this->serviceOption;
407 407
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
408
-        $mbox = @\imap_open('{' . $this->mailhost . ':' . $port . '}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
408
+        $mbox = @\imap_open('{'.$this->mailhost.':'.$port.'}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
409 409
 
410 410
         if ($mbox === false) {
411 411
             return false;
412 412
         }
413 413
 
414
-        $list = \imap_getmailboxes($mbox, '{' . $this->mailhost . ':' . $port . '}', '*');
414
+        $list = \imap_getmailboxes($mbox, '{'.$this->mailhost.':'.$port.'}', '*');
415 415
         $mailboxFound = false;
416 416
 
417 417
         if (\is_array($list)) {
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
 
427 427
             if ($mailboxFound === false && $create) {
428 428
                 /** @noinspection PhpUsageOfSilenceOperatorInspection */
429
-                @\imap_createmailbox($mbox, \imap_utf7_encode('{' . $this->mailhost . ':' . $port . '}' . $mailbox));
429
+                @\imap_createmailbox($mbox, \imap_utf7_encode('{'.$this->mailhost.':'.$port.'}'.$mailbox));
430 430
                 \imap_errors();
431 431
                 \imap_alerts();
432 432
                 \imap_close($mbox);
@@ -466,13 +466,13 @@  discard block
 block discarded – undo
466 466
         }
467 467
 
468 468
         if (!$this->mailboxLink) {
469
-            $this->errorMessage = 'Cannot open the mailbox file to ' . $filePath . $this->bmhNewLine . 'Error MSG: ' . \imap_last_error();
469
+            $this->errorMessage = 'Cannot open the mailbox file to '.$filePath.$this->bmhNewLine.'Error MSG: '.\imap_last_error();
470 470
             $this->output();
471 471
 
472 472
             return false;
473 473
         }
474 474
 
475
-        $this->output('Opened ' . $filePath);
475
+        $this->output('Opened '.$filePath);
476 476
 
477 477
         return true;
478 478
     }
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
     {
487 487
         // before starting the processing, let's check the delete flag and do global deletes if true
488 488
         if (\trim($this->deleteMsgDate) !== '') {
489
-            echo 'processing global delete based on date of ' . $this->deleteMsgDate . '<br />';
489
+            echo 'processing global delete based on date of '.$this->deleteMsgDate.'<br />';
490 490
             $this->globalDelete();
491 491
         }
492 492
 
@@ -496,24 +496,24 @@  discard block
 block discarded – undo
496 496
             $this->moveHard = false;
497 497
         }
498 498
 
499
-        $port = $this->port . '/' . $this->service . '/' . $this->serviceOption;
499
+        $port = $this->port.'/'.$this->service.'/'.$this->serviceOption;
500 500
 
501 501
         \set_time_limit(self::SECONDS_TIMEOUT);
502 502
 
503 503
         if (!$this->testMode) {
504
-            $this->mailboxLink = \imap_open('{' . $this->mailhost . ':' . $port . '}' . $this->boxname, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE | ($this->testMode ? OP_READONLY : 0));
504
+            $this->mailboxLink = \imap_open('{'.$this->mailhost.':'.$port.'}'.$this->boxname, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE | ($this->testMode ? OP_READONLY : 0));
505 505
         } else {
506
-            $this->mailboxLink = \imap_open('{' . $this->mailhost . ':' . $port . '}' . $this->boxname, $this->mailboxUserName, $this->mailboxPassword, ($this->testMode ? OP_READONLY : 0));
506
+            $this->mailboxLink = \imap_open('{'.$this->mailhost.':'.$port.'}'.$this->boxname, $this->mailboxUserName, $this->mailboxPassword, ($this->testMode ? OP_READONLY : 0));
507 507
         }
508 508
 
509 509
         if (!$this->mailboxLink) {
510
-            $this->errorMessage = 'Cannot create ' . $this->service . ' connection to ' . $this->mailhost . $this->bmhNewLine . 'Error MSG: ' . \imap_last_error();
510
+            $this->errorMessage = 'Cannot create '.$this->service.' connection to '.$this->mailhost.$this->bmhNewLine.'Error MSG: '.\imap_last_error();
511 511
             $this->output();
512 512
 
513 513
             return false;
514 514
         }
515 515
 
516
-        $this->output('Connected to: ' . $this->mailhost . ' (' . $this->mailboxUserName . ')');
516
+        $this->output('Connected to: '.$this->mailhost.' ('.$this->mailboxUserName.')');
517 517
 
518 518
         return true;
519 519
     }
@@ -528,9 +528,9 @@  discard block
 block discarded – undo
528 528
     {
529 529
         if ($this->verbose >= $verboseLevel) {
530 530
             if ($msg) {
531
-                echo $msg . $this->bmhNewLine;
531
+                echo $msg.$this->bmhNewLine;
532 532
             } else {
533
-                echo $this->errorMessage . $this->bmhNewLine;
533
+                echo $this->errorMessage.$this->bmhNewLine;
534 534
             }
535 535
         }
536 536
     }
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
                     break;
617 617
 
618 618
                 default: // un-support Content-type
619
-                    $this->output('Msg #' . $pos . ' is unsupported Content-Type:' . $structure->type, self::VERBOSE_REPORT);
619
+                    $this->output('Msg #'.$pos.' is unsupported Content-Type:'.$structure->type, self::VERBOSE_REPORT);
620 620
 
621 621
                     return false;
622 622
             }
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
             }
664 664
 
665 665
             if ($this->testMode) {
666
-                $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email);
666
+                $this->output('Match: '.$ruleNumber.':'.$ruleCategory.'; '.$bounceType.'; '.$email);
667 667
             } else {
668 668
                 // code below will use the Callback function, but return no value
669 669
                 $params = [
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
         } else {
689 689
             // match rule, do bounce action
690 690
             if ($this->testMode) {
691
-                $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email);
691
+                $this->output('Match: '.$ruleNumber.':'.$ruleCategory.'; '.$bounceType.'; '.$email);
692 692
 
693 693
                 return true;
694 694
             }
@@ -754,12 +754,12 @@  discard block
 block discarded – undo
754 754
         $unprocessedCount = 0;
755 755
         $deletedCount = 0;
756 756
         $movedCount = 0;
757
-        $this->output('Total: ' . $totalCount . ' messages ');
757
+        $this->output('Total: '.$totalCount.' messages ');
758 758
 
759 759
         // process maximum number of messages
760 760
         if ($fetchedCount > $this->maxMessages) {
761 761
             $fetchedCount = $this->maxMessages;
762
-            $this->output('Processing first ' . $fetchedCount . ' messages ');
762
+            $this->output('Processing first '.$fetchedCount.' messages ');
763 763
         }
764 764
 
765 765
         if ($this->testMode) {
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
                     $processedResult = $this->processBounce($x, 'DSN', $totalCount);
802 802
                 } else {
803 803
                     // not standard DSN msg
804
-                    $this->output('Msg #' . $x . ' is not a standard DSN message', self::VERBOSE_REPORT);
804
+                    $this->output('Msg #'.$x.' is not a standard DSN message', self::VERBOSE_REPORT);
805 805
 
806 806
                     if ($this->debugBodyRule) {
807 807
                         if ($structure->ifdescription) {
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
                         $processedResult = $this->processBounce($x, 'DSN', $totalCount);
828 828
                     } else {
829 829
                         // not standard DSN msg
830
-                        $this->output('Msg #' . $x . ' is not a standard DSN message', self::VERBOSE_REPORT);
830
+                        $this->output('Msg #'.$x.' is not a standard DSN message', self::VERBOSE_REPORT);
831 831
 
832 832
                         if ($this->debugBodyRule) {
833 833
                             $this->output("  Content-Type : {$match[1]}", self::VERBOSE_DEBUG);
@@ -837,10 +837,10 @@  discard block
 block discarded – undo
837 837
                     }
838 838
                 } else {
839 839
                     // didn't get content-type header
840
-                    $this->output('Msg #' . $x . ' is not a well-formatted MIME mail, missing Content-Type', self::VERBOSE_REPORT);
840
+                    $this->output('Msg #'.$x.' is not a well-formatted MIME mail, missing Content-Type', self::VERBOSE_REPORT);
841 841
 
842 842
                     if ($this->debugBodyRule) {
843
-                        $this->output('  Headers: ' . $this->bmhNewLine . $header . $this->bmhNewLine, self::VERBOSE_DEBUG);
843
+                        $this->output('  Headers: '.$this->bmhNewLine.$header.$this->bmhNewLine, self::VERBOSE_DEBUG);
844 844
                     }
845 845
 
846 846
                     $processedResult = $this->processBounce($x, 'BODY', $totalCount);
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
                     // move the message
872 872
                     if (!$this->testMode) {
873 873
                         /** @noinspection PhpUsageOfSilenceOperatorInspection */
874
-                        @\imap_mail_move($this->mailboxLink, (string) $x, $this->hardMailbox);
874
+                        @\imap_mail_move($this->mailboxLink, (string)$x, $this->hardMailbox);
875 875
                     }
876 876
 
877 877
                     $moveFlag[$x] = true;
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
                     // move the message
886 886
                     if (!$this->testMode) {
887 887
                         /** @noinspection PhpUsageOfSilenceOperatorInspection */
888
-                        @\imap_mail_move($this->mailboxLink, (string) $x, $this->softMailbox);
888
+                        @\imap_mail_move($this->mailboxLink, (string)$x, $this->softMailbox);
889 889
                     }
890 890
 
891 891
                     $moveFlag[$x] = true;
@@ -909,25 +909,25 @@  discard block
 block discarded – undo
909 909
                 $this->mailboxExist($this->unprocessedBox);
910 910
                 // move the message
911 911
                 /** @noinspection PhpUsageOfSilenceOperatorInspection */
912
-                @\imap_mail_move($this->mailboxLink, (string) $x, $this->unprocessedBox);
912
+                @\imap_mail_move($this->mailboxLink, (string)$x, $this->unprocessedBox);
913 913
                 $moveFlag[$x] = true;
914 914
             }
915 915
 
916 916
             \flush();
917 917
         }
918 918
 
919
-        $this->output($this->bmhNewLine . 'Closing mailbox, and purging messages');
919
+        $this->output($this->bmhNewLine.'Closing mailbox, and purging messages');
920 920
 
921 921
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
922 922
         @\imap_expunge($this->mailboxLink);
923 923
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
924 924
         @\imap_close($this->mailboxLink);
925 925
 
926
-        $this->output('Read: ' . $fetchedCount . ' messages');
927
-        $this->output($processedCount . ' action taken');
928
-        $this->output($unprocessedCount . ' no action taken');
929
-        $this->output($deletedCount . ' messages deleted');
930
-        $this->output($movedCount . ' messages moved');
926
+        $this->output('Read: '.$fetchedCount.' messages');
927
+        $this->output($processedCount.' action taken');
928
+        $this->output($unprocessedCount.' no action taken');
929
+        $this->output($deletedCount.' messages deleted');
930
+        $this->output($movedCount.' messages moved');
931 931
 
932 932
         return true;
933 933
     }
Please login to merge, or discard this patch.