private function prepareHttpMethod($method){
       $trimmedMethod = trim($method);
       $upperMethod = strtoupper($trimmedMethod);
       return rawurlencode($method);
  }
private function prepareHttpMethod($method){
       $trimmedMethod = trim($method);
       $upperMethod = strtoupper($trimmedMethod);
       return rawurlencode($method);
  }
private function prepareHttpMethod ( $ method ) { $ trimmedMethod = trim ( $ method ) ; $ upperMethod = strtoupper ( $ trimmedMethod ) ; return rawurlencode ( $ method ) ; }
Helper method to format the HTTP method
@param String $method    The Post or Get
@return String    The formatted HTTP method
Helper method to format the HTTP method