Completed
Push — master ( c2e2b8...acecd3 )
by Meng
03:52
created
src/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/SoapClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     {
30 30
         $response = null;
31 31
         $callPromise = $this->callAsync($name, $arguments, $options, $inputHeaders, $outputHeaders)->then(
32
-            function ($result) use (&$response) {
32
+            function($result) use (&$response) {
33 33
                 $response = $result;
34 34
             }
35 35
         );
@@ -41,14 +41,14 @@  discard block
 block discarded – undo
41 41
     {
42 42
         return $this->prepareRequest($name, $arguments, $options, $inputHeaders)
43 43
             ->then(
44
-                function (RequestInterface $request) {
44
+                function(RequestInterface $request) {
45 45
                     return $this->client->sendAsync($request);
46 46
                 }
47 47
             )
48 48
             ->then(
49
-                function (ResponseInterface $response) use ($name, $output_headers) {
49
+                function(ResponseInterface $response) use ($name, $output_headers) {
50 50
                     return $this->deferredInterpreter->then(
51
-                        function (Interpreter $interpreter) use ($response, $name, $output_headers) {
51
+                        function(Interpreter $interpreter) use ($response, $name, $output_headers) {
52 52
                             return $interpreter->response($response->getBody()->getContents(), $name, $output_headers);
53 53
                         }
54 54
                     );
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     private function prepareRequest($name, array $arguments, array $options = null, $inputHeaders = null)
67 67
     {
68 68
         return $this->deferredInterpreter->then(
69
-            function (Interpreter $interpreter) use ($name, $arguments, $options, $inputHeaders) {
69
+            function(Interpreter $interpreter) use ($name, $arguments, $options, $inputHeaders) {
70 70
                 $soapRequest = $interpreter->request($name, $arguments, $options, $inputHeaders);
71 71
                 if ($soapRequest->getSoapVersion() == '1') {
72 72
                     $this->httpBinding->isSOAP11();
Please login to merge, or discard this patch.
tests/SoapClientTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.