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

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

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

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