Conditions | 5 |
Paths | 8 |
Total Lines | 31 |
Code Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function __toString() |
||
14 | { |
||
15 | foreach ($this->hooksToString as $hook) |
||
16 | $hook($this); |
||
17 | |||
18 | $blnFormatted = true; |
||
19 | |||
20 | if ($this->blnIsBlock() && $blnFormatted) |
||
21 | $strNewLine = PHP_EOL; |
||
22 | else |
||
23 | $strNewLine = ''; |
||
24 | |||
25 | $strReturn = ''; |
||
26 | |||
27 | $strReturn .= |
||
28 | '<'.static::tagName() |
||
29 | .$this->getFormattedElementAttributes() |
||
30 | .'>' |
||
31 | .$strNewLine; |
||
32 | |||
33 | foreach ($this as $child) |
||
34 | $strReturn .= $child->__toString(); |
||
35 | |||
36 | $strReturn .= |
||
37 | $strNewLine. |
||
38 | '</'.static::tagName(). |
||
39 | '>'. |
||
40 | $strNewLine; |
||
41 | |||
42 | return $strReturn; |
||
43 | } |
||
44 | |||
61 |