Code Duplication    Length = 6-6 lines in 5 locations

src/Renderer/Rich/CallablePlugin.php 3 locations

@@ 40-45 (lines=6) @@
37
            $header .= '<dfn>'.$this->renderer->escape($s).'('.$this->renderer->escape($o->getParams()).')</dfn>';
38
        }
39
40
        if (($s = $o->getValueShort()) !== null) {
41
            if (RichRenderer::$strlen_max && BlobObject::strlen($s) > RichRenderer::$strlen_max) {
42
                $s = substr($s, 0, RichRenderer::$strlen_max).'...';
43
            }
44
            $header .= ' '.$this->renderer->escape($s);
45
        }
46
47
        return '<dl>'.$this->renderer->renderHeaderWrapper($o, (bool) strlen($children), $header).$children.'</dl>';
48
    }
@@ 64-69 (lines=6) @@
61
            $header .= '<dfn>'.$this->renderer->escape($s).'</dfn>';
62
        }
63
64
        if (($s = $o->getValueShort()) !== null) {
65
            if (RichRenderer::$strlen_max && BlobObject::strlen($s) > RichRenderer::$strlen_max) {
66
                $s = substr($s, 0, RichRenderer::$strlen_max).'...';
67
            }
68
            $header .= ' '.$this->renderer->escape($s);
69
        }
70
71
        return '<dl>'.$this->renderer->renderHeaderWrapper($o, (bool) strlen($children), $header).$children.'</dl>';
72
    }
@@ 131-136 (lines=6) @@
128
            }
129
        }
130
131
        if (($s = $o->getValueShort()) !== null) {
132
            if (RichRenderer::$strlen_max && BlobObject::strlen($s) > RichRenderer::$strlen_max) {
133
                $s = substr($s, 0, RichRenderer::$strlen_max).'...';
134
            }
135
            $header .= ' '.$this->renderer->escape($s);
136
        }
137
138
        if ($o instanceof MethodObject && strlen($o->owner_class) && strlen($o->name)) {
139
            $cache = array(

src/Renderer/Rich/SimpleXMLElementPlugin.php 1 location

@@ 46-51 (lines=6) @@
43
        if ($s === null && $c = $o->getRepresentation('contents')) {
44
            $c = reset($c->contents);
45
46
            if ($c && ($s = $c->getValueShort()) !== null) {
47
                if (RichRenderer::$strlen_max && BlobObject::strlen($s) > RichRenderer::$strlen_max) {
48
                    $s = substr($s, 0, RichRenderer::$strlen_max).'...';
49
                }
50
                $header .= $this->renderer->escape($s);
51
            }
52
        }
53
54
        $header = $this->renderer->renderHeaderWrapper($o, (bool) strlen($children), $header);

src/Renderer/TextRenderer.php 1 location

@@ 176-181 (lines=6) @@
173
            $output[] = '('.$this->escape($s).')';
174
        }
175
176
        if (($s = $o->getValueShort()) !== null) {
177
            if (self::$strlen_max && BlobObject::strlen($s) > self::$strlen_max) {
178
                $s = substr($s, 0, self::$strlen_max).'...';
179
            }
180
            $output[] = $this->colorValue($this->escape($s));
181
        }
182
183
        return str_repeat(' ', $o->depth * $this->indent_width).implode(' ', $output);
184
    }