Code Duplication    Length = 4-5 lines in 2 locations

lib/BaseException.php 1 location

@@ 207-210 (lines=4) @@
204
        //$o.=$this->getHTMLBody();
205
206
        $o .= '<div class="atk-layout-row"><div class="atk-wrapper atk-section-small">';
207
        if (isset($e->more_info)) {
208
            $o .= '<h3>Additional information:</h3>';
209
            $o .= $this->print_r($e->more_info, '<ul>', '</ul>', '<li>', '</li>', ' ');
210
        }
211
        if (method_exists($e, 'getMyFile')) {
212
            $o .= '<div class="atk-effect-info">'.$e->getMyFile().':'.$e->getMyLine().'</div>';
213
        }

lib/Logger.php 1 location

@@ 387-391 (lines=5) @@
384
        $o = '';
385
        $o .= '<h2>Application Error: '.htmlspecialchars($e->getMessage())."</h2>\n";
386
        $o .= '<p><font color=red>'.get_class($e).', code: '.$e->getCode().'</font></p>';
387
        if (@$e->more_info) {
388
            $o .= '<p>Additional information:';
389
            $o .= $this->print_r($e->more_info, '<ul>', '</ul>', '<li>', '</li>', ' ');
390
            $o .= '</p>';
391
        }
392
        if (method_exists($e, 'getMyFile')) {
393
            $o .= '<p><font color=blue>'.$e->getMyFile().':'.$e->getMyLine().'</font></p>';
394
        }