Completed
Push — master ( 8931ec...79ed05 )
by Meng
02:21
created
tests/functional/SoapClientTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 ]
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/SoapClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
     public function callAsync($name, array $arguments, array $options = null, $inputHeaders = null, array &$output_headers = null)
34 34
     {
35 35
         return $this->deferredHttpBinding->then(
36
-            function (HttpBinding $httpBinding) use ($name, $arguments, $options, $inputHeaders) {
36
+            function(HttpBinding $httpBinding) use ($name, $arguments, $options, $inputHeaders) {
37 37
                 $request = $httpBinding->request($name, $arguments, $options, $inputHeaders);
38 38
                 return $this->client->sendAsync($request);
39 39
             }
40 40
         )->then(
41
-            function (ResponseInterface $response) use ($name, $output_headers) {
41
+            function(ResponseInterface $response) use ($name, $output_headers) {
42 42
                 return $this->deferredHttpBinding->then(
43
-                    function (HttpBinding $httpBinding) use ($response, $name, $output_headers) {
43
+                    function(HttpBinding $httpBinding) use ($response, $name, $output_headers) {
44 44
                         return $httpBinding->response($response, $name, $output_headers);
45 45
                     }
46 46
                 );
Please login to merge, or discard this patch.