mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-28 03:44:19 +08:00
chore: fix code style
This commit is contained in:
committed by
github-actions[bot]
parent
36a4f846bf
commit
67a57d40cb
@@ -19,7 +19,6 @@ class MoveImportedClassesRector extends AbstractRector
|
||||
public function refactor(Node $node): ?Node
|
||||
{
|
||||
/** @var UseUse $node */
|
||||
|
||||
if ($this->isName($node->name, 'Filament\\Resources\\Form')) {
|
||||
$node->name = new Name('Filament\\Forms\\Form');
|
||||
} elseif ($this->isName($node->name, 'Filament\\Resources\\Table')) {
|
||||
|
||||
@@ -11,7 +11,6 @@ use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Param;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\UseUse;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Naming\VariableRenamer;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
@@ -286,7 +285,6 @@ class SimpleMethodChangesRector extends AbstractRector
|
||||
public function refactor(Node $node): ?Node
|
||||
{
|
||||
/** @var ClassMethod $node */
|
||||
|
||||
$class = $node->getAttribute(AttributeKey::PARENT_NODE);
|
||||
|
||||
foreach ($this->getChanges() as $change) {
|
||||
|
||||
@@ -4,10 +4,8 @@ namespace Filament\Upgrade\App;
|
||||
|
||||
use Closure;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Identifier;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PhpParser\Node\VarLikeIdentifier;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
@@ -58,7 +56,6 @@ class SimplePropertyChangesRector extends AbstractRector
|
||||
public function refactor(Node $node): ?Node
|
||||
{
|
||||
/** @var Property $node */
|
||||
|
||||
$class = $node->getAttribute(AttributeKey::PARENT_NODE);
|
||||
|
||||
foreach ($this->getChanges() as $change) {
|
||||
|
||||
@@ -6,7 +6,6 @@ use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ArrowFunction;
|
||||
use PhpParser\Node\Expr\Closure;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
@@ -21,7 +20,6 @@ class FixGetSetClosureTypesRector extends AbstractRector
|
||||
public function refactor(Node $node): ?Node
|
||||
{
|
||||
/** @var ArrowFunction | Closure $node */
|
||||
|
||||
$params = $node->params;
|
||||
|
||||
foreach ($params as $param) {
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
|
||||
namespace Filament\Upgrade;
|
||||
|
||||
use Closure;
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\ArrowFunction;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
@@ -20,7 +18,6 @@ class SecondaryToGrayColorRector extends AbstractRector
|
||||
public function refactor(Node $node): ?Node
|
||||
{
|
||||
/** @var MethodCall $node */
|
||||
|
||||
if (! in_array($node->name->name, ['color', 'iconColor', 'hintColor', 'offColor', 'onColor', 'falseColor', 'trueColor'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user