Skip to content

Commit 00efc4e

Browse files
committed
cs fix
1 parent 0249dd8 commit 00efc4e

25 files changed

+29
-29
lines changed

rules/DowngradePhp72/NodeManipulator/JsonConstCleaner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace Rector\DowngradePhp72\NodeManipulator;
66

7-
use PhpParser\Node\Scalar\Int_;
87
use PhpParser\Node;
98
use PhpParser\Node\Expr;
109
use PhpParser\Node\Expr\BinaryOp\BitwiseOr;
1110
use PhpParser\Node\Expr\ConstFetch;
11+
use PhpParser\Node\Scalar\Int_;
1212
use Rector\Enum\JsonConstant;
1313
use Rector\NodeNameResolver\NodeNameResolver;
1414
use Rector\NodeTypeResolver\Node\AttributeKey;

rules/DowngradePhp72/PhpDoc/NativeParamToPhpDocDecorator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(
3030

3131
public function decorate(ClassMethod $classMethod, Param $param): void
3232
{
33-
if (!$param->type instanceof Node) {
33+
if (! $param->type instanceof Node) {
3434
return;
3535
}
3636

rules/DowngradePhp72/Rector/FuncCall/DowngradePregUnmatchedAsNullConstantRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Rector\DowngradePhp72\Rector\FuncCall;
66

7-
use PhpParser\Node\Scalar\Int_;
87
use PhpParser\Node;
98
use PhpParser\Node\Expr\Assign;
109
use PhpParser\Node\Expr\BinaryOp\BitwiseOr;
@@ -15,6 +14,7 @@
1514
use PhpParser\Node\Expr\FuncCall;
1615
use PhpParser\Node\Expr\Variable;
1716
use PhpParser\Node\Param;
17+
use PhpParser\Node\Scalar\Int_;
1818
use PhpParser\Node\Scalar\String_;
1919
use PhpParser\Node\Stmt;
2020
use PhpParser\Node\Stmt\ClassConst;

rules/DowngradePhp73/Rector/FuncCall/SetCookieOptionsArrayToArgumentsRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace Rector\DowngradePhp73\Rector\FuncCall;
66

7-
use PhpParser\Node\ArrayItem;
87
use PhpParser\BuilderHelpers;
98
use PhpParser\Node;
109
use PhpParser\Node\Arg;
10+
use PhpParser\Node\ArrayItem;
1111
use PhpParser\Node\Expr\Array_;
1212
use PhpParser\Node\Expr\FuncCall;
1313
use PhpParser\Node\Scalar\String_;

rules/DowngradePhp73/Rector/List_/DowngradeListReferenceAssignmentRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
namespace Rector\DowngradePhp73\Rector\List_;
66

7-
use PhpParser\Node\ArrayItem;
8-
use PhpParser\Node\Scalar\Int_;
97
use PhpParser\BuilderHelpers;
108
use PhpParser\Node;
9+
use PhpParser\Node\ArrayItem;
1110
use PhpParser\Node\Expr\Array_;
1211
use PhpParser\Node\Expr\ArrayDimFetch;
1312
use PhpParser\Node\Expr\Assign;
1413
use PhpParser\Node\Expr\AssignRef;
1514
use PhpParser\Node\Expr\List_;
1615
use PhpParser\Node\Expr\Variable;
16+
use PhpParser\Node\Scalar\Int_;
1717
use PhpParser\Node\Scalar\String_;
1818
use PhpParser\Node\Stmt\Expression;
1919
use Rector\Rector\AbstractRector;

rules/DowngradePhp73/Rector/String_/DowngradeFlexibleHeredocSyntaxRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Rector\DowngradePhp73\Rector\String_;
66

7-
use PhpParser\Node\Scalar\InterpolatedString;
87
use PhpParser\Node;
8+
use PhpParser\Node\Scalar\InterpolatedString;
99
use PhpParser\Node\Scalar\String_;
1010
use Rector\DowngradePhp73\Tokenizer\FollowedByNewlineOnlyMaybeWithSemicolonAnalyzer;
1111
use Rector\NodeTypeResolver\Node\AttributeKey;

rules/DowngradePhp74/Rector/Array_/DowngradeArraySpreadRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Rector\DowngradePhp74\Rector\Array_;
66

7-
use PhpParser\Node\ArrayItem;
87
use PhpParser\Node;
8+
use PhpParser\Node\ArrayItem;
99
use PhpParser\Node\Expr\Array_;
1010
use PhpParser\Node\Expr\ClassConstFetch;
1111
use PhpParser\Node\Identifier;

rules/DowngradePhp74/Rector/ArrowFunction/ArrowFunctionToAnonymousFunctionRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Rector\DowngradePhp74\Rector\ArrowFunction;
66

7-
use PhpParser\Node\ClosureUse;
87
use PhpParser\Node;
8+
use PhpParser\Node\ClosureUse;
99
use PhpParser\Node\Expr;
1010
use PhpParser\Node\Expr\ArrowFunction;
1111
use PhpParser\Node\Expr\Assign;

rules/DowngradePhp74/Rector/ClassMethod/DowngradeContravariantArgumentTypeRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function isNullableParam(Param $param, ClassMethod|Function_ $functionLi
125125
return false;
126126
}
127127

128-
if (!$param->type instanceof Node) {
128+
if (! $param->type instanceof Node) {
129129
return false;
130130
}
131131

@@ -262,7 +262,7 @@ private function refactorParam(Param $param, ClassMethod | Function_ $functionLi
262262

263263
private function decorateWithDocBlock(ClassMethod | Function_ $functionLike, Param $param): void
264264
{
265-
if (!$param->type instanceof Node) {
265+
if (! $param->type instanceof Node) {
266266
return;
267267
}
268268

rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace Rector\DowngradePhp74\Rector\LNumber;
66

7-
use PhpParser\Node\Scalar\Int_;
8-
use PhpParser\Node\Scalar\Float_;
97
use PhpParser\Node;
8+
use PhpParser\Node\Scalar\Float_;
9+
use PhpParser\Node\Scalar\Int_;
1010
use Rector\NodeTypeResolver\Node\AttributeKey;
1111
use Rector\Rector\AbstractRector;
1212
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;

0 commit comments

Comments
 (0)