original_string: protected function preparePostRequest(RequestInterface $request, $data)
      {
          if ($data !== null) {
              // Add the POST data to the request.
              $request->setOption(CURLOPT_POST, true);
              $request->setOption(CURLOPT_POSTFIELDS, $data);
          } else {
              $request->setOption(CURLOPT_CUSTOMREQUEST, 'POST');
          }
      }
code: protected function preparePostRequest(RequestInterface $request, $data)
      {
          if ($data !== null) {
              // Add the POST data to the request.
              $request->setOption(CURLOPT_POST, true);
              $request->setOption(CURLOPT_POSTFIELDS, $data);
          } else {
              $request->setOption(CURLOPT_CUSTOMREQUEST, 'POST');
          }
      }
code_tokens: protected function preparePostRequest ( RequestInterface $ request , $ data ) { if ( $ data !== null ) { // Add the POST data to the request. $ request -> setOption ( CURLOPT_POST , true ) ; $ request -> setOption ( CURLOPT_POSTFIELDS , $ data ) ; } else { $ request -> setOption ( CURLOPT_CUSTOMREQUEST , 'POST' ) ; } }
docstring: Sets a request's HTTP verb to POST.
  
  @param RequestInterface $request
docstring_tokens: Sets a request s HTTP verb to POST .