src/phpcs/Production/Sniffs/Commenting/MethodHasDocBlockSniff.php
private function methodNeedsDocBlock(File $sniffedFile, $index)
    {
        $methodName = $sniffedFile->getDeclarationName($index);

        return !in_array($methodName, $this->methodNamesWithoutNecessaryDocBlock, true);
    }
private function methodNeedsDocBlock(File $sniffedFile, $index)
    {
        $methodName = $sniffedFile->getDeclarationName($index);

        return !in_array($methodName, $this->methodNamesWithoutNecessaryDocBlock, true);
    }
private function methodNeedsDocBlock ( File $ sniffedFile , $ index ) { $ methodName = $ sniffedFile -> getDeclarationName ( $ index ) ; return ! in_array ( $ methodName , $ this -> methodNamesWithoutNecessaryDocBlock , true ) ; }
Checks if the method declaration is in need of a docblock.

@param File $sniffedFile file to be checked
@param int  $index position of current token in token list

@return bool
Checks if the method declaration is in need of a docblock .