It seems like you are loosely comparing stristr(Streaming\PHP_OS, 'LINUX') of type string to the boolean true. If you are specifically checking for a non-empty string, consider using the more explicit !== '' instead.
It seems like you are loosely comparing stristr(Streaming\PHP_OS, 'DAR') of type string to the boolean true. If you are specifically checking for a non-empty string, consider using the more explicit !== '' instead.
It seems like you are loosely comparing stristr(Streaming\PHP_OS, 'WIN') of type string to the boolean true. If you are specifically checking for a non-empty string, consider using the more explicit !== '' instead.
Loading history...
64
case stristr(PHP_OS, 'DAR'):
65
return "osX";
66
case stristr(PHP_OS, 'WIN'):
67
return "windows";
68
case stristr(PHP_OS, 'LINUX'):
69
return "linux";
70
default :
71
return "unknown";
72
}
73
}
74
75
/**
76
* @param bool $isAutoSelect
77
* @return string
78
*/
79
public static function convertBooleanToYesNo(bool $isAutoSelect): string