Code Duplication    Length = 6-6 lines in 2 locations

src/Form/Field/Embeds.php 1 location

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

src/Form/Field/HasMany.php 1 location

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