File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1010use PHPStan \Reflection \ClassReflection ;
1111use PHPStan \Type \ObjectType ;
1212use Rector \Php80 \NodeAnalyzer \PhpAttributeAnalyzer ;
13- use Rector \Php81 \NodeManipulator \AttributeGroupNewLiner ;
1413use Rector \PHPStan \ScopeFetcher ;
1514use Rector \Privatization \NodeManipulator \VisibilityManipulator ;
1615use RectorLaravel \AbstractRector ;
@@ -24,8 +23,7 @@ class MakeModelAttributesAndScopesProtectedRector extends AbstractRector
2423{
2524 public function __construct (
2625 private readonly VisibilityManipulator $ visibilityManipulator ,
27- private readonly PhpAttributeAnalyzer $ phpAttributeAnalyzer ,
28- private readonly AttributeGroupNewLiner $ attributeGroupNewLiner ,
26+ private readonly PhpAttributeAnalyzer $ phpAttributeAnalyzer
2927 ) {}
3028
3129 public function getRuleDefinition (): RuleDefinition
@@ -90,10 +88,6 @@ public function refactor(Node $node): ?Node
9088
9189 $ this ->visibilityManipulator ->makeProtected ($ node );
9290
93- if ($ node ->attrGroups !== []) {
94- $ this ->attributeGroupNewLiner ->newLine ($ this ->file , $ node );
95- }
96-
9791 return $ node ;
9892 }
9993
You can’t perform that action at this time.
0 commit comments