*/
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();
$dumpBody = function ($body, $depth) use (&$dumpBody) {
$result = '';
+ // @codingStandardsIgnoreStart
if ($body instanceof mime\MimePartFacade) {
return $dumpBody($body->getMimePart(), $depth);
}
else {
throw new \LogicException('Bug');
}
+ // @codingStandardsIgnoreEnd
return $result;
};