Completed
Push — master ( 5553d0...f948ba )
by Lars
02:19
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, 'a');
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
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.
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.
examples/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 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
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.*" . $result['email'] . '/i', $dsn_msg)) {
1552
+        elseif (preg_match("/Delivery to the following recipients failed.*\n.*\n.*".$result['email'].'/i', $dsn_msg)) {
1553 1553
           $result['rule_cat'] = 'other';
1554 1554
           $result['rule_no'] = '0176';
1555 1555
         }
@@ -1596,11 +1596,11 @@  discard block
 block discarded – undo
1596 1596
   
1597 1597
   if ($result['rule_no'] == '0000') {
1598 1598
     if ($debug_mode) {
1599
-      echo 'email: ' . $result['email'] . $bmh_newline;
1600
-      echo 'Action: ' . $action . $bmh_newline;
1601
-      echo 'Status: ' . $status_code . $bmh_newline;
1602
-      echo 'Diagnostic-Code: ' . $diag_code . $bmh_newline;
1603
-      echo "DSN Message:<br />\n" . $dsn_msg . $bmh_newline;
1599
+      echo 'email: '.$result['email'].$bmh_newline;
1600
+      echo 'Action: '.$action.$bmh_newline;
1601
+      echo 'Status: '.$status_code.$bmh_newline;
1602
+      echo 'Diagnostic-Code: '.$diag_code.$bmh_newline;
1603
+      echo "DSN Message:<br />\n".$dsn_msg.$bmh_newline;
1604 1604
       echo $bmh_newline;
1605 1605
     }
1606 1606
   } else {
Please login to merge, or discard this patch.
src/BounceMailHandler/BounceMailHandler.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 namespace BounceMailHandler;
22 22
 
23
-require_once __DIR__ . '/phpmailer-bmh_rules.php';
23
+require_once __DIR__.'/phpmailer-bmh_rules.php';
24 24
 
25 25
 /**
26 26
  * BounceMailHandler class
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
   {
320 320
     // before starting the processing, let's check the delete flag and do global deletes if true
321 321
     if (\trim($this->deleteMsgDate) != '') {
322
-      echo 'processing global delete based on date of ' . $this->deleteMsgDate . '<br />';
322
+      echo 'processing global delete based on date of '.$this->deleteMsgDate.'<br />';
323 323
       $this->globalDelete();
324 324
     }
325 325
 
@@ -329,24 +329,24 @@  discard block
 block discarded – undo
329 329
       $this->moveHard = false;
330 330
     }
331 331
 
332
-    $port = $this->port . '/' . $this->service . '/' . $this->serviceOption;
332
+    $port = $this->port.'/'.$this->service.'/'.$this->serviceOption;
333 333
 
334 334
     \set_time_limit(self::SECONDS_TIMEOUT);
335 335
 
336 336
     if (!$this->testMode) {
337
-      $this->mailboxLink = \imap_open('{' . $this->mailhost . ':' . $port . '}' . $this->boxname, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE | ($this->testMode ? OP_READONLY : 0));
337
+      $this->mailboxLink = \imap_open('{'.$this->mailhost.':'.$port.'}'.$this->boxname, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE | ($this->testMode ? OP_READONLY : 0));
338 338
     } else {
339
-      $this->mailboxLink = \imap_open('{' . $this->mailhost . ':' . $port . '}' . $this->boxname, $this->mailboxUserName, $this->mailboxPassword, ($this->testMode ? OP_READONLY : 0));
339
+      $this->mailboxLink = \imap_open('{'.$this->mailhost.':'.$port.'}'.$this->boxname, $this->mailboxUserName, $this->mailboxPassword, ($this->testMode ? OP_READONLY : 0));
340 340
     }
341 341
 
342 342
     if (!$this->mailboxLink) {
343
-      $this->errorMessage = 'Cannot create ' . $this->service . ' connection to ' . $this->mailhost . $this->bmhNewLine . 'Error MSG: ' . imap_last_error();
343
+      $this->errorMessage = 'Cannot create '.$this->service.' connection to '.$this->mailhost.$this->bmhNewLine.'Error MSG: '.imap_last_error();
344 344
       $this->output();
345 345
 
346 346
       return false;
347 347
     }
348 348
 
349
-    $this->output('Connected to: ' . $this->mailhost . ' (' . $this->mailboxUserName . ')');
349
+    $this->output('Connected to: '.$this->mailhost.' ('.$this->mailboxUserName.')');
350 350
 
351 351
     return true;
352 352
   }
@@ -361,14 +361,14 @@  discard block
 block discarded – undo
361 361
     $dateArr = \explode('-', $this->deleteMsgDate); // date format is yyyy-mm-dd
362 362
     $delDate = \mktime(0, 0, 0, $dateArr[1], $dateArr[2], $dateArr[0]);
363 363
 
364
-    $port = $this->port . '/' . $this->service . '/' . $this->serviceOption;
365
-    $mboxt = \imap_open('{' . $this->mailhost . ':' . $port . '}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
364
+    $port = $this->port.'/'.$this->service.'/'.$this->serviceOption;
365
+    $mboxt = \imap_open('{'.$this->mailhost.':'.$port.'}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
366 366
 
367 367
     if ($mboxt === false) {
368 368
       return false;
369 369
     }
370 370
 
371
-    $list = \imap_getmailboxes($mboxt, '{' . $this->mailhost . ':' . $port . '}', '*');
371
+    $list = \imap_getmailboxes($mboxt, '{'.$this->mailhost.':'.$port.'}', '*');
372 372
 
373 373
     if (\is_array($list)) {
374 374
       foreach ($list as $key => $val) {
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
         $nameRaw = $nameArr[\count($nameArr) - 1];
378 378
 
379 379
         if (false === \stripos($nameRaw, 'sent')) {
380
-          $mboxd = \imap_open('{' . $this->mailhost . ':' . $port . '}' . $nameRaw, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE);
380
+          $mboxd = \imap_open('{'.$this->mailhost.':'.$port.'}'.$nameRaw, $this->mailboxUserName, $this->mailboxPassword, CL_EXPUNGE);
381 381
           $messages = \imap_sort($mboxd, SORTDATE, 0);
382 382
           $i = 0;
383 383
 
@@ -417,9 +417,9 @@  discard block
 block discarded – undo
417 417
   {
418 418
     if ($this->verbose >= $verboseLevel) {
419 419
       if ($msg) {
420
-        echo $msg . $this->bmhNewLine;
420
+        echo $msg.$this->bmhNewLine;
421 421
       } else {
422
-        echo $this->errorMessage . $this->bmhNewLine;
422
+        echo $this->errorMessage.$this->bmhNewLine;
423 423
       }
424 424
     }
425 425
   }
@@ -442,13 +442,13 @@  discard block
 block discarded – undo
442 442
     }
443 443
 
444 444
     if (!$this->mailboxLink) {
445
-      $this->errorMessage = 'Cannot open the mailbox file to ' . $filePath . $this->bmhNewLine . 'Error MSG: ' . imap_last_error();
445
+      $this->errorMessage = 'Cannot open the mailbox file to '.$filePath.$this->bmhNewLine.'Error MSG: '.imap_last_error();
446 446
       $this->output();
447 447
 
448 448
       return false;
449 449
     }
450 450
 
451
-    $this->output('Opened ' . $filePath);
451
+    $this->output('Opened '.$filePath);
452 452
 
453 453
     return true;
454 454
   }
@@ -489,12 +489,12 @@  discard block
 block discarded – undo
489 489
     $unprocessedCount = 0;
490 490
     $deletedCount = 0;
491 491
     $movedCount = 0;
492
-    $this->output('Total: ' . $totalCount . ' messages ');
492
+    $this->output('Total: '.$totalCount.' messages ');
493 493
 
494 494
     // process maximum number of messages
495 495
     if ($fetchedCount > $this->maxMessages) {
496 496
       $fetchedCount = $this->maxMessages;
497
-      $this->output('Processing first ' . $fetchedCount . ' messages ');
497
+      $this->output('Processing first '.$fetchedCount.' messages ');
498 498
     }
499 499
 
500 500
     if ($this->testMode) {
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
           $processedResult = $this->processBounce($x, 'DSN', $totalCount);
537 537
         } else {
538 538
           // not standard DSN msg
539
-          $this->output('Msg #' . $x . ' is not a standard DSN message', self::VERBOSE_REPORT);
539
+          $this->output('Msg #'.$x.' is not a standard DSN message', self::VERBOSE_REPORT);
540 540
 
541 541
           if ($this->debugBodyRule) {
542 542
             if ($structure->ifdescription) {
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
             $processedResult = $this->processBounce($x, 'DSN', $totalCount);
563 563
           } else {
564 564
             // not standard DSN msg
565
-            $this->output('Msg #' . $x . ' is not a standard DSN message', self::VERBOSE_REPORT);
565
+            $this->output('Msg #'.$x.' is not a standard DSN message', self::VERBOSE_REPORT);
566 566
 
567 567
             if ($this->debugBodyRule) {
568 568
               $this->output("  Content-Type : {$match[1]}", self::VERBOSE_DEBUG);
@@ -572,10 +572,10 @@  discard block
 block discarded – undo
572 572
           }
573 573
         } else {
574 574
           // didn't get content-type header
575
-          $this->output('Msg #' . $x . ' is not a well-formatted MIME mail, missing Content-Type', self::VERBOSE_REPORT);
575
+          $this->output('Msg #'.$x.' is not a well-formatted MIME mail, missing Content-Type', self::VERBOSE_REPORT);
576 576
 
577 577
           if ($this->debugBodyRule) {
578
-            $this->output('  Headers: ' . $this->bmhNewLine . $header . $this->bmhNewLine, self::VERBOSE_DEBUG);
578
+            $this->output('  Headers: '.$this->bmhNewLine.$header.$this->bmhNewLine, self::VERBOSE_DEBUG);
579 579
           }
580 580
 
581 581
           $processedResult = $this->processBounce($x, 'BODY', $totalCount);
@@ -651,17 +651,17 @@  discard block
 block discarded – undo
651 651
       \flush();
652 652
     }
653 653
 
654
-    $this->output($this->bmhNewLine . 'Closing mailbox, and purging messages');
654
+    $this->output($this->bmhNewLine.'Closing mailbox, and purging messages');
655 655
 
656 656
     /** @noinspection PhpUsageOfSilenceOperatorInspection */
657 657
     @\imap_expunge($this->mailboxLink);
658 658
     \imap_close($this->mailboxLink);
659 659
 
660
-    $this->output('Read: ' . $fetchedCount . ' messages');
661
-    $this->output($processedCount . ' action taken');
662
-    $this->output($unprocessedCount . ' no action taken');
663
-    $this->output($deletedCount . ' messages deleted');
664
-    $this->output($movedCount . ' messages moved');
660
+    $this->output('Read: '.$fetchedCount.' messages');
661
+    $this->output($processedCount.' action taken');
662
+    $this->output($unprocessedCount.' no action taken');
663
+    $this->output($deletedCount.' messages deleted');
664
+    $this->output($movedCount.' messages moved');
665 665
 
666 666
     return true;
667 667
   }
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
           break;
770 770
 
771 771
         default: // un-support Content-type
772
-          $this->output('Msg #' . $pos . ' is unsupported Content-Type:' . $structure->type, self::VERBOSE_REPORT);
772
+          $this->output('Msg #'.$pos.' is unsupported Content-Type:'.$structure->type, self::VERBOSE_REPORT);
773 773
 
774 774
           return false;
775 775
       }
@@ -816,7 +816,7 @@  discard block
 block discarded – undo
816 816
       }
817 817
 
818 818
       if ($this->testMode) {
819
-        $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email);
819
+        $this->output('Match: '.$ruleNumber.':'.$ruleCategory.'; '.$bounceType.'; '.$email);
820 820
       } else {
821 821
         // code below will use the Callback function, but return no value
822 822
         $params = [
@@ -841,7 +841,7 @@  discard block
 block discarded – undo
841 841
     } else {
842 842
       // match rule, do bounce action
843 843
       if ($this->testMode) {
844
-        $this->output('Match: ' . $ruleNumber . ':' . $ruleCategory . '; ' . $bounceType . '; ' . $email);
844
+        $this->output('Match: '.$ruleNumber.':'.$ruleCategory.'; '.$bounceType.'; '.$email);
845 845
 
846 846
         return true;
847 847
       }
@@ -884,19 +884,19 @@  discard block
 block discarded – undo
884 884
     if (\trim($mailbox) == '') {
885 885
       // this is a critical error with either the mailbox name blank or an invalid mailbox name
886 886
       // need to stop processing and exit at this point
887
-      echo 'Invalid mailbox name for move operation. Cannot continue: ' . $mailbox . "<br />\n";
887
+      echo 'Invalid mailbox name for move operation. Cannot continue: '.$mailbox."<br />\n";
888 888
       exit();
889 889
     }
890 890
 
891
-    $port = $this->port . '/' . $this->service . '/' . $this->serviceOption;
891
+    $port = $this->port.'/'.$this->service.'/'.$this->serviceOption;
892 892
     /** @noinspection PhpUsageOfSilenceOperatorInspection */
893
-    $mbox = @\imap_open('{' . $this->mailhost . ':' . $port . '}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
893
+    $mbox = @\imap_open('{'.$this->mailhost.':'.$port.'}', $this->mailboxUserName, $this->mailboxPassword, OP_HALFOPEN);
894 894
 
895 895
     if ($mbox === false) {
896 896
       return false;
897 897
     }
898 898
 
899
-    $list = \imap_getmailboxes($mbox, '{' . $this->mailhost . ':' . $port . '}', '*');
899
+    $list = \imap_getmailboxes($mbox, '{'.$this->mailhost.':'.$port.'}', '*');
900 900
     $mailboxFound = false;
901 901
 
902 902
     if (\is_array($list)) {
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
 
912 912
       if ($mailboxFound === false && $create) {
913 913
         /** @noinspection PhpUsageOfSilenceOperatorInspection */
914
-        @\imap_createmailbox($mbox, \imap_utf7_encode('{' . $this->mailhost . ':' . $port . '}' . $mailbox));
914
+        @\imap_createmailbox($mbox, \imap_utf7_encode('{'.$this->mailhost.':'.$port.'}'.$mailbox));
915 915
         \imap_close($mbox);
916 916
 
917 917
         return true;
Please login to merge, or discard this patch.