Code Duplication    Length = 30-30 lines in 2 locations

www/app/model/PHPMailer/PHPMailer/PHPMailer.php 1 location

@@ 797-826 (lines=30) @@
794
795
            return;
796
        }
797
        switch ($this->Debugoutput) {
798
            case 'error_log':
799
                //Don't output, just log
800
                error_log($str);
801
                break;
802
            case 'html':
803
                //Cleans up output a bit for a better looking, HTML-safe output
804
                echo htmlentities(
805
                    preg_replace('/[\r\n]+/', '', $str),
806
                    ENT_QUOTES,
807
                    'UTF-8'
808
                ), "<br>\n";
809
                break;
810
            case 'echo':
811
            default:
812
                //Normalize line breaks
813
                $str = preg_replace('/\r\n|\r/ms', "\n", $str);
814
                echo gmdate('Y-m-d H:i:s'),
815
                "\t",
816
                    //Trim trailing space
817
                trim(
818
                //Indent for readability, except for trailing break
819
                    str_replace(
820
                        "\n",
821
                        "\n                   \t                  ",
822
                        trim($str)
823
                    )
824
                ),
825
                "\n";
826
        }
827
    }
828
829
    /**

www/app/model/PHPMailer/PHPMailer/SMTP.php 1 location

@@ 245-274 (lines=30) @@
242
243
            return;
244
        }
245
        switch ($this->Debugoutput) {
246
            case 'error_log':
247
                //Don't output, just log
248
                error_log($str);
249
                break;
250
            case 'html':
251
                //Cleans up output a bit for a better looking, HTML-safe output
252
                echo gmdate('Y-m-d H:i:s'), ' ', htmlentities(
253
                    preg_replace('/[\r\n]+/', '', $str),
254
                    ENT_QUOTES,
255
                    'UTF-8'
256
                ), "<br>\n";
257
                break;
258
            case 'echo':
259
            default:
260
                //Normalize line breaks
261
                $str = preg_replace('/\r\n|\r/ms', "\n", $str);
262
                echo gmdate('Y-m-d H:i:s'),
263
                "\t",
264
                    //Trim trailing space
265
                trim(
266
                //Indent for readability, except for trailing break
267
                    str_replace(
268
                        "\n",
269
                        "\n                   \t                  ",
270
                        trim($str)
271
                    )
272
                ),
273
                "\n";
274
        }
275
    }
276
277
    /**