original_string: public static function isHostKnownAliasHost($urlHost, $idSite)
      {
          $websiteData = Cache::getCacheWebsiteAttributes($idSite);
  
          if (isset($websiteData['hosts'])) {
              $canonicalHosts = array();
              foreach ($websiteData['hosts'] as $host) {
                  $canonicalHosts[] = self::toCanonicalHost($host);
              }
  
              $canonicalHost = self::toCanonicalHost($urlHost);
              if (in_array($canonicalHost, $canonicalHosts)) {
                  return true;
              }
          }
  
          return false;
      }
code: public static function isHostKnownAliasHost($urlHost, $idSite)
      {
          $websiteData = Cache::getCacheWebsiteAttributes($idSite);
  
          if (isset($websiteData['hosts'])) {
              $canonicalHosts = array();
              foreach ($websiteData['hosts'] as $host) {
                  $canonicalHosts[] = self::toCanonicalHost($host);
              }
  
              $canonicalHost = self::toCanonicalHost($urlHost);
              if (in_array($canonicalHost, $canonicalHosts)) {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: public static function isHostKnownAliasHost ( $ urlHost , $ idSite ) { $ websiteData = Cache :: getCacheWebsiteAttributes ( $ idSite ) ; if ( isset ( $ websiteData [ 'hosts' ] ) ) { $ canonicalHosts = array ( ) ; foreach ( $ websiteData [ 'hosts' ] as $ host ) { $ canonicalHosts [ ] = self :: toCanonicalHost ( $ host ) ; } $ canonicalHost = self :: toCanonicalHost ( $ urlHost ) ; if ( in_array ( $ canonicalHost , $ canonicalHosts ) ) { return true ; } } return false ; }
docstring: is the host any of the registered URLs for this website?
docstring_tokens: is the host any of the registered URLs for this website?