Code Duplication    Length = 6-6 lines in 2 locations

src/Form/Field/Embeds.php 1 location

@@ 140-145 (lines=6) @@
137
            ));
138
            $attributes = array_merge($attributes, call_user_func_array(
139
                'array_merge',
140
                array_map(function ($v) use ($field) {
141
                    //Fix ResetInput Function! A Headache Implementation!
142
                    $u = $field->label();
143
                    $u .= is_array($field->column()) ? '[' . explode(':', explode('.', $v)[1])[0] . ']' : '';
144
                    return [$v => "{$u}"];
145
                }, $newColumn)
146
            ));
147
            if ($field->validationMessages) {
148

src/Form/Field/HasMany.php 1 location

@@ 174-179 (lines=6) @@
171
            ));
172
            $attributes = array_merge($attributes, call_user_func_array(
173
                'array_merge',
174
                array_map(function ($v) use ($field) {
175
                    //Fix ResetInput Function! A Headache Implementation!
176
                    $u = $field->label();
177
                    $u .= is_array($field->column()) ? '[' . explode(':', explode('.', $v)[1])[0] . ']' : '';
178
                    return [$v => "{$u}"];
179
                }, $newColumn)
180
            ));
181
            if ($field->validationMessages) {
182