Skip to content

Commit 2ca1df7

Browse files
committed
Merge remote-tracking branch 'origin/master' into master
* origin/master: Apply fixes from StyleCI
2 parents af5816b + 2e86b40 commit 2ca1df7

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/voku/SimplePhpParser/Parsers/Helper/Utils.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
namespace voku\SimplePhpParser\Parsers\Helper;
66

77
use PhpParser\Node\Expr\UnaryMinus;
8-
use RecursiveArrayIterator;
9-
use RecursiveIteratorIterator;
108
use PHPStan\BetterReflection\BetterReflection;
119
use PHPStan\BetterReflection\Reflection\ReflectionClass;
1210
use PHPStan\BetterReflection\Reflection\ReflectionFunction;
1311
use PHPStan\BetterReflection\Reflector\ClassReflector;
1412
use PHPStan\BetterReflection\Reflector\FunctionReflector;
13+
use RecursiveArrayIterator;
14+
use RecursiveIteratorIterator;
1515

1616
final 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

src/voku/SimplePhpParser/Parsers/PhpCodeParser.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ private static function mergeInheritdocData(
430430
}
431431

432432
foreach ($class->interfaces as $interfaceStr) {
433-
434433
if (
435434
!isset($interfaces[$interfaceStr])
436435
&&

0 commit comments

Comments
 (0)