| @@ 100-102 (lines=3) @@ | ||
| 97 | ||
| 98 | $arg = (array) $arg; | |
| 99 |             if (isset($arg['class'])) { | |
| 100 |                 foreach (array_filter(explode(' ', trim($arg['class']))) as $class) { | |
| 101 | $attributes['class'][] = $class; | |
| 102 | } | |
| 103 | unset($arg['class']); | |
| 104 | } | |
| 105 | $attributes = array_merge($attributes, $arg); | |
| @@ 63-65 (lines=3) @@ | ||
| 60 | } | |
| 61 | ||
| 62 |             if ('class' === strtolower(trim($name))) { | |
| 63 |                 foreach (array_filter(explode(' ', trim($value))) as $class) { | |
| 64 | $attributes['class'][] = $class; | |
| 65 | } | |
| 66 |             } else { | |
| 67 | $attributes[trim($name)] = trim($value); | |
| 68 | } | |