packages/TokenRunner/src/DocBlock/MalformWorker/SuperfluousVarNameMalformWorker.php
private function shouldSkip(Tokens $tokens, int $position): bool
    {
        $nextMeaningfulTokenPosition = $tokens->getNextMeaningfulToken($position);

        // nothing to change
        if ($nextMeaningfulTokenPosition === null) {
            return true;
        }

        $nextMeaningfulToken = $tokens[$nextMeaningfulTokenPosition];

        // should be protected/private/public/static, to know we're property
        return ! $nextMeaningfulToken->isGivenKind([T_PUBLIC, T_PROTECTED, T_PRIVATE, T_STATIC]);
    }
private function shouldSkip(Tokens $tokens, int $position): bool
    {
        $nextMeaningfulTokenPosition = $tokens->getNextMeaningfulToken($position);

        // nothing to change
        if ($nextMeaningfulTokenPosition === null) {
            return true;
        }

        $nextMeaningfulToken = $tokens[$nextMeaningfulTokenPosition];

        // should be protected/private/public/static, to know we're property
        return ! $nextMeaningfulToken->isGivenKind([T_PUBLIC, T_PROTECTED, T_PRIVATE, T_STATIC]);
    }
private function shouldSkip ( Tokens $ tokens , int $ position ) : bool { $ nextMeaningfulTokenPosition = $ tokens -> getNextMeaningfulToken ( $ position ) ; // nothing to change if ( $ nextMeaningfulTokenPosition === null ) { return true ; } $ nextMeaningfulToken = $ tokens [ $ nextMeaningfulTokenPosition ] ; // should be protected/private/public/static, to know we're property return ! $ nextMeaningfulToken -> isGivenKind ( [ T_PUBLIC , T_PROTECTED , T_PRIVATE , T_STATIC ] ) ; }
Is property doc block?
Is property doc block?