Code Duplication    Length = 4-4 lines in 2 locations

system/modules/Ui/objects/ActiveForm.php 2 locations

@@ 99-102 (lines=4) @@
96
    }
97
98
    public function checkRequest($params = [], $ajax = false) {
99
        if (!$this->checkAccess()) {
100
            $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->formName . '"');
101
            return [];
102
        }
103
        $successId = 0;
104
        $modelName = $this->model;
105
        if (!empty($_POST[$this->requestFormName][$this->modelName]) || !empty($_FILES[$this->requestFormName]['tmp_name'][$this->modelName])) {
@@ 203-206 (lines=4) @@
200
201
public
202
function draw($params = [], $ajax = false) {
203
    if (!$this->checkAccess()) {
204
        $this->drawError('you not have access to "' . $this->modelName . '" form with name: "' . $this->formName . '"');
205
        return [];
206
    }
207
    $form = new Form(!empty($this->form['formOptions']) ? $this->form['formOptions'] : []);
208
    \App::$cur->view->widget('Ui\ActiveForm', ['form' => $form, 'activeForm' => $this, 'ajax' => $ajax, 'params' => $params]);
209
}