@@ -12,7 +12,7 @@ |
||
12 | 12 | public function create(ClientInterface $client, $wsdl, RequestBuilder $httpBinding, array $options = []) |
13 | 13 | { |
14 | 14 | $interpreterPromise = $client->requestAsync('GET', $wsdl)->then( |
15 | - function (ResponseInterface $response) use ($options) { |
|
15 | + function(ResponseInterface $response) use ($options) { |
|
16 | 16 | $wsdl = $response->getBody()->getContents(); |
17 | 17 | return new Interpreter('data://text/plain;base64,' . base64_encode($wsdl), $options); |
18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | 'http://www.webservicex.net/Statistics.asmx?WSDL', |
25 | 25 | new RequestBuilder() |
26 | 26 | ); |
27 | - $response = $client->call('GetStatistics', [['X' => [1,2,3]]]); |
|
27 | + $response = $client->call('GetStatistics', [['X' => [1, 2, 3]]]); |
|
28 | 28 | $this->assertNotEmpty($response); |
29 | 29 | } |
30 | 30 | |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | new RequestBuilder() |
40 | 40 | ); |
41 | 41 | $response = null; |
42 | - $promise = $client->callAsync('GetStatistics', [['X' => [1,2,3]]])->then( |
|
43 | - function ($result) use (&$response) { |
|
42 | + $promise = $client->callAsync('GetStatistics', [['X' => [1, 2, 3]]])->then( |
|
43 | + function($result) use (&$response) { |
|
44 | 44 | $response = $result; |
45 | 45 | } |
46 | 46 | ); |
@@ -35,14 +35,14 @@ discard block |
||
35 | 35 | { |
36 | 36 | return $this->prepareRequest($name, $arguments, $options, $inputHeaders) |
37 | 37 | ->then( |
38 | - function (RequestInterface $request) { |
|
38 | + function(RequestInterface $request) { |
|
39 | 39 | return $this->client->sendAsync($request); |
40 | 40 | } |
41 | 41 | ) |
42 | 42 | ->then( |
43 | - function (ResponseInterface $response) use ($name, $output_headers) { |
|
43 | + function(ResponseInterface $response) use ($name, $output_headers) { |
|
44 | 44 | return $this->deferredInterpreter->then( |
45 | - function (Interpreter $interpreter) use ($response, $name, $output_headers) { |
|
45 | + function(Interpreter $interpreter) use ($response, $name, $output_headers) { |
|
46 | 46 | return $interpreter->response($response->getBody()->getContents(), $name, $output_headers); |
47 | 47 | } |
48 | 48 | ); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | private function prepareRequest($name, array $arguments, array $options = null, $inputHeaders = null) |
61 | 61 | { |
62 | 62 | return $this->deferredInterpreter->then( |
63 | - function (Interpreter $interpreter) use ($name, $arguments, $options, $inputHeaders) { |
|
63 | + function(Interpreter $interpreter) use ($name, $arguments, $options, $inputHeaders) { |
|
64 | 64 | $soapRequest = $interpreter->request($name, $arguments, $options, $inputHeaders); |
65 | 65 | if ($soapRequest->getSoapVersion() == '1') { |
66 | 66 | $this->httpBinding->isSOAP11(); |