Passed
Push — master ( 08368b...d03553 )
by Sebastian
02:27
created

VariableInfo_Renderer_HTML_String::_render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 7
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AppUtils;
6
7
class VariableInfo_Renderer_HTML_String extends VariableInfo_Renderer_HTML
8
{
9
    protected function _render()
10
    {
11
        $string = $this->info->toString();
12
        $string = $this->cutString($string);
13
        $string = nl2br(htmlspecialchars($string));
14
        
15
        return '&quot;'.$string.'&quot;';
16
    }
17
}
18