src/Standards/BestIt/Sniffs/Commenting/RequiredDocBlockSniff.php
private function checkAndRegisterNoMultiLine(): void
    {
        $docCommentPos = $this->getDocCommentPos();
        $openingToken = $this->tokens[$docCommentPos];
        $closingToken = $this->tokens[$openingToken['comment_closer']];

        if ($openingToken['line'] === $closingToken['line']) {
            $tokenIdent = $this->getTokenName();

            $exception = (new CodeError(
                static::CODE_NO_MULTI_LINE_DOC_BLOCK_PREFIX . ucfirst($tokenIdent),
                self::MESSAGE_NO_MULTI_LINE_DOC_BLOCK_PREFIX,
                $docCommentPos
            ))->setPayload([lcfirst($tokenIdent)]);

            throw $exception;
        }
    }
private function checkAndRegisterNoMultiLine(): void
    {
        $docCommentPos = $this->getDocCommentPos();
        $openingToken = $this->tokens[$docCommentPos];
        $closingToken = $this->tokens[$openingToken['comment_closer']];

        if ($openingToken['line'] === $closingToken['line']) {
            $tokenIdent = $this->getTokenName();

            $exception = (new CodeError(
                static::CODE_NO_MULTI_LINE_DOC_BLOCK_PREFIX . ucfirst($tokenIdent),
                self::MESSAGE_NO_MULTI_LINE_DOC_BLOCK_PREFIX,
                $docCommentPos
            ))->setPayload([lcfirst($tokenIdent)]);

            throw $exception;
        }
    }
private function checkAndRegisterNoMultiLine ( ) : void { $ docCommentPos = $ this -> getDocCommentPos ( ) ; $ openingToken = $ this -> tokens [ $ docCommentPos ] ; $ closingToken = $ this -> tokens [ $ openingToken [ 'comment_closer' ] ] ; if ( $ openingToken [ 'line' ] === $ closingToken [ 'line' ] ) { $ tokenIdent = $ this -> getTokenName ( ) ; $ exception = ( new CodeError ( static :: CODE_NO_MULTI_LINE_DOC_BLOCK_PREFIX . ucfirst ( $ tokenIdent ) , self :: MESSAGE_NO_MULTI_LINE_DOC_BLOCK_PREFIX , $ docCommentPos ) ) -> setPayload ( [ lcfirst ( $ tokenIdent ) ] ) ; throw $ exception ; } }
Checks and registers a multi line error.

@throws CodeWarning

@return void
Checks and registers a multi line error .