Code Duplication    Length = 6-6 lines in 2 locations

src/Form/Field/HasMany.php 1 location

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

src/Form/Field/Embeds.php 1 location

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