diff --git a/rules/CodingStyle/Guard/ArrowFunctionAndClosureFirstClassCallableGuard.php b/rules/CodingStyle/Guard/ArrowFunctionAndClosureFirstClassCallableGuard.php index 0e4f94fe216..619eabf82e1 100644 --- a/rules/CodingStyle/Guard/ArrowFunctionAndClosureFirstClassCallableGuard.php +++ b/rules/CodingStyle/Guard/ArrowFunctionAndClosureFirstClassCallableGuard.php @@ -104,7 +104,11 @@ public function shouldSkip( } // check if args require by reference - $parameters = ParametersAcceptorSelectorVariantsWrapper::select($reflection, $callLike, $scope)->getParameters(); + $parameters = ParametersAcceptorSelectorVariantsWrapper::select( + $reflection, + $callLike, + $scope + )->getParameters(); foreach ($parameters as $parameter) { if ($parameter->passedByReference()->yes()) { return true; diff --git a/rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php b/rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php index 264b0c246a0..44a4576129b 100644 --- a/rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php +++ b/rules/Php80/NodeAnalyzer/PhpAttributeAnalyzer.php @@ -24,8 +24,10 @@ public function __construct( ) { } - public function hasPhpAttribute(Property | ClassLike | ClassMethod | Function_ | Param $node, string $attributeClass): bool - { + public function hasPhpAttribute( + Property | ClassLike | ClassMethod | Function_ | Param $node, + string $attributeClass + ): bool { foreach ($node->attrGroups as $attrGroup) { foreach ($attrGroup->attrs as $attribute) { if (! $this->nodeNameResolver->isName($attribute->name, $attributeClass)) { @@ -42,8 +44,10 @@ public function hasPhpAttribute(Property | ClassLike | ClassMethod | Function_ | /** * @param string[] $attributeClasses */ - public function hasPhpAttributes(Property | ClassLike | ClassMethod | Function_ | Param $node, array $attributeClasses): bool - { + public function hasPhpAttributes( + Property | ClassLike | ClassMethod | Function_ | Param $node, + array $attributeClasses + ): bool { foreach ($attributeClasses as $attributeClass) { if ($this->hasPhpAttribute($node, $attributeClass)) { return true; diff --git a/rules/Php86/Rector/FuncCall/MinMaxToClampRector.php b/rules/Php86/Rector/FuncCall/MinMaxToClampRector.php index 6cbdf7bfd5d..82cfae518db 100644 --- a/rules/Php86/Rector/FuncCall/MinMaxToClampRector.php +++ b/rules/Php86/Rector/FuncCall/MinMaxToClampRector.php @@ -4,11 +4,11 @@ namespace Rector\Php86\Rector\FuncCall; -use PhpParser\Node\Identifier; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Expr\FuncCall; +use PhpParser\Node\Identifier; use Rector\Rector\AbstractRector; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; @@ -130,7 +130,7 @@ private function createClampFuncCall( private function isSupportedArg(Arg $arg): bool { - return ! $arg->unpack && !$arg->name instanceof Identifier; + return ! $arg->unpack && ! $arg->name instanceof Identifier; } /**