src/phpcs/Production/Sniffs/Commenting/MethodDocBlockHasDescriptionSniff.php
private function hasMethodDocBlockDescription(File $sniffedFile, $index)
    {
        $indexOfOpeningDocBlock = $sniffedFile->findPrevious([T_DOC_COMMENT_OPEN_TAG], $index);
        $indexOfClosingDocBlock = $sniffedFile->findPrevious([T_DOC_COMMENT_CLOSE_TAG], $index);

        $hasDescription = false;
        for ($i = $indexOfOpeningDocBlock + 1; $i < $indexOfClosingDocBlock; $i++)
        {
            if (!$this->isCommentWhitespaceToken($sniffedFile, $i) && !$this->isCommentStartToken($sniffedFile, $i))
            {
                $hasDescription = $this->isCommentTextToken($sniffedFile, $i);
                break;
            }
        }

        return $hasDescription;
    }
private function hasMethodDocBlockDescription(File $sniffedFile, $index)
    {
        $indexOfOpeningDocBlock = $sniffedFile->findPrevious([T_DOC_COMMENT_OPEN_TAG], $index);
        $indexOfClosingDocBlock = $sniffedFile->findPrevious([T_DOC_COMMENT_CLOSE_TAG], $index);

        $hasDescription = false;
        for ($i = $indexOfOpeningDocBlock + 1; $i < $indexOfClosingDocBlock; $i++)
        {
            if (!$this->isCommentWhitespaceToken($sniffedFile, $i) && !$this->isCommentStartToken($sniffedFile, $i))
            {
                $hasDescription = $this->isCommentTextToken($sniffedFile, $i);
                break;
            }
        }

        return $hasDescription;
    }
private function hasMethodDocBlockDescription ( File $ sniffedFile , $ index ) { $ indexOfOpeningDocBlock = $ sniffedFile -> findPrevious ( [ T_DOC_COMMENT_OPEN_TAG ] , $ index ) ; $ indexOfClosingDocBlock = $ sniffedFile -> findPrevious ( [ T_DOC_COMMENT_CLOSE_TAG ] , $ index ) ; $ hasDescription = false ; for ( $ i = $ indexOfOpeningDocBlock + 1 ; $ i < $ indexOfClosingDocBlock ; $ i ++ ) { if ( ! $ this -> isCommentWhitespaceToken ( $ sniffedFile , $ i ) && ! $ this -> isCommentStartToken ( $ sniffedFile , $ i ) ) { $ hasDescription = $ this -> isCommentTextToken ( $ sniffedFile , $ i ) ; break ; } } return $ hasDescription ; }
Checks if the methods docblock contains a description.

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

@return bool
Checks if the methods docblock contains a description .