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