Conditions | 3 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
58 | public function __toString() |
||
59 | { |
||
60 | if ($this->isMd) |
||
61 | { |
||
62 | return <<<TEXT |
||
63 | |||
64 | ```php |
||
65 | $this->text |
||
66 | ``` |
||
67 | |||
68 | TEXT; |
||
69 | } |
||
70 | if ($this->isHtml) |
||
71 | { |
||
72 | $text = htmlspecialchars($this->text); |
||
73 | return <<<TEXT |
||
74 | <pre class="php">$text</pre> |
||
75 | TEXT; |
||
76 | } |
||
77 | return $this->text; |
||
78 | } |
||
79 | |||
81 |