From 255d421305054248c03e61d9f9867641edb4d47a Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sun, 12 Oct 2025 04:22:16 +0700 Subject: [PATCH] Remove unused custom rule to test stmts aware --- src/Rector/MakeNewlineAfterIfRector.php | 41 ------------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/Rector/MakeNewlineAfterIfRector.php diff --git a/src/Rector/MakeNewlineAfterIfRector.php b/src/Rector/MakeNewlineAfterIfRector.php deleted file mode 100644 index 3ac5321..0000000 --- a/src/Rector/MakeNewlineAfterIfRector.php +++ /dev/null @@ -1,41 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - // local PHPUnit - if (is_dir(__DIR__ . '/../../vendor/phpunit')) { - return [StmtsAwareInterface::class]; - } - - return [If_::class]; - } - - /** - * @param StmtsAwareInterface|If_ $node - * @return array|null - */ - public function refactor(Node $node): ?array - { - if (! $node instanceof If_) { - return null; - } - - return [$node, new Nop()]; - } -}