Code Duplication    Length = 3-3 lines in 2 locations

src/Renderer/Rich/Callable.php 1 location

@@ 28-30 (lines=3) @@
25
        if (($s = $o->getName()) !== null) {
26
            $function = $this->renderer->escape($s).'('.$this->renderer->escape($o->getParams()).')';
27
28
            if (($url = $o->getPhpDocUrl()) !== null) {
29
                $function = '<a href="'.$url.'" target=_blank>'.$function.'</a>';
30
            }
31
32
            $header .= '<dfn>'.$function.'</dfn>';
33
        }

src/Renderer/Rich/TraceFrame.php 1 location

@@ 27-29 (lines=3) @@
24
            } else {
25
                $function = $this->renderer->escape($o->trace['function']->getName().'('.$o->trace['function']->getParams().')');
26
27
                if (($url = $o->trace['function']->getPhpDocUrl()) !== null) {
28
                    $function = '<a href="'.$url.'" target=_blank>'.$function.'</a>';
29
                }
30
            }
31
32
            $header .= '<dfn>'.$function.'</dfn>';