Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
marcelthole and samsonasik committed May 22, 2024
1 parent f04a1af commit 6a5acb0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,15 @@ public function getNodeTypes(): array
return [Class_::class];
}

/**
* @param Class_ $node
*/
public function refactor(Node $node): Node|null
{
if (! $this->testsNodeAnalyzer->isInTestClass($node)) {
return null;
}

if (! $node instanceof Class_) {
return null;
}

$wasChanged = false;
foreach ($node->getMethods() as $classMethod) {
if (! $classMethod->isPublic()) {
Expand Down

0 comments on commit 6a5acb0

Please sign in to comment.