original_string: public function invokeRemote($uri, $method, $parameters = array())
      {
          $remoteClient = $this->getRemoteClient();
  
          // Make request.
          $request = call_user_func_array(array($remoteClient, $method), array($uri, null, $parameters));
  
          // Send request.
          $response = $request->send();
  
          // Body responsed.
          $body = (string) $response->getBody();
  
          // Decode json content.
          if ($response->getContentType() == 'application/json')
          {
              if (function_exists('json_decode') and is_string($body))
              {
                  $body = json_decode($body, true);
              }
          }
  
          return $body;
      }
code: public function invokeRemote($uri, $method, $parameters = array())
      {
          $remoteClient = $this->getRemoteClient();
  
          // Make request.
          $request = call_user_func_array(array($remoteClient, $method), array($uri, null, $parameters));
  
          // Send request.
          $response = $request->send();
  
          // Body responsed.
          $body = (string) $response->getBody();
  
          // Decode json content.
          if ($response->getContentType() == 'application/json')
          {
              if (function_exists('json_decode') and is_string($body))
              {
                  $body = json_decode($body, true);
              }
          }
  
          return $body;
      }
code_tokens: public function invokeRemote ( $ uri , $ method , $ parameters = array ( ) ) { $ remoteClient = $ this -> getRemoteClient ( ) ; // Make request. $ request = call_user_func_array ( array ( $ remoteClient , $ method ) , array ( $ uri , null , $ parameters ) ) ; // Send request. $ response = $ request -> send ( ) ; // Body responsed. $ body = ( string ) $ response -> getBody ( ) ; // Decode json content. if ( $ response -> getContentType ( ) == 'application/json' ) { if ( function_exists ( 'json_decode' ) and is_string ( $ body ) ) { $ body = json_decode ( $ body , true ) ; } } return $ body ; }
docstring: Invoke with remote uri.
  
  @param  string $uri
  @param  string $method
  @param  array  $parameters
  @return mixed
docstring_tokens: Invoke with remote uri .