Code Duplication    Length = 7-7 lines in 2 locations

system/modules/Ui/objects/ActiveForm.php 2 locations

@@ 128-134 (lines=7) @@
125
                            continue;
126
                        }
127
                        $type = ucfirst($param['type']);
128
                        if ($type == 'DynamicType') {
129
                            switch ($param['typeSource']) {
130
                                case 'selfMethod':
131
                                    $type = $this->model->{$param['selfMethod']}();
132
                                    break;
133
                            }
134
                        }
135
                        $inputClassName = '\Ui\ActiveForm\Input\\' . $type;
136
                        $input = new $inputClassName();
137
                        $input->activeForm = $this;
@@ 218-224 (lines=7) @@
215
            $options->draw();
216
        } else {
217
            $type = ucfirst($options['type']);
218
            if ($type == 'DynamicType') {
219
                switch ($options['typeSource']) {
220
                    case 'selfMethod':
221
                        $type = $this->model->{$options['selfMethod']}();
222
                        break;
223
                }
224
            }
225
            $inputClassName = '\Ui\ActiveForm\Input\\' . $type;
226
            $input = new $inputClassName();
227
            $input->form = $form;