original_string: protected function prepareBody(array $query)
      {
          $method = isset($query['from']['method']) ? $query['from']['method'] : null;
  
          if ($method === 'POST') {
              // The query grammar already parsed the body for us.
              // We return the value of the query and guzzle does the rest.
              return isset($query['body']) ? $query['body'] : null;
          }
      }
code: protected function prepareBody(array $query)
      {
          $method = isset($query['from']['method']) ? $query['from']['method'] : null;
  
          if ($method === 'POST') {
              // The query grammar already parsed the body for us.
              // We return the value of the query and guzzle does the rest.
              return isset($query['body']) ? $query['body'] : null;
          }
      }
code_tokens: protected function prepareBody ( array $ query ) { $ method = isset ( $ query [ 'from' ] [ 'method' ] ) ? $ query [ 'from' ] [ 'method' ] : null ; if ( $ method === 'POST' ) { // The query grammar already parsed the body for us. // We return the value of the query and guzzle does the rest. return isset ( $ query [ 'body' ] ) ? $ query [ 'body' ] : null ; } }
docstring: Prepare body from query.
  
  @param  array  $query
  @return string|array|null
docstring_tokens: Prepare body from query .