src/Standards/BestIt/Sniffs/Commenting/AbstractDocSniff.php
private function validateSummaryExistence(): self
    {
        $summaryPos = $this->getSummaryPosition();

        if (!$summaryPos) {
            throw new CodeWarning(
                static::CODE_NO_SUMMARY,
                self::MESSAGE_NO_SUMMARY,
                $this->getDocCommentPos()
            );
        }

        return $this;
    }
private function validateSummaryExistence(): self
    {
        $summaryPos = $this->getSummaryPosition();

        if (!$summaryPos) {
            throw new CodeWarning(
                static::CODE_NO_SUMMARY,
                self::MESSAGE_NO_SUMMARY,
                $this->getDocCommentPos()
            );
        }

        return $this;
    }
private function validateSummaryExistence ( ) : self { $ summaryPos = $ this -> getSummaryPosition ( ) ; if ( ! $ summaryPos ) { throw new CodeWarning ( static :: CODE_NO_SUMMARY , self :: MESSAGE_NO_SUMMARY , $ this -> getDocCommentPos ( ) ) ; } return $ this ; }
Returns position to the comment summary or null.

@throws CodeWarning If there is no summary.

@return $this
Returns position to the comment summary or null .