original_string: protected function isUrlExcluded()
      {
          $excludedUrls = $this->getAttributes('exclude_unknown_urls', null);
          $siteUrls = $this->getAttributes('urls', null);
  
          if (!empty($excludedUrls) && !empty($siteUrls)) {
              $url = $this->request->getParam('url');
              $parsedUrl = parse_url($url);
  
              $trackingUrl = new SiteUrls();
              $urls = $trackingUrl->groupUrlsByHost(array($this->idSite => $siteUrls));
  
              $idSites = $trackingUrl->getIdSitesMatchingUrl($parsedUrl, $urls);
              $isUrlExcluded = !isset($idSites) || !in_array($this->idSite, $idSites);
  
              return $isUrlExcluded;
          }
  
          return false;
      }
code: protected function isUrlExcluded()
      {
          $excludedUrls = $this->getAttributes('exclude_unknown_urls', null);
          $siteUrls = $this->getAttributes('urls', null);
  
          if (!empty($excludedUrls) && !empty($siteUrls)) {
              $url = $this->request->getParam('url');
              $parsedUrl = parse_url($url);
  
              $trackingUrl = new SiteUrls();
              $urls = $trackingUrl->groupUrlsByHost(array($this->idSite => $siteUrls));
  
              $idSites = $trackingUrl->getIdSitesMatchingUrl($parsedUrl, $urls);
              $isUrlExcluded = !isset($idSites) || !in_array($this->idSite, $idSites);
  
              return $isUrlExcluded;
          }
  
          return false;
      }
code_tokens: protected function isUrlExcluded ( ) { $ excludedUrls = $ this -> getAttributes ( 'exclude_unknown_urls' , null ) ; $ siteUrls = $ this -> getAttributes ( 'urls' , null ) ; if ( ! empty ( $ excludedUrls ) && ! empty ( $ siteUrls ) ) { $ url = $ this -> request -> getParam ( 'url' ) ; $ parsedUrl = parse_url ( $ url ) ; $ trackingUrl = new SiteUrls ( ) ; $ urls = $ trackingUrl -> groupUrlsByHost ( array ( $ this -> idSite => $ siteUrls ) ) ; $ idSites = $ trackingUrl -> getIdSitesMatchingUrl ( $ parsedUrl , $ urls ) ; $ isUrlExcluded = ! isset ( $ idSites ) || ! in_array ( $ this -> idSite , $ idSites ) ; return $ isUrlExcluded ; } return false ; }
docstring: Checks if request URL is excluded
  @return bool
docstring_tokens: Checks if request URL is excluded