Code Duplication    Length = 5-5 lines in 2 locations

lib/Ajde/Acl.php 2 locations

@@ 393-397 (lines=5) @@
390
        foreach ($orderedRules as $key => $rule) {
391
            if ($rule->type === 'public' && self::getUser() === false) {
392
                switch ($rule->permission) {
393
                    case 'allow':
394
                        self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' allows access for '.$module.'/'.$action.$extra.' (public)';
395
                        $access = true;
396
                        $isWildcard = $rule->extra == '*';
397
                        break 2;
398
                    case 'deny':
399
                    default:
400
                        self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' denies access for '.$module.'/'.$action.$extra.' (public)';
@@ 436-440 (lines=5) @@
433
                                    $access = false;
434
                                }
435
                                break;
436
                            case 'allow':
437
                                self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' allows access for '.$module.'/'.$action.$extra;
438
                                $access = true;
439
                                $isWildcard = $rule->extra == '*';
440
                                break 2;
441
                        }
442
                    } else {
443
                        self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' denies access for '.$module.'/'.$action.$extra.' (not logged in)';