@@ 69-71 (lines=3) @@ | ||
66 | } |
|
67 | ||
68 | if ('class' === strtolower(trim($name))) { |
|
69 | foreach (array_filter(explode(' ', trim($value))) as $class) { |
|
70 | $attributes['class'][] = $class; |
|
71 | } |
|
72 | } else { |
|
73 | $attributes[trim($name)] = trim($value); |
|
74 | } |
|
@@ 106-108 (lines=3) @@ | ||
103 | ||
104 | $arg = (array) $arg; |
|
105 | if (isset($arg['class'])) { |
|
106 | foreach (array_filter(explode(' ', trim($arg['class']))) as $class) { |
|
107 | $attributes['class'][] = $class; |
|
108 | } |
|
109 | unset($arg['class']); |
|
110 | } |
|
111 | $attributes = array_merge($attributes, $arg); |