src/Standards/BestIt/Sniffs/DocTags/ParamTagSniff.php
private function checkAgainstPattern(?string $tagContent = null): bool
    {
        if (!$return = $this->isValidContent($tagContent)) {
            throw (new CodeError(static::CODE_TAG_MISSING_VARIABLE, self::MESSAGE_TAG_MISSING_VARIABLE, $this->stackPos))
                ->setPayload([$tagContent])
                ->setToken($this->token);
        }

        return $return;
    }
private function checkAgainstPattern(?string $tagContent = null): bool
    {
        if (!$return = $this->isValidContent($tagContent)) {
            throw (new CodeError(static::CODE_TAG_MISSING_VARIABLE, self::MESSAGE_TAG_MISSING_VARIABLE, $this->stackPos))
                ->setPayload([$tagContent])
                ->setToken($this->token);
        }

        return $return;
    }
private function checkAgainstPattern ( ? string $ tagContent = null ) : bool { if ( ! $ return = $ this -> isValidContent ( $ tagContent ) ) { throw ( new CodeError ( static :: CODE_TAG_MISSING_VARIABLE , self :: MESSAGE_TAG_MISSING_VARIABLE , $ this -> stackPos ) ) -> setPayload ( [ $ tagContent ] ) -> setToken ( $ this -> token ) ; } return $ return ; }
Simple check if the pattern is correct.

@param string|null $tagContent
@throws CodeWarning

@return bool True if it matches.
Simple check if the pattern is correct .