Skip to content

Commit 90e02db

Browse files
committed
[rector] Rector fixes
1 parent 33d96ab commit 90e02db

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rules/CodeQuality/NodeAnalyser/AssignedMocksCollector.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ public function collect(ClassMethod|Foreach_ $stmtsAware): array
4141
if (! $stmt instanceof Expression) {
4242
continue;
4343
}
44+
4445
if (! $stmt->expr instanceof Assign) {
4546
continue;
4647
}
48+
4749
$assign = $stmt->expr;
4850

4951
$firstArg = $this->matchCreateMockArgAssignedToVariable($assign);
@@ -65,6 +67,7 @@ public function collect(ClassMethod|Foreach_ $stmtsAware): array
6567
if ($mockClassReflection->isAbstract()) {
6668
continue;
6769
}
70+
6871
if ($mockClassReflection->isInterface()) {
6972
continue;
7073
}
@@ -79,9 +82,9 @@ public function collect(ClassMethod|Foreach_ $stmtsAware): array
7982
/**
8083
* @return array<string, string>
8184
*/
82-
public function collectEntityClasses(ClassMethod $stmtsAware): array
85+
public function collectEntityClasses(ClassMethod $classMethod): array
8386
{
84-
$variableNamesToClassNames = $this->collect($stmtsAware);
87+
$variableNamesToClassNames = $this->collect($classMethod);
8588

8689
$variableNamesToEntityClasses = [];
8790

0 commit comments

Comments
 (0)