Skip to content

Commit b556e80

Browse files
committed
add file without ns
1 parent 4990633 commit b556e80

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rules/CodingStyle/Rector/Stmt/NewlineAfterStatementRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
public function getRuleDefinition(): RuleDefinition
2828
{
2929
return new RuleDefinition(
30-
'Add empty new line after differnt-type statements to improve code readability',
30+
'Add empty new line after different-type statements to improve code readability',
3131
[
3232
new CodeSample(
3333
<<<'CODE_SAMPLE'

src/PhpParser/Enum/NodeGroup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use PhpParser\Node\Stmt\Trait_;
2727
use PhpParser\Node\Stmt\TryCatch;
2828
use PhpParser\Node\Stmt\While_;
29+
use Rector\PhpParser\Node\CustomNode\FileWithoutNamespace;
2930

3031
final class NodeGroup
3132
{
@@ -52,6 +53,7 @@ final class NodeGroup
5253
Namespace_::class,
5354
TryCatch::class,
5455
While_::class,
56+
FileWithoutNamespace::class,
5557
];
5658

5759
/**

0 commit comments

Comments
 (0)