mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
static analysis
This commit is contained in:
@ -305,7 +305,6 @@ class Utils{
|
||||
break;
|
||||
case "bsd":
|
||||
case "mac":
|
||||
$processors = (int) `sysctl -n hw.ncpu`;
|
||||
$processors = (int) `sysctl -n hw.ncpu`;
|
||||
break;
|
||||
case "win":
|
||||
@ -477,7 +476,7 @@ class Utils{
|
||||
|
||||
public static function javaStringHash($string){
|
||||
$hash = 0;
|
||||
for($i = 0; $i < strlen($string); $i++){
|
||||
for($i = 0, $len = strlen($string); $i < $len; $i++){
|
||||
$ord = ord($string{$i});
|
||||
if($ord & 0x80){
|
||||
$ord -= 0x100;
|
||||
|
Reference in New Issue
Block a user