Code Duplication    Length = 9-15 lines in 2 locations

lib/Ajde/Acl.php 2 locations

@@ 92-106 (lines=15) @@
89
        return false;
90
    }
91
92
    public static function removePermission(
93
        $usergroup,
94
        $entity,
95
        $module,
96
        $action = '*',
97
        $extra = '*',
98
        $permission = false
99
    ) {
100
        $acl = self::lookup($usergroup, $entity, $module, $action, $extra, $permission);
101
        if ($acl) {
102
            return $acl->delete();
103
        }
104
105
        return false;
106
    }
107
108
    public static function removeModelPermissions($usergroup, $model, $extra = '*')
109
    {
@@ 171-179 (lines=9) @@
168
        return $actions;
169
    }
170
171
    public static function getPagePermission($usergroup, $module, $action = '*', $extra = '*')
172
    {
173
        $acl = self::lookup($usergroup, 'page', $module, $action, $extra);
174
        if ($acl) {
175
            return $acl->getPermission();
176
        }
177
178
        return false;
179
    }
180
181
    public static function validateController($module, $action, $extra)
182
    {