original_string: protected static function _matchAgentAgainstSignatures($userAgent, $signatures)
      {
          $userAgent = strtolower($userAgent);
          foreach ($signatures as $signature) {
              if (!empty($signature)) {
                  if (strpos($userAgent, $signature) !== false) {
                      // Browser signature was found in user agent string
                      return true;
                  }
              }
          }
          return false;
      }
code: protected static function _matchAgentAgainstSignatures($userAgent, $signatures)
      {
          $userAgent = strtolower($userAgent);
          foreach ($signatures as $signature) {
              if (!empty($signature)) {
                  if (strpos($userAgent, $signature) !== false) {
                      // Browser signature was found in user agent string
                      return true;
                  }
              }
          }
          return false;
      }
code_tokens: protected static function _matchAgentAgainstSignatures ( $ userAgent , $ signatures ) { $ userAgent = strtolower ( $ userAgent ) ; foreach ( $ signatures as $ signature ) { if ( ! empty ( $ signature ) ) { if ( strpos ( $ userAgent , $ signature ) !== false ) { // Browser signature was found in user agent string return true ; } } } return false ; }
docstring: Match a user agent string against a list of signatures
  
  @param  string $userAgent
  @param  array $signatures
  @return bool
docstring_tokens: Match a user agent string against a list of signatures