src/phpcs/Production/Sniffs/Commenting/MethodDocBlockHasDescriptionSniff.php
private function needsMethodDocBlockDescription(File $sniffedFile, $index)
    {
        $methodName      = $sniffedFile->getDeclarationName($index);
        $isSpecialMethod = $this->methodIsAccessor($methodName);
        $isDataProvider  = $this->methodIsDataProvider($methodName);

        return !$isSpecialMethod && !$isDataProvider && !$this->isTestMethod($sniffedFile, $index);
    }
private function needsMethodDocBlockDescription(File $sniffedFile, $index)
    {
        $methodName      = $sniffedFile->getDeclarationName($index);
        $isSpecialMethod = $this->methodIsAccessor($methodName);
        $isDataProvider  = $this->methodIsDataProvider($methodName);

        return !$isSpecialMethod && !$isDataProvider && !$this->isTestMethod($sniffedFile, $index);
    }
private function needsMethodDocBlockDescription ( File $ sniffedFile , $ index ) { $ methodName = $ sniffedFile -> getDeclarationName ( $ index ) ; $ isSpecialMethod = $ this -> methodIsAccessor ( $ methodName ) ; $ isDataProvider = $ this -> methodIsDataProvider ( $ methodName ) ; return ! $ isSpecialMethod && ! $ isDataProvider && ! $ this -> isTestMethod ( $ sniffedFile , $ index ) ; }
Checks if the method annotation is in need of a description.

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

@return bool
Checks if the method annotation is in need of a description .