Code Duplication    Length = 3-3 lines in 2 locations

src/AttributesUtils.php 2 locations

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