Conditions | 5 |
Paths | 12 |
Total Lines | 22 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
59 | public function _html() |
||
60 | { |
||
61 | $this->_htmlcode = "<{$this->_element}"; |
||
62 | |||
63 | foreach ($this->_attributes as $attribute => $value) { |
||
64 | if (!empty($value)) { |
||
65 | $this->_htmlcode .= \sprintf(' %s="%s" ', $attribute, $value); |
||
66 | } |
||
67 | } |
||
68 | $this->_htmlcode .= '>'; |
||
69 | |||
70 | if ($this->_text) { |
||
71 | $this->_htmlcode .= $this->_text; |
||
72 | } |
||
73 | |||
74 | foreach ($this->_siblings as $obj) { |
||
75 | $this->_htmlcode .= $obj->fetch(); |
||
76 | } |
||
77 | |||
78 | $this->_htmlcode .= "</{$this->_element}>"; |
||
79 | |||
80 | return $this->_htmlcode; |
||
81 | } |
||
94 |