includes/lib/functions.php
Method getOS
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getOS()
{
global $user_agent;
Argument 2 (subject)
is ?string
but \preg_match_all()
takes string
Open
Open
$listIds = preg_match_all('/.*=/', $osInfo, $matchListIds);
- Exclude checks
Argument 2 (subject)
is ?string
but \preg_match_all()
takes string
Open
Open
$listVal = preg_match_all('/=.*/', $osInfo, $matchListVal);
- Exclude checks
When fetching an array index from a value of type array{0:'B',1:'KB',2:'MB',3:'GB',4:'TB',5:'PB',6:'EB',7:'ZB',8:'YB'},
found an array index of type float,
but expected the index to be of type int
Open
Open
return sprintf('%.02F', round($bytes / pow(1024, $i), 1)) * 1 . ' ' . @$sizes[$i];
- Exclude checks