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