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;