Code Duplication    Length = 4-4 lines in 3 locations

system/modules/Ui/objects/DataManager.php 3 locations

@@ 233-236 (lines=4) @@
230
        if (!class_exists($modelName)) {
231
            return [];
232
        }
233
        if (!$this->checkAccess()) {
234
            $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"');
235
            return [];
236
        }
237
        $modelName = $this->modelName;
238
        $queryParams = [];
239
        if (empty($params['all'])) {
@@ 541-544 (lines=4) @@
538
        if (!class_exists($modelName)) {
539
            return [];
540
        }
541
        if (!$this->checkAccess()) {
542
            $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"');
543
            return [];
544
        }
545
        if (!empty($params['limit'])) {
546
            $this->limit = (int) $params['limit'];
547
        }
@@ 705-708 (lines=4) @@
702
        if (!class_exists($this->modelName)) {
703
            return false;
704
        }
705
        if (!$this->checkAccess()) {
706
            $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"');
707
            return [];
708
        }
709
        $tree = new Tree();
710
        $tree->ul($this->managerOptions['categorys']['model'], 0, function($category) {
711
            $path = $category->tree_path . ($category->pk() ? $category->pk() . "/" : '');