static analysis

This commit is contained in:
Dylan K. Taylor
2017-07-13 16:45:24 +01:00
parent 23866359c9
commit 4d874e7e78
6 changed files with 7 additions and 6 deletions

View File

@ -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;