src/Standards/BestIt/Sniffs/Commenting/AbstractDocSniff.php
private function validateNewLineAfterDocComment(int $position, array $token, bool $asSingleLine = true): void
    {
        if (!$this->isNextLineEmpty($position)) {
            $nextRelevantPos = $this->loadNextDocBlockContent($position);
            $nextToken = $this->tokens[$nextRelevantPos];

            // Register an error if we force a single line or this is no long description with more then one line.
            if ($asSingleLine || ($nextToken['code'] !== T_DOC_COMMENT_STRING)) {
                $isFixing = $this->file->addFixableWarning(
                    self::MESSAGE_NO_LINE_AFTER_DOC_COMMENT,
                    $position,
                    static::CODE_NO_LINE_AFTER_DOC_COMMENT
                );

                if ($isFixing) {
                    $this->fixNoLineAfterDocComment($position, $token);
                }
            }
        }
    }
private function validateNewLineAfterDocComment(int $position, array $token, bool $asSingleLine = true): void
    {
        if (!$this->isNextLineEmpty($position)) {
            $nextRelevantPos = $this->loadNextDocBlockContent($position);
            $nextToken = $this->tokens[$nextRelevantPos];

            // Register an error if we force a single line or this is no long description with more then one line.
            if ($asSingleLine || ($nextToken['code'] !== T_DOC_COMMENT_STRING)) {
                $isFixing = $this->file->addFixableWarning(
                    self::MESSAGE_NO_LINE_AFTER_DOC_COMMENT,
                    $position,
                    static::CODE_NO_LINE_AFTER_DOC_COMMENT
                );

                if ($isFixing) {
                    $this->fixNoLineAfterDocComment($position, $token);
                }
            }
        }
    }
private function validateNewLineAfterDocComment ( int $ position , array $ token , bool $ asSingleLine = true ) : void { if ( ! $ this -> isNextLineEmpty ( $ position ) ) { $ nextRelevantPos = $ this -> loadNextDocBlockContent ( $ position ) ; $ nextToken = $ this -> tokens [ $ nextRelevantPos ] ; // Register an error if we force a single line or this is no long description with more then one line. if ( $ asSingleLine || ( $ nextToken [ 'code' ] !== T_DOC_COMMENT_STRING ) ) { $ isFixing = $ this -> file -> addFixableWarning ( self :: MESSAGE_NO_LINE_AFTER_DOC_COMMENT , $ position , static :: CODE_NO_LINE_AFTER_DOC_COMMENT ) ; if ( $ isFixing ) { $ this -> fixNoLineAfterDocComment ( $ position , $ token ) ; } } } }
Checks if there is a line break after the comment block..

@param int $position
@param array $token
@param bool $asSingleLine

@return void
Checks if there is a line break after the comment block ..