Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
53 | public function render() |
||
54 | { |
||
55 | $metric = new Metric('print-out'); |
||
56 | $metric->start(); |
||
57 | ini_set('memory_limit', '512M'); |
||
58 | |||
59 | if ( ! is_string($this->expression)) { |
||
60 | $this->expression = print_r($this->expression, true); |
||
61 | } |
||
62 | |||
63 | $expression = htmlentities($this->expression); |
||
|
|||
64 | $expression = htmlspecialchars(htmlspecialchars_decode($this->expression, ENT_QUOTES), ENT_QUOTES, 'UTF-8'); |
||
65 | $trace = new Trace(); |
||
66 | |||
67 | $metric->stop(); |
||
68 | |||
69 | ob_start(); |
||
70 | include __DIR__ . '/Views/Screen.php'; |
||
71 | $output = ob_get_contents(); |
||
72 | ob_end_clean(); |
||
73 | |||
74 | return $output; |
||
75 | } |
||
76 | } |