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

@@ 136-143 (lines=8) @@
133
    $val = trim($val);
134
    $last = strtolower($val[strlen($val)-1]);
135
136
    switch ($last) {
137
        case 'g':
138
            $val *= 1024;
139
        case 'm':
140
            $val *= 1024;
141
        case 'k':
142
            $val *= 1024;
143
    }
144
145
    return $val;
146
}

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

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