55namespace  voku \SimplePhpParser \Parsers \Helper ;
66
77use  PhpParser \Node \Expr \UnaryMinus ;
8- use  RecursiveArrayIterator ;
9- use  RecursiveIteratorIterator ;
108use  PHPStan \BetterReflection \BetterReflection ;
119use  PHPStan \BetterReflection \Reflection \ReflectionClass ;
1210use  PHPStan \BetterReflection \Reflection \ReflectionFunction ;
1311use  PHPStan \BetterReflection \Reflector \ClassReflector ;
1412use  PHPStan \BetterReflection \Reflector \FunctionReflector ;
13+ use  RecursiveArrayIterator ;
14+ use  RecursiveIteratorIterator ;
1515
1616final  class  Utils
1717{
@@ -442,7 +442,7 @@ public static function getCpuCores(): int
442442                return  1 ;
443443            }
444444
445-             return  (int )round (  $ matches [1 ] / 2 );
445+             return  (int )round ($ matches [1 ] / 2 );
446446        }
447447
448448        /** @noinspection PhpUsageOfSilenceOperatorInspection */ 
@@ -451,15 +451,15 @@ public static function getCpuCores(): int
451451            $ ret  = \trim ($ ret );
452452            /** @noinspection PhpAssignmentInConditionInspection */ 
453453            if  ($ ret  && ($ tmp  = \filter_var ($ ret , \FILTER_VALIDATE_INT )) !== false ) {
454-                 return  (int )round (  $ tmp  / 2 );
454+                 return  (int )round ($ tmp  / 2 );
455455            }
456456        }
457457
458458        if  (\is_readable ('/proc/cpuinfo ' )) {
459459            $ cpuinfo  = (string ) \file_get_contents ('/proc/cpuinfo ' );
460460            $ count  = \substr_count ($ cpuinfo , 'processor ' );
461461            if  ($ count  > 0 ) {
462-                 return  (int )round (  $ count  / 2 );
462+                 return  (int )round ($ count  / 2 );
463463            }
464464        }
465465
0 commit comments