src/Standards/BestIt/Sniffs/DocTags/ParamTagSniff.php
private function checkDescription(): bool
    {
        if (($hasNoDesc = !@$this->matches['desc']) && ($this->descAsWarning)) {
            throw (new CodeWarning(static::CODE_TAG_MISSING_DESC, self::MESSAGE_TAG_MISSING_DESC, $this->stackPos))
                ->setPayload([$this->matches['var']])
                ->setToken($this->token);
        }

        return !$hasNoDesc;
    }
private function checkDescription(): bool
    {
        if (($hasNoDesc = !@$this->matches['desc']) && ($this->descAsWarning)) {
            throw (new CodeWarning(static::CODE_TAG_MISSING_DESC, self::MESSAGE_TAG_MISSING_DESC, $this->stackPos))
                ->setPayload([$this->matches['var']])
                ->setToken($this->token);
        }

        return !$hasNoDesc;
    }
private function checkDescription ( ) : bool { if ( ( $ hasNoDesc = ! @ $ this -> matches [ 'desc' ] ) && ( $ this -> descAsWarning ) ) { throw ( new CodeWarning ( static :: CODE_TAG_MISSING_DESC , self :: MESSAGE_TAG_MISSING_DESC , $ this -> stackPos ) ) -> setPayload ( [ $ this -> matches [ 'var' ] ] ) -> setToken ( $ this -> token ) ; } return ! $ hasNoDesc ; }
Checks if the param contains a description.

@throws CodeWarning

@return bool|null Returns true if there is a desc.
Checks if the param contains a description .