src/Standards/BestIt/Sniffs/Commenting/AbstractDocSniff.php
private function validateUCFirstDocComment(int $position, array $token): void
    {
        $commentText = $token['content'];

        if (ucfirst($commentText) !== $commentText && $this->isPrevLineEmpty($position)) {
            $isFixing = $this->file->addFixableWarning(
                self::MESSAGE_DOC_COMMENT_UC_FIRST,
                $position,
                static::CODE_DOC_COMMENT_UC_FIRST
            );

            if ($isFixing) {
                $this->fixDocCommentUcFirst($position, $token);
            }
        }
    }
private function validateUCFirstDocComment(int $position, array $token): void
    {
        $commentText = $token['content'];

        if (ucfirst($commentText) !== $commentText && $this->isPrevLineEmpty($position)) {
            $isFixing = $this->file->addFixableWarning(
                self::MESSAGE_DOC_COMMENT_UC_FIRST,
                $position,
                static::CODE_DOC_COMMENT_UC_FIRST
            );

            if ($isFixing) {
                $this->fixDocCommentUcFirst($position, $token);
            }
        }
    }
private function validateUCFirstDocComment ( int $ position , array $ token ) : void { $ commentText = $ token [ 'content' ] ; if ( ucfirst ( $ commentText ) !== $ commentText && $ this -> isPrevLineEmpty ( $ position ) ) { $ isFixing = $ this -> file -> addFixableWarning ( self :: MESSAGE_DOC_COMMENT_UC_FIRST , $ position , static :: CODE_DOC_COMMENT_UC_FIRST ) ; if ( $ isFixing ) { $ this -> fixDocCommentUcFirst ( $ position , $ token ) ; } } }
Checks if the first char of the doc comment is ucfirst.

@param int $position
@param array $token

@return void
Checks if the first char of the doc comment is ucfirst .