Skip to content

Commit fff1efa

Browse files
committed
build: fix codestyle
1 parent 7e5f1bc commit fff1efa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Rector/BestPractice/UseThisTInsteadOfTRector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
55
namespace DrupalRector\Rector\BestPractice;
66

77
use PhpParser\Node;
8-
use Rector\Rector\AbstractRector;
9-
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
10-
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
118
use PhpParser\Node\Expr\FuncCall;
12-
use Rector\NodeTypeResolver\Node\AttributeKey;
139
use PhpParser\Node\Stmt\Class_;
10+
use Rector\NodeTypeResolver\Node\AttributeKey;
11+
use Rector\Rector\AbstractRector;
12+
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
13+
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
1414

1515
/**
1616
* Replaces t() with $this->t().
1717
*/
1818
final class UseThisTInsteadOfTRector extends AbstractRector
1919
{
20-
2120
public function getRuleDefinition(): RuleDefinition
2221
{
2322
return new RuleDefinition(
@@ -50,7 +49,7 @@ public function refactor(Node $node): ?Node
5049
}
5150

5251
// not to refactor here
53-
$isVirtual = (bool)$node->name->getAttribute(
52+
$isVirtual = (bool) $node->name->getAttribute(
5453
AttributeKey::VIRTUAL_NODE
5554
);
5655
if ($isVirtual) {
@@ -75,6 +74,7 @@ public function refactor(Node $node): ?Node
7574
$node->args
7675
);
7776
}
77+
7878
return null;
7979
}
8080
}

0 commit comments

Comments
 (0)