Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28ede78

Browse files
committed
[ci-review] Rector Rectify
1 parent 896708c commit 28ede78

12 files changed

Lines changed: 0 additions & 12 deletions

File tree

rules/Arguments/NodeAnalyzer/ChangedArgumentsDetector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function isDefaultValueChanged(Param $param, mixed $value): bool
2828
return ! $this->valueResolver->isValue($param->default, $value);
2929
}
3030

31-
3231
public function isTypeChanged(Param $param, ?Type $newType): bool
3332
{
3433
if ($param->type === null) {

rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ private function shouldSkipParameter(
263263
return ! $this->argumentAddingScope->isInCorrectScope($node, $argumentAdder);
264264
}
265265

266-
267266
private function addClassMethodParam(
268267
ClassMethod $classMethod,
269268
ArgumentAdder $argumentAdder,

rules/CodeQuality/Rector/If_/ExplicitBoolCompareRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public function refactor(Node $node): ?Node
133133
return $node;
134134
}
135135

136-
137136
private function shouldSkip(Type $conditionStaticType, BinaryOp $binaryOp, ?Node $nextNode): bool
138137
{
139138
return $conditionStaticType instanceof StringType && $binaryOp instanceof BooleanOr && ! $nextNode instanceof Node;

rules/CodingStyle/Rector/Catch_/CatchExceptionNameMatchingTypeRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ private function renameVariableInStmts(Catch_ $catch, string $oldVariableName, s
168168
$this->replaceNextUsageVariable($tryCatch, $nextNode, $oldVariableName, $newVariableName);
169169
}
170170

171-
172171
private function replaceNextUsageVariable(
173172
Node $currentNode,
174173
?Node $nextNode,

rules/CodingStyle/Rector/Stmt/NewlineAfterStatementRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ private function hasNoComment(?array $comments): bool
166166
return ! isset($comments[0]);
167167
}
168168

169-
170169
private function shouldSkip(?Node $nextNode): bool
171170
{
172171
if (! $nextNode instanceof Stmt) {

rules/EarlyReturn/Rector/Return_/PreparedValueToEarlyReturnRector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ private function shouldSkip(array $ifsBefore, ?Expr $returnExpr): bool
181181
return ! (bool) $this->getPreviousIfLinearEquals($ifsBefore[0], $returnExpr);
182182
}
183183

184-
185184
private function getPreviousIfLinearEquals(?Node $node, ?Expr $expr): ?Expression
186185
{
187186
if (! $node instanceof Node) {

rules/Naming/Naming/VariableNaming.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ public function resolveFromNodeWithScopeCountAndFallbackName(
5656
return lcfirst($countedValueName);
5757
}
5858

59-
6059
public function createCountedValueName(string $valueName, ?Scope $scope): string
6160
{
6261
if ($scope === null) {

rules/Privatization/TypeManipulator/NormalizeTypeToRespectArrayScalarType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function __construct(
2121
) {
2222
}
2323

24-
2524
public function normalizeToArray(Type $type, ?Node $returnNode): ArrayType|UnionType|Type
2625
{
2726
if ($returnNode === null) {

rules/TypeDeclaration/PHPStan/ObjectTypeSpecifier.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ private function matchAliasedObjectType(Node $node, ObjectType $objectType, arra
129129
return null;
130130
}
131131

132-
133132
private function processAliasedObject(
134133
string $alias,
135134
string $className,

rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/TrustedClassMethodPropertyTypeInferer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public function inferProperty(Property $property, string $methodName): ?Type
105105
return $this->resolveType($property, $propertyName, $classLike, $resolvedType);
106106
}
107107

108-
109108
private function resolveType(
110109
Property $property,
111110
string $propertyName,

0 commit comments

Comments
 (0)