original_string: public function matchDomain($domain)
      {
          $host = $this->host;
          if (is_null($host)) {
              return false;
          }
  
          $match_domain = explode('.', $domain);
          $match_host = array_slice(explode('.', $host), count($match_domain) * -1);
  
          return (strcasecmp($domain, implode('.', $match_host)) === 0);
      }
code: public function matchDomain($domain)
      {
          $host = $this->host;
          if (is_null($host)) {
              return false;
          }
  
          $match_domain = explode('.', $domain);
          $match_host = array_slice(explode('.', $host), count($match_domain) * -1);
  
          return (strcasecmp($domain, implode('.', $match_host)) === 0);
      }
code_tokens: public function matchDomain ( $ domain ) { $ host = $ this -> host ; if ( is_null ( $ host ) ) { return false ; } $ match_domain = explode ( '.' , $ domain ) ; $ match_host = array_slice ( explode ( '.' , $ host ) , count ( $ match_domain ) * - 1 ) ; return ( strcasecmp ( $ domain , implode ( '.' , $ match_host ) ) === 0 ) ; }
docstring: Do a case-insensitive match on the address for a given domain.
  Matches as many parts of the subdomain in the address as is given in
  the input.
  
  @param string $domain  Domain to match.
  
  @return boolean  True if the address matches the given domain.
docstring_tokens: Do a case - insensitive match on the address for a given domain . Matches as many parts of the subdomain in the address as is given in the input .