Code Duplication    Length = 9-9 lines in 2 locations

auth/Acl.php 1 location

@@ 48-56 (lines=9) @@
45
            $this->groupTable = $params['groupTable'];
46
        }
47
48
        if (!$this->db->tableExists('acl_user')) {
49
            $this->db->createTable('acl_user', [
50
                '`id` int(10) unsigned NOT NULL AUTO_INCREMENT',
51
                '`user` int(11) unsigned NOT NULL',
52
                '`role` int(11) unsigned DEFAULT NULL',
53
                '`perm` int(11) unsigned DEFAULT NULL',
54
                'PRIMARY KEY (`id`)'
55
            ], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');
56
        }
57
    }
58
59
    /**

auth/DbRbac.php 1 location

@@ 37-45 (lines=9) @@
34
    {
35
        parent::__construct($connection);
36
37
        if (!$this->db->tableExists('rbac_role')) {
38
            $this->db->createTable('rbac_role', [
39
                '`name` varchar(127) NOT NULL',
40
                '`type` int(11) NOT NULL DEFAULT \'0\'',
41
                '`based` varchar(127)',
42
                '`data` text',
43
                'UNIQUE KEY `name` (`name`)'
44
            ], 'ENGINE=MyISAM DEFAULT CHARSET=utf8');
45
        }
46
    }
47
48
    /**