original_string: public function authenticate($method, $arguments)
      {
          $handlers = $this->filterHandlers($method, $arguments);
  
          if (count($handlers) > 0) {
              foreach ($handlers as $handler) {
                  $isAuthenticated = $handler->authenticate($method, $arguments);
  
                  if ($isAuthenticated) {
                      return;
                  }
              }
  
              throw new InvalidAuth();
          } else {
              throw new MissingAuth();
          }
      }
code: public function authenticate($method, $arguments)
      {
          $handlers = $this->filterHandlers($method, $arguments);
  
          if (count($handlers) > 0) {
              foreach ($handlers as $handler) {
                  $isAuthenticated = $handler->authenticate($method, $arguments);
  
                  if ($isAuthenticated) {
                      return;
                  }
              }
  
              throw new InvalidAuth();
          } else {
              throw new MissingAuth();
          }
      }
code_tokens: public function authenticate ( $ method , $ arguments ) { $ handlers = $ this -> filterHandlers ( $ method , $ arguments ) ; if ( count ( $ handlers ) > 0 ) { foreach ( $ handlers as $ handler ) { $ isAuthenticated = $ handler -> authenticate ( $ method , $ arguments ) ; if ( $ isAuthenticated ) { return ; } } throw new InvalidAuth ( ) ; } else { throw new MissingAuth ( ) ; } }
docstring: Attempt to authorize a request. This will iterate over all authentication handlers that can handle this type of
  request. It will stop after it has found one that can authenticate the request.
  
  @param string $method JSON-RPC method name
  @param array $arguments JSON-RPC arguments array (positional or associative)
  @throws MissingAuth If the no credentials are given
  @throws InvalidAuth If the given credentials are invalid
docstring_tokens: Attempt to authorize a request . This will iterate over all authentication handlers that can handle this type of request . It will stop after it has found one that can authenticate the request .