Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 97-100 (lines=4) @@
94
  }
95
96
  public function checkRequest($params = [], $ajax = false) {
97
    if (!$this->checkAccess()) {
98
      $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->formName . '"');
99
      return [];
100
    }
101
    $successId = 0;
102
    if (!empty($_POST[$this->requestFormName][$this->modelName])) {
103
      $request = $_POST[$this->requestFormName][$this->modelName];
@@ 188-191 (lines=4) @@
185
  }
186
187
  public function draw($params = [], $ajax = false) {
188
    if (!$this->checkAccess()) {
189
      $this->drawError('you not have access to "' . $this->modelName . '" form with name: "' . $this->formName . '"');
190
      return [];
191
    }
192
    $form = new Form(!empty($this->form['formOptions']) ? $this->form['formOptions'] : []);
193
    \App::$cur->view->widget('Ui\ActiveForm', ['form' => $form, 'activeForm' => $this, 'ajax' => $ajax, 'params' => $params]);
194
  }