Completed
Push — master ( 627e2a...ffe287 )
by Meng
02:08
created
src/SoapClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
             );
19 19
         } else {
20 20
             $interpreterPromise = $client->requestAsync('GET', $wsdl)->then(
21
-                function (ResponseInterface $response) use ($options) {
21
+                function(ResponseInterface $response) use ($options) {
22 22
                     $wsdl = $response->getBody()->__toString();
23 23
                     return new Interpreter('data://text/plain;base64,' . base64_encode($wsdl), $options);
24 24
                 }
Please login to merge, or discard this patch.