GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 14-14 lines in 6 locations

phpmyfaq/feed/category/rss.php 1 location

@@ 83-96 (lines=14) @@
80
//
81
// Get current user and group id - default: -1
82
//
83
if (isset($user) && !is_null($user) && $user instanceof CurrentUser) {
84
    $current_user = $user->getUserId();
85
    if ($user->perm instanceof MediumPermission) {
86
        $current_groups = $user->perm->getUserGroups($current_user);
87
    } else {
88
        $current_groups = array(-1);
89
    }
90
    if (0 == count($current_groups)) {
91
        $current_groups = array(-1);
92
    }
93
} else {
94
    $current_user = -1;
95
    $current_groups = array(-1);
96
}
97
98
if (!$faqConfig->get('main.enableRssFeeds')) {
99
    exit();

phpmyfaq/feed/latest/rss.php 1 location

@@ 82-95 (lines=14) @@
79
//
80
// Get current user and group id - default: -1
81
//
82
if (isset($user) && !is_null($user) && $user instanceof CurrentUser) {
83
    $current_user = $user->getUserId();
84
    if ($user->perm instanceof MediumPermission) {
85
        $current_groups = $user->perm->getUserGroups($current_user);
86
    } else {
87
        $current_groups = array(-1);
88
    }
89
    if (0 == count($current_groups)) {
90
        $current_groups = array(-1);
91
    }
92
} else {
93
    $current_user = -1;
94
    $current_groups = array(-1);
95
}
96
97
//
98
// Initalizing static string wrapper

phpmyfaq/feed/openquestions/rss.php 1 location

@@ 88-101 (lines=14) @@
85
//
86
// Get current user and group id - default: -1
87
//
88
if (isset($user) && !is_null($user) && $user instanceof CurrentUser) {
89
    $current_user = $user->getUserId();
90
    if ($user->perm instanceof MediumPermission) {
91
        $current_groups = $user->perm->getUserGroups($current_user);
92
    } else {
93
        $current_groups = array(-1);
94
    }
95
    if (0 == count($current_groups)) {
96
        $current_groups = array(-1);
97
    }
98
} else {
99
    $current_user = -1;
100
    $current_groups = array(-1);
101
}
102
103
if (!$faqConfig->get('main.enableRssFeeds')) {
104
    exit();

phpmyfaq/feed/topten/rss.php 1 location

@@ 83-96 (lines=14) @@
80
//
81
// Get current user and group id - default: -1
82
//
83
if (isset($user) && !is_null($user) && $user instanceof CurrentUser) {
84
    $current_user = $user->getUserId();
85
    if ($user->perm instanceof MediumPermission) {
86
        $current_groups = $user->perm->getUserGroups($current_user);
87
    } else {
88
        $current_groups = array(-1);
89
    }
90
    if (0 == count($current_groups)) {
91
        $current_groups = array(-1);
92
    }
93
} else {
94
    $current_user = -1;
95
    $current_groups = array(-1);
96
}
97
98
//
99
// Initalizing static string wrapper

phpmyfaq/index.php 1 location

@@ 191-204 (lines=14) @@
188
//
189
// Get current user and group id - default: -1
190
//
191
if (!is_null($user) && $user instanceof CurrentUser) {
192
    $current_user = $user->getUserId();
193
    if ($user->perm instanceof Medium) {
194
        $current_groups = $user->perm->getUserGroups($current_user);
195
    } else {
196
        $current_groups = [-1];
197
    }
198
    if (0 == count($current_groups)) {
199
        $current_groups = [-1];
200
    }
201
} else {
202
    $current_user = -1;
203
    $current_groups = [-1];
204
}
205
206
//
207
// Use mbstring extension if available and when possible

phpmyfaq/pdf.php 1 location

@@ 69-82 (lines=14) @@
66
}
67
68
// Get current user and group id - default: -1
69
if (!is_null($user) && $user instanceof CurrentUser) {
70
    $current_user = $user->getUserId();
71
    if ($user->perm instanceof Medium) {
72
        $current_groups = $user->perm->getUserGroups($current_user);
73
    } else {
74
        $current_groups = array(-1);
75
    }
76
    if (0 == count($current_groups)) {
77
        $current_groups = array(-1);
78
    }
79
} else {
80
    $current_user = -1;
81
    $current_groups = array(-1);
82
}
83
84
$currentCategory = phpMyFAQ\Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);
85
$id = phpMyFAQ\Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);