Skip to content

Commit bfd7ce4

Browse files
committed
fix cs
1 parent 76b516b commit bfd7ce4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

rules/CodeQuality/Rector/ClassMethod/AddInstanceofAssertForNullableInstanceRector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ private function matchedNullableVariableNameToType(
202202
return null;
203203
}
204204

205-
$matchedNullableVariableNameToType = $variableNameToTypeCollection->matchByVariableName(
206-
$variableName
207-
);
205+
$matchedNullableVariableNameToType = $variableNameToTypeCollection->matchByVariableName($variableName);
208206

209207
// is the variable we're interested in?
210208
return null;

rules/CodeQuality/Rector/ClassMethod/CreateMockToAnonymousClassRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ private function createAnonymousClass(Arg $firstArg): Class_
201201
}
202202

203203
// must respect PHPStan anonymous internal naming \Rector\NodeTypeResolver\PHPStan\Scope\PHPStanNodeScopeResolver::ANONYMOUS_CLASS_START_REGEX
204-
return new Class_('AnonymousClass1234', [ // @phpstan-ignore argument.type
204+
// @phpstan-ignore argument.type
205+
return new Class_('AnonymousClass1234', [
205206
'extends' => $className,
206207
], [
207208
'startLine' => $firstArg->getStartLine(),

rules/PHPUnit100/Rector/Class_/RemoveNamedArgsInDataProviderRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function refactor(Node $node): ?Node
102102
$expr = $stmt->expr;
103103
$arrayChanged = false;
104104
if ($expr instanceof Yield_) {
105-
if (!$expr->value instanceof Array_) {
105+
if (! $expr->value instanceof Array_) {
106106
return null;
107107
}
108108
$arrayChanged = $this->handleArray($expr->value);

0 commit comments

Comments
 (0)