original_string: public function getPostBody()
      {
          $output = '';
          if ($this->isJson) {
              $jsonPretty = ($this->isJsonPretty ? JSON_PRETTY_PRINT : NULL);
              if (count($this->data) > 0) {
                  $output = json_encode($this->data, $jsonPretty);
              }
          } elseif ($this->isXML) {
              $output = $this->data;
          } elseif (count($this->data) > 0) {
              $output = http_build_query($this->data);
          }
  
          return $output;
      }
code: public function getPostBody()
      {
          $output = '';
          if ($this->isJson) {
              $jsonPretty = ($this->isJsonPretty ? JSON_PRETTY_PRINT : NULL);
              if (count($this->data) > 0) {
                  $output = json_encode($this->data, $jsonPretty);
              }
          } elseif ($this->isXML) {
              $output = $this->data;
          } elseif (count($this->data) > 0) {
              $output = http_build_query($this->data);
          }
  
          return $output;
      }
code_tokens: public function getPostBody ( ) { $ output = '' ; if ( $ this -> isJson ) { $ jsonPretty = ( $ this -> isJsonPretty ? JSON_PRETTY_PRINT : NULL ) ; if ( count ( $ this -> data ) > 0 ) { $ output = json_encode ( $ this -> data , $ jsonPretty ) ; } } elseif ( $ this -> isXML ) { $ output = $ this -> data ; } elseif ( count ( $ this -> data ) > 0 ) { $ output = http_build_query ( $ this -> data ) ; } return $ output ; }
docstring: Get the post body - either JSON encoded or ready to be sent as a form post
  
  @author: 713uk13m <dev@nguyenanhung.com>
  @time  : 10/7/18 02:19
  
  @return array|false|string Data to be sent Request
docstring_tokens: Get the post body - either JSON encoded or ready to be sent as a form post