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;
        }
    }
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;
        }
    }
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 ; } }
Prepare body from query.

@param  array  $query
@return string|array|null
Prepare body from query .