@@ -33,7 +33,7 @@ |
||
33 | 33 | public function callAsync($name, array $arguments, array $options = null, $inputHeaders = null, array &$outputHeaders = null) |
34 | 34 | { |
35 | 35 | return \GuzzleHttp\Promise\coroutine( |
36 | - function () use ($name, $arguments, $options, $inputHeaders, &$outputHeaders) { |
|
36 | + function() use ($name, $arguments, $options, $inputHeaders, &$outputHeaders) { |
|
37 | 37 | /** @var HttpBinding $httpBinding */ |
38 | 38 | $httpBinding = (yield $this->deferredHttpBinding); |
39 | 39 | $request = $httpBinding->request($name, $arguments, $options, $inputHeaders); |
@@ -56,6 +56,9 @@ |
||
56 | 56 | ); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @param string $name |
|
61 | + */ |
|
59 | 62 | private function parseResponse(HttpBinding $httpBinding, ResponseInterface $response, $name, &$outputHeaders) |
60 | 63 | { |
61 | 64 | try { |
@@ -32,15 +32,15 @@ |
||
32 | 32 | } elseif ('<' === $wsdlOrWsdlUrl[0]) { |
33 | 33 | $httpBindingPromise = new FulfilledPromise( |
34 | 34 | new HttpBinding( |
35 | - new Interpreter('data://text/plain;base64,' . base64_encode($wsdlOrWsdlUrl), $options), |
|
35 | + new Interpreter('data://text/plain;base64,'.base64_encode($wsdlOrWsdlUrl), $options), |
|
36 | 36 | new RequestBuilder |
37 | 37 | ) |
38 | 38 | ); |
39 | 39 | } else { |
40 | 40 | $httpBindingPromise = $client->requestAsync('GET', $wsdlOrWsdlUrl)->then( |
41 | - function (ResponseInterface $response) use ($options) { |
|
41 | + function(ResponseInterface $response) use ($options) { |
|
42 | 42 | $wsdl = $response->getBody()->__toString(); |
43 | - $interpreter = new Interpreter('data://text/plain;base64,' . base64_encode($wsdl), $options); |
|
43 | + $interpreter = new Interpreter('data://text/plain;base64,'.base64_encode($wsdl), $options); |
|
44 | 44 | return new HttpBinding($interpreter, new RequestBuilder); |
45 | 45 | } |
46 | 46 | ); |