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 = 8-8 lines in 2 locations

symphony/lib/boot/func.utilities.php 1 location

@@ 116-123 (lines=8) @@
113
    $val = trim($val);
114
    $last = strtolower($val[strlen($val)-1]);
115
116
    switch ($last) {
117
        case 'g':
118
            $val *= 1024;
119
        case 'm':
120
            $val *= 1024;
121
        case 'k':
122
            $val *= 1024;
123
    }
124
125
    return $val;
126
}

symphony/lib/toolkit/class.general.php 1 location

@@ 1411-1418 (lines=8) @@
1408
        );
1409
1410
        $last = strtolower($file_size[strlen($file_size)-1]);
1411
        switch ($last) {
1412
            case 'g':
1413
                $file_size *= 1024;
1414
            case 'm':
1415
                $file_size *= 1024;
1416
            case 'k':
1417
                $file_size *= 1024;
1418
        }
1419
1420
        return $file_size;
1421
    }