Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NoMissingSpaceInClassAnnotationRule.php

function NoMissingSpaceInClassAnnotationRule::processNode

File

vendor/phpstan/phpstan-phpunit/src/Rules/PHPUnit/NoMissingSpaceInClassAnnotationRule.php, line 34

Class

NoMissingSpaceInClassAnnotationRule
@implements Rule<InClassNode>

Namespace

PHPStan\Rules\PHPUnit

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal