Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 233-235 (lines=3) @@
230
                    return [];
231
                }
232
                $relation = $modelName::getRelation($inputParams['relation']);
233
                if (!empty($params['dataManagerParams']['appType'])) {
234
                    $options['appType'] = $params['dataManagerParams']['appType'];
235
                }
236
                $items = [];
237
                if (class_exists($relation['model'])) {
238
                    $filters = $relation['model']::managerFilters();