original_string: protected function compileBody(Builder $query)
      {
          $body = [];
  
          $hasBody = !is_null($query->body);
  
          if ($hasBody) {
              foreach ($query->body as $postField) {
                  $body[$postField['column']] = $postField['value'];
              }
  
              if (count($body) > 0) {
                  return $body;
              }
          }
  
          return '';
      }
code: protected function compileBody(Builder $query)
      {
          $body = [];
  
          $hasBody = !is_null($query->body);
  
          if ($hasBody) {
              foreach ($query->body as $postField) {
                  $body[$postField['column']] = $postField['value'];
              }
  
              if (count($body) > 0) {
                  return $body;
              }
          }
  
          return '';
      }
code_tokens: protected function compileBody ( Builder $ query ) { $ body = [ ] ; $ hasBody = ! is_null ( $ query -> body ) ; if ( $ hasBody ) { foreach ( $ query -> body as $ postField ) { $ body [ $ postField [ 'column' ] ] = $ postField [ 'value' ] ; } if ( count ( $ body ) > 0 ) { return $ body ; } } return '' ; }
docstring: Compile the "body" portions of the query.
  
  @param  \Kevindierkx\Elicit\Query\Builder $query
  @return string
docstring_tokens: Compile the body portions of the query .