From ed9ac2ee63daf462d26a77ab7ad8e28701d9c8bf Mon Sep 17 00:00:00 2001 From: TomasVotruba <924196+TomasVotruba@users.noreply.github.com> Date: Sun, 2 Nov 2025 00:38:18 +0000 Subject: [PATCH] [automated] Apply Coding Standard --- .../Php74/Rector/Ternary/ParenthesizeNestedTernaryRector.php | 4 ++-- .../AddReturnArrayDocblockFromDataProviderParamRector.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/Php74/Rector/Ternary/ParenthesizeNestedTernaryRector.php b/rules/Php74/Rector/Ternary/ParenthesizeNestedTernaryRector.php index 88f3d484448..2752fad0cfc 100644 --- a/rules/Php74/Rector/Ternary/ParenthesizeNestedTernaryRector.php +++ b/rules/Php74/Rector/Ternary/ParenthesizeNestedTernaryRector.php @@ -4,8 +4,8 @@ namespace Rector\Php74\Rector\Ternary; -use PhpParser\Node\Expr; use PhpParser\Node; +use PhpParser\Node\Expr; use PhpParser\Node\Expr\Ternary; use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\Php74\Tokenizer\ParenthesizedNestedTernaryAnalyzer; @@ -63,7 +63,7 @@ public function refactor(Node $node): ?Node { if ($node->cond instanceof Ternary || $node->else instanceof Ternary) { // Chaining of short-ternaries (elvis operator) is stable and behaves reasonably - $isElvis = $node->cond instanceof Ternary && !$node->cond->if instanceof Expr; + $isElvis = $node->cond instanceof Ternary && ! $node->cond->if instanceof Expr; if ($isElvis) { return null; } diff --git a/rules/TypeDeclarationDocblocks/Rector/Class_/AddReturnArrayDocblockFromDataProviderParamRector.php b/rules/TypeDeclarationDocblocks/Rector/Class_/AddReturnArrayDocblockFromDataProviderParamRector.php index 1393c4f3360..a9b357e74fa 100644 --- a/rules/TypeDeclarationDocblocks/Rector/Class_/AddReturnArrayDocblockFromDataProviderParamRector.php +++ b/rules/TypeDeclarationDocblocks/Rector/Class_/AddReturnArrayDocblockFromDataProviderParamRector.php @@ -4,8 +4,8 @@ namespace Rector\TypeDeclarationDocblocks\Rector\Class_; -use PhpParser\Node\Identifier; use PhpParser\Node; +use PhpParser\Node\Identifier; use PhpParser\Node\Stmt\Class_; use PHPStan\PhpDocParser\Ast\PhpDoc\ReturnTagValueNode; use PHPStan\Type\ArrayType;