original_string: protected function isUserAgentExcluded()
      {
          $excludedAgents = $this->getAttributes('excluded_user_agents', 'global_excluded_user_agents');
  
          if (!empty($excludedAgents)) {
              foreach ($excludedAgents as $excludedUserAgent) {
                  // if the excluded user agent string part is in this visit's user agent, this visit should be excluded
                  if (stripos($this->userAgent, $excludedUserAgent) !== false) {
                      return true;
                  }
              }
          }
  
          return false;
      }
code: protected function isUserAgentExcluded()
      {
          $excludedAgents = $this->getAttributes('excluded_user_agents', 'global_excluded_user_agents');
  
          if (!empty($excludedAgents)) {
              foreach ($excludedAgents as $excludedUserAgent) {
                  // if the excluded user agent string part is in this visit's user agent, this visit should be excluded
                  if (stripos($this->userAgent, $excludedUserAgent) !== false) {
                      return true;
                  }
              }
          }
  
          return false;
      }
code_tokens: protected function isUserAgentExcluded ( ) { $ excludedAgents = $ this -> getAttributes ( 'excluded_user_agents' , 'global_excluded_user_agents' ) ; if ( ! empty ( $ excludedAgents ) ) { foreach ( $ excludedAgents as $ excludedUserAgent ) { // if the excluded user agent string part is in this visit's user agent, this visit should be excluded if ( stripos ( $ this -> userAgent , $ excludedUserAgent ) !== false ) { return true ; } } } return false ; }
docstring: Returns true if the specified user agent should be excluded for the current site or not.
  
  Visits whose user agent string contains one of the excluded_user_agents strings for the
  site being tracked (or one of the global strings) will be excluded.
  
  @internal param string $this ->userAgent The user agent string.
  @return bool
docstring_tokens: Returns true if the specified user agent should be excluded for the current site or not .