Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 260-262 (lines=3) @@
257
                    return [];
258
                }
259
                $relation = $modelName::getRelation($inputParams['relation']);
260
                if (!empty($params['dataManagerParams']['appType'])) {
261
                    $options['appType'] = $params['dataManagerParams']['appType'];
262
                }
263
                $items = [];
264
                if (class_exists($relation['model'])) {
265
                    $filters = $relation['model']::managerFilters();