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

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