src/phpcs/Production/Sniffs/Commenting/MethodDocBlockSpacingSniff.php
protected function numberOfLineFeedsBetweenDocBlockAndDeclaration(File $sniffedFile, $indexOfFunctionToken)
    {
        $indexOfClosingDocBlock = $sniffedFile->findPrevious([T_DOC_COMMENT_CLOSE_TAG], $indexOfFunctionToken);
        if ($indexOfClosingDocBlock === false)
        {
            return false;
        }

        $numberOfLineFeeds = 0;
        for ($i = $indexOfClosingDocBlock; $i < $indexOfFunctionToken; $i++)
        {
            if ($this->isLinefeedToken($sniffedFile, $i))
            {
                $numberOfLineFeeds++;
            }
        }

        return $numberOfLineFeeds;
    }
protected function numberOfLineFeedsBetweenDocBlockAndDeclaration(File $sniffedFile, $indexOfFunctionToken)
    {
        $indexOfClosingDocBlock = $sniffedFile->findPrevious([T_DOC_COMMENT_CLOSE_TAG], $indexOfFunctionToken);
        if ($indexOfClosingDocBlock === false)
        {
            return false;
        }

        $numberOfLineFeeds = 0;
        for ($i = $indexOfClosingDocBlock; $i < $indexOfFunctionToken; $i++)
        {
            if ($this->isLinefeedToken($sniffedFile, $i))
            {
                $numberOfLineFeeds++;
            }
        }

        return $numberOfLineFeeds;
    }
protected function numberOfLineFeedsBetweenDocBlockAndDeclaration ( File $ sniffedFile , $ indexOfFunctionToken ) { $ indexOfClosingDocBlock = $ sniffedFile -> findPrevious ( [ T_DOC_COMMENT_CLOSE_TAG ] , $ indexOfFunctionToken ) ; if ( $ indexOfClosingDocBlock === false ) { return false ; } $ numberOfLineFeeds = 0 ; for ( $ i = $ indexOfClosingDocBlock ; $ i < $ indexOfFunctionToken ; $ i ++ ) { if ( $ this -> isLinefeedToken ( $ sniffedFile , $ i ) ) { $ numberOfLineFeeds ++ ; } } return $ numberOfLineFeeds ; }
Counts the linefeeds between a method declaration and its docblock.

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

@return int
Counts the linefeeds between a method declaration and its docblock .