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 = 4-4 lines in 3 locations

routes/event.php 1 location

@@ 54-57 (lines=4) @@
51
    $profiles = parseArray(getUserProfiles($user['id'], $organization['id'], false));
52
    $userProfiles = getUserProfiles($user['id'], $organization['id'], true);
53
    $userProfilesList = array();
54
    foreach($userProfiles as $prof) {
55
        $userProfilesList[$prof['id']] = $prof['id'];
56
        $userProfilesList[$prof['profile_group_id']] = $prof['profile_group_id'];
57
    }
58
   
59
    $isMine = isset($profiles[$pid]);
60
    foreach ($profiles as $p) {

routes/tree.php 2 locations

@@ 37-40 (lines=4) @@
34
    // obtener lista de perfiles para controlar la visibilidad de la carpeta
35
    $userProfiles = getUserProfiles($user['id'], $organization['id'], true);
36
    $userProfilesList = array();
37
    foreach($userProfiles as $prof) {
38
        $userProfilesList[$prof['id']] = $prof['id'];
39
        $userProfilesList[$prof['profile_group_id']] = $prof['profile_group_id'];
40
    }
41
    
42
    if (null !== $id) {
43
        $data = getParsedDeliveriesByCategory($organization['id'], $id, $user['is_admin'] ? null : $userProfilesList, $profileGender, $user['id']);
@@ 345-348 (lines=4) @@
342
    $userProfiles = parseArray(getUserProfiles($user['id'], $organization['id'], true));
343
    $allProfiles = parseArray(getProfilesByOrganization($organization['id']));
344
    $userProfilesList = array();
345
    foreach($userProfiles as $prof) {
346
        $userProfilesList[$prof['id']] = $prof['id'];
347
        $userProfilesList[$prof['profile_group_id']] = $prof['profile_group_id'];
348
    }
349
350
    $isManager = $user['is_admin'];
351
    foreach ($managerProfiles as $upload) {