Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | public function __toString() |
||
40 | { |
||
41 | $flattributes = $this->format_attributes(); |
||
42 | |||
43 | $ret = ''; |
||
44 | if ($this->is_void()) { |
||
45 | $ret = sprintf('<%s%s/>', $this->tagName, $flattributes); |
||
46 | } else { |
||
47 | $ret = sprintf( |
||
48 | '<%s%s>%s</%s>', |
||
49 | $this->tagName, |
||
50 | $flattributes, |
||
51 | $this->innerContent, |
||
52 | $this->tagName |
||
53 | ); |
||
54 | } |
||
55 | |||
56 | return $ret; |
||
57 | } |
||
59 |