Conditions | 6 |
Paths | 20 |
Total Lines | 22 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
78 | public function toString($web = false) |
||
79 | { |
||
80 | $result = ''; |
||
81 | if ($web) { |
||
82 | $result .= '<ol>'.PHP_EOL; |
||
83 | } |
||
84 | foreach ($this->items as $error) { |
||
85 | if ($web) { |
||
86 | $result .= '<li>'; |
||
87 | } |
||
88 | |||
89 | $result .= $error.PHP_EOL; |
||
90 | |||
91 | if ($web) { |
||
92 | $result .= '</li>'.PHP_EOL; |
||
93 | } |
||
94 | } |
||
95 | if ($web) { |
||
96 | $result .= '</ol>'.PHP_EOL; |
||
97 | } |
||
98 | |||
99 | return $result; |
||
100 | } |
||
102 |