| Conditions | 5 |
| Paths | 8 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public static function add($state, $elements) { |
||
| 12 | if (\is_array($state) === false) { |
||
| 13 | $state=\explode(" ", $state); |
||
| 14 | } |
||
| 15 | if (\is_array($elements)) { |
||
| 16 | foreach ( $elements as $element ) { |
||
| 17 | if ($element instanceof BaseHtml) { |
||
| 18 | self::_add($state, $element); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 29 | } |