Code Duplication    Length = 3-3 lines in 2 locations

system/modules/Ui/Controllers/UiController.php 1 location

@@ 32-34 (lines=3) @@
29
                $model->setParams($params['preset']);
30
            }
31
        }
32
        if (!empty($_GET['params']['dataManagerParams']['appType'])) {
33
            $params['appType'] = $_GET['params']['dataManagerParams']['appType'];
34
        }
35
36
        $formName = !empty($_GET['formName']) ? $_GET['formName'] : 'manager';
37
        $form = new Ui\ActiveForm($model, $formName);

system/modules/Ui/objects/ActiveForm.php 1 location

@@ 223-225 (lines=3) @@
220
                    return [];
221
                }
222
                $relation = $modelName::getRelation($inputParams['relation']);
223
                if (!empty($params['dataManagerParams']['appType'])) {
224
                    $options['appType'] = $params['dataManagerParams']['appType'];
225
                }
226
                $items = [];
227
                if (class_exists($relation['model'])) {
228
                    $filters = $relation['model']::managerFilters();