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

Breadcrumb

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

function PropertySpacingSniff::isNextMemberValid

Overrides AbstractPropertyConstantAndEnumCaseSpacing::isNextMemberValid

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/PropertySpacingSniff.php, line 66

Class

PropertySpacingSniff

Namespace

SlevomatCodingStandard\Sniffs\Classes

Code

protected function isNextMemberValid(File $phpcsFile, int $pointer) : bool {
    $nextPointer = TokenHelper::findNext($phpcsFile, [
        T_FUNCTION,
        T_VARIABLE,
    ], $pointer + 1);
    return $nextPointer !== null && $phpcsFile->getTokens()[$nextPointer]['code'] === T_VARIABLE;
}

API Navigation

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