src/Standards/BestIt/Sniffs/DocTags/ReturnTagSniff.php
private function checkForMissingDesc(string $type, array $returnParts): void
    {
        if (!in_array($type, $this->excludedTypes) && (count($returnParts) <= 1) && $this->descAsWarning) {
            throw (new CodeWarning(
                static::CODE_MISSING_RETURN_DESC,
                self::MESSAGE_MISSING_RETURN_DESC,
                $this->stackPos
            ))->setToken($this->token);
        }
    }
private function checkForMissingDesc(string $type, array $returnParts): void
    {
        if (!in_array($type, $this->excludedTypes) && (count($returnParts) <= 1) && $this->descAsWarning) {
            throw (new CodeWarning(
                static::CODE_MISSING_RETURN_DESC,
                self::MESSAGE_MISSING_RETURN_DESC,
                $this->stackPos
            ))->setToken($this->token);
        }
    }
private function checkForMissingDesc ( string $ type , array $ returnParts ) : void { if ( ! in_array ( $ type , $ this -> excludedTypes ) && ( count ( $ returnParts ) <= 1 ) && $ this -> descAsWarning ) { throw ( new CodeWarning ( static :: CODE_MISSING_RETURN_DESC , self :: MESSAGE_MISSING_RETURN_DESC , $ this -> stackPos ) ) -> setToken ( $ this -> token ) ; } }
Throws a code warning if you have no description.

@throws CodeWarning

@param string $type
@param array $returnParts

@return void
Throws a code warning if you have no description .