`$xml = $request->saveXML();` → `$xml=$request->saveXML();`. Please fix all the other CS and consistency issues in your patch. We're trying to stick to agreements as strictly as possible, isn't it? :-)