@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | new RequestBuilder(), |
| 25 | 25 | 'http://www.webservicex.net/Statistics.asmx?WSDL' |
| 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 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $response = $client->callAsync($function, $args)->wait(); |
| 44 | 44 | $this->assertNotEmpty($response); |
| 45 | 45 | foreach ($contains as $contain) { |
| 46 | - $this->assertArrayHasKey($contain, (array)$response); |
|
| 46 | + $this->assertArrayHasKey($contain, (array) $response); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | 'wsdl' => 'http://www.webservicex.net/Statistics.asmx?WSDL', |
| 55 | 55 | 'options' => [], |
| 56 | 56 | 'function' => 'GetStatistics', |
| 57 | - 'args' => [['X' => [1,2,3]]], |
|
| 57 | + 'args' => [['X' => [1, 2, 3]]], |
|
| 58 | 58 | 'contains' => [ |
| 59 | 59 | 'Sums', 'Average', 'StandardDeviation', 'skewness', 'Kurtosis' |
| 60 | 60 | ] |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | 'wsdl' => 'http://www.webservicex.net/Statistics.asmx?WSDL', |
| 64 | 64 | 'options' => ['soap_version' => SOAP_1_2], |
| 65 | 65 | 'function' => 'GetStatistics', |
| 66 | - 'args' => [['X' => [1,2,3]]], |
|
| 66 | + 'args' => [['X' => [1, 2, 3]]], |
|
| 67 | 67 | 'contains' => [ |
| 68 | 68 | 'Sums', 'Average', 'StandardDeviation', 'skewness', 'Kurtosis' |
| 69 | 69 | ] |
@@ -19,9 +19,9 @@ |
||
| 19 | 19 | ); |
| 20 | 20 | } else { |
| 21 | 21 | $httpBindingPromise = $client->requestAsync('GET', $wsdl)->then( |
| 22 | - function (ResponseInterface $response) use ($options) { |
|
| 22 | + function(ResponseInterface $response) use ($options) { |
|
| 23 | 23 | $wsdl = $response->getBody()->__toString(); |
| 24 | - $interpreter = new Interpreter('data://text/plain;base64,' . base64_encode($wsdl), $options); |
|
| 24 | + $interpreter = new Interpreter('data://text/plain;base64,'.base64_encode($wsdl), $options); |
|
| 25 | 25 | return new HttpBinding($interpreter, new RequestBuilder); |
| 26 | 26 | } |
| 27 | 27 | ); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function callAsync($name, array $arguments, array $options = null, $inputHeaders = null, array &$output_headers = null) |
| 34 | 34 | { |
| 35 | 35 | return \GuzzleHttp\Promise\coroutine( |
| 36 | - function () use ($name, $arguments, $options, $inputHeaders, $output_headers) { |
|
| 36 | + function() use ($name, $arguments, $options, $inputHeaders, $output_headers) { |
|
| 37 | 37 | /** @var HttpBinding $httpBinding */ |
| 38 | 38 | $httpBinding = (yield $this->deferredHttpBinding); |
| 39 | 39 | $request = $httpBinding->request($name, $arguments, $options, $inputHeaders); |