Skip to content

Commit

Permalink
[automated] Apply Coding Standard (#3998)
Browse files Browse the repository at this point in the history
Co-authored-by: TomasVotruba <TomasVotruba@users.noreply.github.com>
  • Loading branch information
TomasVotruba and TomasVotruba committed May 28, 2023
1 parent 87e924a commit 4d4c73d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions rules/Privatization/Guard/ParentPropertyLookupGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ public function isLegal(Property $property, ?ClassReflection $classReflection):
$nativeReflection,
'betterReflectionClass'
);
$parentClassName = $this->privatesAccessor->getPrivateProperty(
$betterReflectionClass,
'parentClassName'
);
$parentClassName = $this->privatesAccessor->getPrivateProperty($betterReflectionClass, 'parentClassName');

if ($parentClassName === null) {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace Rector\Privatization\Rector\Property;

use PHPStan\Reflection\ClassReflection;
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Property;
use PHPStan\Reflection\ClassReflection;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\Reflection\ReflectionResolver;
use Rector\Privatization\Guard\ParentPropertyLookupGuard;
Expand Down

0 comments on commit 4d4c73d

Please sign in to comment.