public static function isTemporaryDomain(string $domain): bool
    {
        if (self::$domainsTemporary === null) {
            self::$domainsTemporary = self::getData('domainsTemporary');
        }

        if (\in_array($domain, self::$domainsTemporary, true)) {
            return true;
        }

        if (\preg_match('/.*\.(?:tk|ml|ga|cf|gq)$/si', $domain)) {
            return true;
        }

        return false;
    }
public static function isTemporaryDomain(string $domain): bool
    {
        if (self::$domainsTemporary === null) {
            self::$domainsTemporary = self::getData('domainsTemporary');
        }

        if (\in_array($domain, self::$domainsTemporary, true)) {
            return true;
        }

        if (\preg_match('/.*\.(?:tk|ml|ga|cf|gq)$/si', $domain)) {
            return true;
        }

        return false;
    }
public static function isTemporaryDomain ( string $ domain ) : bool { if ( self :: $ domainsTemporary === null ) { self :: $ domainsTemporary = self :: getData ( 'domainsTemporary' ) ; } if ( \ in_array ( $ domain , self :: $ domainsTemporary , true ) ) { return true ; } if ( \ preg_match ( '/.*\.(?:tk|ml|ga|cf|gq)$/si' , $ domain ) ) { return true ; } return false ; }
Check if the domain is a temporary domain.

@param string $domain

@return bool
Check if the domain is a temporary domain .