@@ -33,9 +33,9 @@ |
||
33 | 33 | { |
34 | 34 | if ($this->isHttpUrl($wsdl)) { |
35 | 35 | $httpBindingPromise = $client->requestAsync('GET', $wsdl)->then( |
36 | - function (ResponseInterface $response) use ($streamFactory, $requestFactory, $options) { |
|
36 | + function(ResponseInterface $response) use ($streamFactory, $requestFactory, $options) { |
|
37 | 37 | $wsdl = $response->getBody()->__toString(); |
38 | - $interpreter = new Interpreter('data://text/plain;base64,' . base64_encode($wsdl), $options); |
|
38 | + $interpreter = new Interpreter('data://text/plain;base64,'.base64_encode($wsdl), $options); |
|
39 | 39 | return new HttpBinding($interpreter, new RequestBuilder($streamFactory, $requestFactory), $streamFactory); |
40 | 40 | } |
41 | 41 | ); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function callAsync($name, array $arguments, array $options = null, $inputHeaders = null, array &$outputHeaders = null) |
35 | 35 | { |
36 | 36 | return \GuzzleHttp\Promise\Coroutine::of( |
37 | - function () use ($name, $arguments, $options, $inputHeaders, &$outputHeaders) { |
|
37 | + function() use ($name, $arguments, $options, $inputHeaders, &$outputHeaders) { |
|
38 | 38 | /** @var HttpBinding $httpBinding */ |
39 | 39 | $httpBinding = (yield $this->httpBindingPromise); |
40 | 40 | $request = $httpBinding->request($name, $arguments, $options, $inputHeaders); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function wsdlFromHttpUrl() |
30 | 30 | { |
31 | 31 | $handlerMock = new MockHandler([ |
32 | - new Response('200', [], fopen(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'example.wsdl', 'r')) |
|
32 | + new Response('200', [], fopen(dirname(__FILE__).DIRECTORY_SEPARATOR.'example.wsdl', 'r')) |
|
33 | 33 | ]); |
34 | 34 | $handler = new HandlerStack($handlerMock); |
35 | 35 | $clientMock = new Client(['handler' => $handler]); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public function wsdlFromLocalFile() |
47 | 47 | { |
48 | 48 | $factory = new Factory(); |
49 | - $client = $factory->create(new Client(), new StreamFactory(), new RequestFactory(), dirname(__FILE__) . DIRECTORY_SEPARATOR . 'example.wsdl'); |
|
49 | + $client = $factory->create(new Client(), new StreamFactory(), new RequestFactory(), dirname(__FILE__).DIRECTORY_SEPARATOR.'example.wsdl'); |
|
50 | 50 | |
51 | 51 | $this->assertTrue($client instanceof SoapClient); |
52 | 52 | } |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function wsdlFromDataUri() |
58 | 58 | { |
59 | - $wsdlString = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'example.wsdl'); |
|
60 | - $wsdl = 'data://text/plain;base64,' . base64_encode($wsdlString); |
|
59 | + $wsdlString = file_get_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'example.wsdl'); |
|
60 | + $wsdl = 'data://text/plain;base64,'.base64_encode($wsdlString); |
|
61 | 61 | |
62 | 62 | $factory = new Factory(); |
63 | 63 | $client = $factory->create(new Client(), new StreamFactory(), new RequestFactory(), $wsdl); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | new Client(), |
23 | 23 | 'http://www.webservicex.net/Statistics.asmx?WSDL' |
24 | 24 | ); |
25 | - $response = $client->call('GetStatistics', [['X' => [1,2,3]]]); |
|
25 | + $response = $client->call('GetStatistics', [['X' => [1, 2, 3]]]); |
|
26 | 26 | $this->assertNotEmpty($response); |
27 | 27 | } |
28 | 28 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $response = $client->callAsync($function, $args)->wait(); |
41 | 41 | $this->assertNotEmpty($response); |
42 | 42 | foreach ($contains as $contain) { |
43 | - $this->assertArrayHasKey($contain, (array)$response); |
|
43 | + $this->assertArrayHasKey($contain, (array) $response); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'wsdl' => 'http://www.webservicex.net/Statistics.asmx?WSDL', |
52 | 52 | 'options' => [], |
53 | 53 | 'function' => 'GetStatistics', |
54 | - 'args' => [['X' => [1,2,3]]], |
|
54 | + 'args' => [['X' => [1, 2, 3]]], |
|
55 | 55 | 'contains' => [ |
56 | 56 | 'Sums', 'Average', 'StandardDeviation', 'skewness', 'Kurtosis' |
57 | 57 | ] |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'wsdl' => 'http://www.webservicex.net/Statistics.asmx?WSDL', |
61 | 61 | 'options' => ['soap_version' => SOAP_1_2], |
62 | 62 | 'function' => 'GetStatistics', |
63 | - 'args' => [['X' => [1,2,3]]], |
|
63 | + 'args' => [['X' => [1, 2, 3]]], |
|
64 | 64 | 'contains' => [ |
65 | 65 | 'Sums', 'Average', 'StandardDeviation', 'skewness', 'Kurtosis' |
66 | 66 | ] |