Code Duplication    Length = 9-11 lines in 2 locations

src/Renderer/Rich/SimpleXMLElementPlugin.php 1 location

@@ 29-37 (lines=9) @@
26
            }
27
        }
28
29
        if (($s = $o->getType()) !== null) {
30
            $s = $this->renderer->escape($s);
31
32
            if ($o->reference) {
33
                $s = '&'.$s;
34
            }
35
36
            $header .= '<var>'.$this->renderer->escape($s).'</var> ';
37
        }
38
39
        if (($s = $o->getSize()) !== null) {
40
            $header .= '('.$this->renderer->escape($s).') ';

src/Renderer/RichRenderer.php 1 location

@@ 215-225 (lines=11) @@
212
            }
213
        }
214
215
        if (($s = $o->getType()) !== null) {
216
            if (self::$escape_types) {
217
                $s = $this->escape($s);
218
            }
219
220
            if ($o->reference) {
221
                $s = '&amp;'.$s;
222
            }
223
224
            $output .= '<var>'.$s.'</var> ';
225
        }
226
227
        if (($s = $o->getSize()) !== null) {
228
            if (self::$escape_types) {