Fix code style
authorTim Düsterhus <duesterhus@woltlab.com>
Sat, 1 Jul 2017 17:50:35 +0000 (19:50 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sat, 1 Jul 2017 17:50:35 +0000 (19:50 +0200)
wcfsetup/install/files/lib/system/email/Email.class.php

index a2fdf413960bbff03fb2133f46c8b902594c33a8..aff8a132d290870fd4a28b8471a78ec59c3bca81 100644 (file)
@@ -539,7 +539,7 @@ class Email {
         */
        public function debugDump() {
                if (ob_get_level()) {
-                       // discard any output generated before the exception occurred, prevents exception
+                       // discard any output generated before the email was dumped, prevents email
                        // being hidden inside HTML elements and therefore not visible in browser output
                        ob_end_clean();
                        
@@ -552,6 +552,7 @@ class Email {
                
                $dumpBody = function ($body, $depth) use (&$dumpBody) {
                        $result = '';
+                       // @codingStandardsIgnoreStart
                        if ($body instanceof mime\MimePartFacade) {
                                return $dumpBody($body->getMimePart(), $depth);
                        }
@@ -583,6 +584,7 @@ class Email {
                        else {
                                throw new \LogicException('Bug');
                        }
+                       // @codingStandardsIgnoreEnd
 
                        return $result;
                };