Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 76-78 (lines=3) @@
73
                        $inputs[$col] = new ActiveForm($this->model->{$colPath[1]}, $colPath[2]);
74
                    } else {
75
                        $relOptions = $modelName::getRelation($colPath[1]);
76
                        if (!isset($this->model->_params[$modelName::index()])) {
77
                            $this->model->_params[$modelName::index()] = 0;
78
                        }
79
                        $relOptions['model']::fixPrefix($relOptions['col']);
80
                        $inputs[$col] = new ActiveForm(new $relOptions['model'](), $colPath[2]);
81
                    }
@@ 179-181 (lines=3) @@
176
                                $colPath = explode(':', $col);
177
                                if (!$this->model->{$colPath[1]}) {
178
                                    $relOptions = $modelName::getRelation($colPath[1]);
179
                                    if (!isset($this->model->_params[$modelName::index()])) {
180
                                        $this->model->_params[$modelName::index()] = 0;
181
                                    }
182
                                    $relOptions['model']::fixPrefix($relOptions['col']);
183
                                    $form->model->{$relOptions['col']} = $this->model->_params[$modelName::index()];
184
                                }