Completed
Push — master ( 59e50d...c35625 )
by Meng
02:00
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   +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/SoapClientTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             new RequestBuilder(),
26 26
             'http://www.webservicex.net/Statistics.asmx?WSDL'
27 27
         );
28
-        $response = $client->call('GetStatistics', [['X' => [1,2,3]]]);
28
+        $response = $client->call('GetStatistics', [['X' => [1, 2, 3]]]);
29 29
         $this->assertNotEmpty($response);
30 30
     }
31 31
 
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
         );
44 44
         $response = null;
45 45
         $promise = $client->callAsync($function, $args)->then(
46
-            function ($result) use (&$response) {
46
+            function($result) use (&$response) {
47 47
                 $response = $result;
48 48
             }
49 49
         );
50 50
         $promise->wait();
51 51
         $this->assertNotEmpty($response);
52 52
         foreach ($contains as $contain) {
53
-            $this->assertArrayHasKey($contain, (array)$response);
53
+            $this->assertArrayHasKey($contain, (array) $response);
54 54
         }
55 55
     }
56 56
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 'wsdl' => 'http://www.webservicex.net/Statistics.asmx?WSDL',
62 62
                 'options' => [],
63 63
                 'function' => 'GetStatistics',
64
-                'args' => [['X' => [1,2,3]]],
64
+                'args' => [['X' => [1, 2, 3]]],
65 65
                 'contains' => [
66 66
                     'Sums', 'Average', 'StandardDeviation', 'skewness', 'Kurtosis'
67 67
                 ]
Please login to merge, or discard this patch.