src/Standards/BestIt/CodeSniffer/Helper/DocDescriptionHelper.php
private function addDescriptionNotFoundError(int $summaryPtr): void
    {
        if ($this->descriptionRequired) {
            $this->file->addError(
                AbstractDocSniff::MESSAGE_DESCRIPTION_NOT_FOUND,
                $summaryPtr,
                AbstractDocSniff::CODE_DESCRIPTION_NOT_FOUND
            );
        }
    }
private function addDescriptionNotFoundError(int $summaryPtr): void
    {
        if ($this->descriptionRequired) {
            $this->file->addError(
                AbstractDocSniff::MESSAGE_DESCRIPTION_NOT_FOUND,
                $summaryPtr,
                AbstractDocSniff::CODE_DESCRIPTION_NOT_FOUND
            );
        }
    }
private function addDescriptionNotFoundError ( int $ summaryPtr ) : void { if ( $ this -> descriptionRequired ) { $ this -> file -> addError ( AbstractDocSniff :: MESSAGE_DESCRIPTION_NOT_FOUND , $ summaryPtr , AbstractDocSniff :: CODE_DESCRIPTION_NOT_FOUND ) ; } }
Adds error when description is not found.

@param int $summaryPtr Pointer to summary token.

@return void
Adds error when description is not found .