From 00efc4e18bb97337642372d5e7465ad295117533 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 19 Nov 2024 23:34:20 +0700 Subject: [PATCH] cs fix --- rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php | 2 +- rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php | 2 +- .../FuncCall/DowngradePregUnmatchedAsNullConstantRector.php | 2 +- .../FuncCall/SetCookieOptionsArrayToArgumentsRector.php | 2 +- .../Rector/List_/DowngradeListReferenceAssignmentRector.php | 4 ++-- .../Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php | 2 +- .../Rector/Array_/DowngradeArraySpreadRector.php | 2 +- .../ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php | 2 +- .../ClassMethod/DowngradeContravariantArgumentTypeRector.php | 4 ++-- .../Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php | 4 ++-- .../ArrayDimFetch/DowngradeDereferenceableOperationRector.php | 2 +- .../ClassMethod/DowngradeTrailingCommasInParamUseRector.php | 2 +- .../Rector/Class_/DowngradePropertyPromotionRector.php | 2 +- .../Rector/Expression/DowngradeMatchToSwitchRector.php | 2 +- .../FuncCall/DowngradeArrayFilterNullableCallbackRector.php | 2 +- .../Rector/FuncCall/DowngradeStrEndsWithRector.php | 2 +- .../Rector/FuncCall/DowngradeStrStartsWithRector.php | 2 +- .../DowngradeReflectionClassGetConstantsFilterRector.php | 2 +- .../Rector/Property/DowngradeUnionTypeTypedPropertyRector.php | 2 +- .../Rector/StaticCall/DowngradePhpTokenRector.php | 2 +- .../NodeFactory/ArrayMergeFromArraySpreadFactory.php | 2 +- .../Rector/Array_/DowngradeArraySpreadStringKeyRector.php | 2 +- .../FuncCall/DowngradeFirstClassCallableSyntaxRector.php | 2 +- .../Rector/LNumber/DowngradeOctalNumberRector.php | 2 +- src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php | 4 ++-- 25 files changed, 29 insertions(+), 29 deletions(-) diff --git a/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php b/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php index 6b2ce54a..7fadc85e 100644 --- a/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php +++ b/rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php @@ -4,11 +4,11 @@ namespace Rector\DowngradePhp72\NodeManipulator; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\BinaryOp\BitwiseOr; use PhpParser\Node\Expr\ConstFetch; +use PhpParser\Node\Scalar\Int_; use Rector\Enum\JsonConstant; use Rector\NodeNameResolver\NodeNameResolver; use Rector\NodeTypeResolver\Node\AttributeKey; diff --git a/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php b/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php index ea68d72c..a59ece69 100644 --- a/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php +++ b/rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php @@ -30,7 +30,7 @@ public function __construct( public function decorate(ClassMethod $classMethod, Param $param): void { - if (!$param->type instanceof Node) { + if (! $param->type instanceof Node) { return; } diff --git a/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php b/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php index 460ccd88..5bb3dc84 100644 --- a/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php +++ b/rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php @@ -4,7 +4,6 @@ namespace Rector\DowngradePhp72\Rector\FuncCall; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\BinaryOp\BitwiseOr; @@ -15,6 +14,7 @@ use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Param; +use PhpParser\Node\Scalar\Int_; use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt; use PhpParser\Node\Stmt\ClassConst; diff --git a/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php b/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php index 8ad0a285..a7b26e43 100644 --- a/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php +++ b/rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php @@ -4,10 +4,10 @@ namespace Rector\DowngradePhp73\Rector\FuncCall; -use PhpParser\Node\ArrayItem; use PhpParser\BuilderHelpers; use PhpParser\Node; use PhpParser\Node\Arg; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Scalar\String_; diff --git a/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php b/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php index 9b9160b3..8b6ccf2f 100644 --- a/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php +++ b/rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php @@ -4,16 +4,16 @@ namespace Rector\DowngradePhp73\Rector\List_; -use PhpParser\Node\ArrayItem; -use PhpParser\Node\Scalar\Int_; use PhpParser\BuilderHelpers; use PhpParser\Node; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\AssignRef; use PhpParser\Node\Expr\List_; use PhpParser\Node\Expr\Variable; +use PhpParser\Node\Scalar\Int_; use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Expression; use Rector\Rector\AbstractRector; diff --git a/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php b/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php index 77fa07e9..8df470e3 100644 --- a/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php +++ b/rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp73\Rector\String_; -use PhpParser\Node\Scalar\InterpolatedString; use PhpParser\Node; +use PhpParser\Node\Scalar\InterpolatedString; use PhpParser\Node\Scalar\String_; use Rector\DowngradePhp73\Tokenizer\FollowedByNewlineOnlyMaybeWithSemicolonAnalyzer; use Rector\NodeTypeResolver\Node\AttributeKey; diff --git a/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php b/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php index 3f569671..a4814419 100644 --- a/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php +++ b/rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp74\Rector\Array_; -use PhpParser\Node\ArrayItem; use PhpParser\Node; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Identifier; diff --git a/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php b/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php index c16d7d16..f359ad53 100644 --- a/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php +++ b/rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp74\Rector\ArrowFunction; -use PhpParser\Node\ClosureUse; use PhpParser\Node; +use PhpParser\Node\ClosureUse; use PhpParser\Node\Expr; use PhpParser\Node\Expr\ArrowFunction; use PhpParser\Node\Expr\Assign; diff --git a/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php b/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php index cf243031..7015ed88 100644 --- a/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php +++ b/rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php @@ -125,7 +125,7 @@ private function isNullableParam(Param $param, ClassMethod|Function_ $functionLi return false; } - if (!$param->type instanceof Node) { + if (! $param->type instanceof Node) { return false; } @@ -262,7 +262,7 @@ private function refactorParam(Param $param, ClassMethod | Function_ $functionLi private function decorateWithDocBlock(ClassMethod | Function_ $functionLike, Param $param): void { - if (!$param->type instanceof Node) { + if (! $param->type instanceof Node) { return; } diff --git a/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php b/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php index 8caf5cfd..e288b7bd 100644 --- a/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php +++ b/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php @@ -4,9 +4,9 @@ namespace Rector\DowngradePhp74\Rector\LNumber; -use PhpParser\Node\Scalar\Int_; -use PhpParser\Node\Scalar\Float_; use PhpParser\Node; +use PhpParser\Node\Scalar\Float_; +use PhpParser\Node\Scalar\Int_; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php b/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php index f93d3675..ebe85b65 100644 --- a/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php +++ b/rules/DowngradePhp80/Rector/ArrayDimFetch/DowngradeDereferenceableOperationRector.php @@ -4,10 +4,10 @@ namespace Rector\DowngradePhp80\Rector\ArrayDimFetch; -use PhpParser\Node\Scalar\InterpolatedString; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\ArrayDimFetch; +use PhpParser\Node\Scalar\InterpolatedString; use PhpParser\Node\Scalar\MagicConst; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\Rector\AbstractRector; diff --git a/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php b/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php index 7b4de161..503e36c7 100644 --- a/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php +++ b/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp80\Rector\ClassMethod; -use PhpParser\Node\ClosureUse; use PhpParser\Node; +use PhpParser\Node\ClosureUse; use PhpParser\Node\Expr\Closure; use PhpParser\Node\Param; use PhpParser\Node\Stmt\ClassMethod; diff --git a/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php b/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php index da0b5f6f..c4013099 100644 --- a/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php +++ b/rules/DowngradePhp80/Rector/Class_/DowngradePropertyPromotionRector.php @@ -4,12 +4,12 @@ namespace Rector\DowngradePhp80\Rector\Class_; -use PhpParser\Node\PropertyItem; use PhpParser\Comment; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\New_; use PhpParser\Node\Param; +use PhpParser\Node\PropertyItem; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; diff --git a/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php b/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php index a707cbff..97bf1523 100644 --- a/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php +++ b/rules/DowngradePhp80/Rector/Expression/DowngradeMatchToSwitchRector.php @@ -4,9 +4,9 @@ namespace Rector\DowngradePhp80\Rector\Expression; -use PhpParser\Node\ArrayItem; use PhpParser\Node; use PhpParser\Node\Arg; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\ArrowFunction; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\CallLike; diff --git a/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php b/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php index 9afd03fa..08520f11 100644 --- a/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php +++ b/rules/DowngradePhp80/Rector/FuncCall/DowngradeArrayFilterNullableCallbackRector.php @@ -4,7 +4,6 @@ namespace Rector\DowngradePhp80\Rector\FuncCall; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr; @@ -21,6 +20,7 @@ use PhpParser\Node\Identifier; use PhpParser\Node\Name; use PhpParser\Node\Param; +use PhpParser\Node\Scalar\Int_; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ArrayType; use PHPStan\Type\ClosureType; diff --git a/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php b/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php index d194e51a..40cdad18 100644 --- a/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php +++ b/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrEndsWithRector.php @@ -4,7 +4,6 @@ namespace Rector\DowngradePhp80\Rector\FuncCall; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr; @@ -14,6 +13,7 @@ use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\UnaryMinus; use PhpParser\Node\Name; +use PhpParser\Node\Scalar\Int_; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php b/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php index 43cf1c71..6dbd2e19 100644 --- a/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php +++ b/rules/DowngradePhp80/Rector/FuncCall/DowngradeStrStartsWithRector.php @@ -4,7 +4,6 @@ namespace Rector\DowngradePhp80\Rector\FuncCall; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr\BinaryOp\Identical; @@ -12,6 +11,7 @@ use PhpParser\Node\Expr\BooleanNot; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Name; +use PhpParser\Node\Scalar\Int_; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php b/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php index e36011f2..ebb09f5e 100644 --- a/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php +++ b/rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionClassGetConstantsFilterRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp80\Rector\MethodCall; -use PhpParser\Node\ClosureUse; use PhpParser\Node; +use PhpParser\Node\ClosureUse; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\Assign; diff --git a/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php b/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php index 6d07f9e3..05e718b4 100644 --- a/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php +++ b/rules/DowngradePhp80/Rector/Property/DowngradeUnionTypeTypedPropertyRector.php @@ -75,7 +75,7 @@ public function refactor(Node $node): ?Node private function shouldRemoveProperty(Property $property): bool { - if (!$property->type instanceof Node) { + if (! $property->type instanceof Node) { return false; } diff --git a/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php b/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php index 47fe0da5..512f11fb 100644 --- a/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php +++ b/rules/DowngradePhp80/Rector/StaticCall/DowngradePhpTokenRector.php @@ -4,7 +4,6 @@ namespace Rector\DowngradePhp80\Rector\StaticCall; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; use PhpParser\Node\Arg; use PhpParser\Node\Expr\ArrayDimFetch; @@ -14,6 +13,7 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Expr\Ternary; use PhpParser\Node\Name; +use PhpParser\Node\Scalar\Int_; use PHPStan\Type\ObjectType; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php b/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php index 1021b055..15d62355 100644 --- a/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php +++ b/rules/DowngradePhp81/NodeFactory/ArrayMergeFromArraySpreadFactory.php @@ -4,9 +4,9 @@ namespace Rector\DowngradePhp81\NodeFactory; -use PhpParser\Node\ArrayItem; use PhpParser\Node; use PhpParser\Node\Arg; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Ternary; diff --git a/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php b/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php index f993ba8b..b5ed83cd 100644 --- a/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php +++ b/rules/DowngradePhp81/Rector/Array_/DowngradeArraySpreadStringKeyRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp81\Rector\Array_; -use PhpParser\Node\ArrayItem; use PhpParser\Node; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\Array_; use PHPStan\Analyser\MutatingScope; use PHPStan\Type\ArrayType; diff --git a/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php b/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php index 89732a41..e33471e5 100644 --- a/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php +++ b/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php @@ -4,9 +4,9 @@ namespace Rector\DowngradePhp81\Rector\FuncCall; -use PhpParser\Node\ArrayItem; use PhpParser\Node; use PhpParser\Node\Arg; +use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\ClassConstFetch; diff --git a/rules/DowngradePhp81/Rector/LNumber/DowngradeOctalNumberRector.php b/rules/DowngradePhp81/Rector/LNumber/DowngradeOctalNumberRector.php index d22c9936..7b3ddfbb 100644 --- a/rules/DowngradePhp81/Rector/LNumber/DowngradeOctalNumberRector.php +++ b/rules/DowngradePhp81/Rector/LNumber/DowngradeOctalNumberRector.php @@ -4,8 +4,8 @@ namespace Rector\DowngradePhp81\Rector\LNumber; -use PhpParser\Node\Scalar\Int_; use PhpParser\Node; +use PhpParser\Node\Scalar\Int_; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php b/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php index 89325499..d88576fd 100644 --- a/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php +++ b/src/PhpDocDecorator/PhpDocFromTypeDeclarationDecorator.php @@ -111,7 +111,7 @@ public function decorateParam( ClassMethod|Function_|Closure|ArrowFunction $functionLike, array $requiredTypes ): void { - if (!$param->type instanceof Node) { + if (! $param->type instanceof Node) { return; } @@ -133,7 +133,7 @@ public function decorateParamWithSpecificType( ClassMethod|Function_|Closure|ArrowFunction $functionLike, Type $requireType ): bool { - if (!$param->type instanceof Node) { + if (! $param->type instanceof Node) { return false; }