| Conditions | 6 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function hasContent():bool |
||
| 37 | { |
||
| 38 | $tmp = clone $this; |
||
| 39 | $tmp->rewind(); |
||
| 40 | foreach ($tmp as $child) { |
||
| 41 | if (!($child instanceof NodeComment) |
||
| 42 | && !($child instanceof NodeDirective) |
||
| 43 | && !($child instanceof NodeDocstart && is_null($child->value)) ) return true; |
||
| 44 | } |
||
| 45 | return false; |
||
| 46 | } |
||
| 57 |