Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 89-92 (lines=4) @@
86
87
    public function checkRequest($params = [], $ajax = false)
88
    {
89
        if (!$this->checkAccess()) {
90
            $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->formName . '"');
91
            return [];
92
        }
93
        $modelName = $this->modelName;
94
        $successId = 0;
95
        if (!empty($_POST[$this->requestFormName][$this->modelName])) {
@@ 174-177 (lines=4) @@
171
172
    public function draw($params = [], $ajax = false)
173
    {
174
        if (!$this->checkAccess()) {
175
            $this->drawError('you not have access to "' . $this->modelName . '" form with name: "' . $this->formName . '"');
176
            return [];
177
        }
178
        $form = new Form(!empty($this->form['formOptions']) ? $this->form['formOptions'] : []);
179
        \App::$cur->view->widget('Ui\ActiveForm', ['form' => $form, 'activeForm' => $this, 'ajax' => $ajax, 'params' => $params]);
180
    }