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

@@ 252-254 (lines=3) @@
249
                return [];
250
            }
251
            $relation = $modelName::getRelation($inputParams['relation']);
252
            if (!empty($params['dataManagerParams']['appType'])) {
253
                $options['appType'] = $params['dataManagerParams']['appType'];
254
            }
255
            $items = [];
256
            if (class_exists($relation['model'])) {
257
                $filters = $relation['model']::managerFilters();