Code Duplication    Length = 9-9 lines in 2 locations

auth/drivers/Acl.php 1 location

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

auth/drivers/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
    /**