Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Nov 21, 2023
1 parent 0f70eb0 commit 9684604
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use PhpParser\Builder\Property;
use PhpParser\Node;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\Php\PhpPropertyReflection;
use PHPStan\Type\ObjectType;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
use Rector\Core\Exception\ShouldNotHappenException;
Expand Down Expand Up @@ -78,7 +77,7 @@ public function refactorWithScope(Node $node, Scope $scope): ?Node
}
$type = $this->nodeTypeResolver->getType($node);

if(count($type->getObjectClassNames()) === 0 || !$type->isObject()->yes()) {
if (count($type->getObjectClassNames()) === 0 || !$type->isObject()->yes()) {
return null;
}

Expand All @@ -102,7 +101,6 @@ public function refactorWithScope(Node $node, Scope $scope): ?Node
$betterReflection = $reflectionProperty->getBetterReflection();
$defaultValueExpression = $betterReflection->getDefaultValueExpression();


if ($defaultValueExpression instanceof Node\Scalar\String_ && strlen($this->valueResolver->getValue($defaultValueExpression)) > 0) {
return null;
}
Expand Down

0 comments on commit 9684604

Please sign in to comment.