Code Duplication    Length = 9-11 lines in 2 locations

src/Renderer/Rich.php 1 location

@@ 183-193 (lines=11) @@
180
            }
181
        }
182
183
        if (($s = $o->getType()) !== null) {
184
            if (self::$escape_types) {
185
                $s = $this->escape($s);
186
            }
187
188
            if ($o->reference) {
189
                $s = '&'.$s;
190
            }
191
192
            $output .= '<var>'.$s.'</var> ';
193
        }
194
195
        if (($s = $o->getSize()) !== null) {
196
            if (self::$escape_types) {

src/Renderer/Rich/SimpleXMLElement.php 1 location

@@ 23-31 (lines=9) @@
20
            }
21
        }
22
23
        if (($s = $o->getType()) !== null) {
24
            $s = $this->renderer->escape($s);
25
26
            if ($o->reference) {
27
                $s = '&amp;'.$s;
28
            }
29
30
            $header .= '<var>'.$this->renderer->escape($s).'</var> ';
31
        }
32
33
        if (($s = $o->getSize()) !== null) {
34
            $header .= '('.$this->renderer->escape($s).') ';