Code Duplication    Length = 5-5 lines in 2 locations

include/phpmailer/class.phpmailer.php 1 location

@@ 721-725 (lines=5) @@
718
            return;
719
        }
720
        //Avoid clash with built-in function names
721
        if (!in_array($this->Debugoutput, ['error_log', 'html', 'echo'], true) and is_callable($this->Debugoutput)) {
722
            call_user_func($this->Debugoutput, $str, $this->SMTPDebug);
723
724
            return;
725
        }
726
        switch ($this->Debugoutput) {
727
            case 'error_log':
728
                //Don't output, just log

include/phpmailer/class.smtp.php 1 location

@@ 223-227 (lines=5) @@
220
            return;
221
        }
222
        //Avoid clash with built-in function names
223
        if (!in_array($this->Debugoutput, ['error_log', 'html', 'echo'], true) and is_callable($this->Debugoutput)) {
224
            call_user_func($this->Debugoutput, $str, $level);
225
226
            return;
227
        }
228
        switch ($this->Debugoutput) {
229
            case 'error_log':
230
                //Don't output, just log