original_string: public function prepareRequest($method, array $params = [])
      {
          $request = [
              'jsonrpc' => '2.0',
              'method'  => $method,
              'id'      => mt_rand()
          ];
  
          $request['params'] = $params ? $params : [];
  
          /*$request['params'] = array_merge($request['params'], $this->params);*/
          return $request;
      }
code: public function prepareRequest($method, array $params = [])
      {
          $request = [
              'jsonrpc' => '2.0',
              'method'  => $method,
              'id'      => mt_rand()
          ];
  
          $request['params'] = $params ? $params : [];
  
          /*$request['params'] = array_merge($request['params'], $this->params);*/
          return $request;
      }
code_tokens: public function prepareRequest ( $ method , array $ params = [ ] ) { $ request = [ 'jsonrpc' => '2.0' , 'method' => $ method , 'id' => mt_rand ( ) ] ; $ request [ 'params' ] = $ params ? $ params : [ ] ; /*$request['params'] = array_merge($request['params'], $this->params);*/ return $ request ; }
docstring: prepare a json rpc request array
  
  @param $method
  @param array $params
  @return array
docstring_tokens: prepare a json rpc request array