function NoMissingSpaceInMethodAnnotationRule::processNode
File
-
vendor/
phpstan/ phpstan-phpunit/ src/ Rules/ PHPUnit/ NoMissingSpaceInMethodAnnotationRule.php, line 34
Class
- NoMissingSpaceInMethodAnnotationRule
- @implements Rule<InClassMethodNode>
Namespace
PHPStan\Rules\PHPUnitCode
public function processNode(Node $node, Scope $scope) : array {
$classReflection = $scope->getClassReflection();
if ($classReflection === null || $classReflection->isSubclassOf(TestCase::class) === false) {
return [];
}
$docComment = $node->getDocComment();
if ($docComment === null) {
return [];
}
return $this->annotationHelper
->processDocComment($docComment);
}