@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @param array $options Supported options: location, uri, style, use, soap_version, encoding, |
13 | 13 | * exceptions, classmap, typemap, cache_wsdl and feature. |
14 | 14 | */ |
15 | - public function __construct($wsdl, array $options = []) |
|
15 | + public function __construct($wsdl, array $options = [ ]) |
|
16 | 16 | { |
17 | 17 | $this->soap = new Soap($wsdl, $options); |
18 | 18 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @param mixed $input_headers An array of headers to be interpreted along with the SOAP request. |
30 | 30 | * @return SoapRequest |
31 | 31 | */ |
32 | - public function request($function_name, array $arguments = [], array $options = null, $input_headers = null) |
|
32 | + public function request($function_name, array $arguments = [ ], array $options = null, $input_headers = null) |
|
33 | 33 | { |
34 | 34 | return $this->soap->request($function_name, $arguments, $options, $input_headers); |
35 | 35 | } |
@@ -15,22 +15,22 @@ discard block |
||
15 | 15 | |
16 | 16 | public function __construct($wsdl, array $options) |
17 | 17 | { |
18 | - unset($options['login']); |
|
19 | - unset($options['password']); |
|
20 | - unset($options['proxy_host']); |
|
21 | - unset($options['proxy_port']); |
|
22 | - unset($options['proxy_login']); |
|
23 | - unset($options['proxy_password']); |
|
24 | - unset($options['local_cert']); |
|
25 | - unset($options['passphrase']); |
|
26 | - unset($options['authentication']); |
|
27 | - unset($options['compression']); |
|
28 | - unset($options['trace']); |
|
29 | - unset($options['connection_timeout']); |
|
30 | - unset($options['user_agent']); |
|
31 | - unset($options['stream_context']); |
|
32 | - unset($options['keep_alive']); |
|
33 | - unset($options['ssl_method']); |
|
18 | + unset($options[ 'login' ]); |
|
19 | + unset($options[ 'password' ]); |
|
20 | + unset($options[ 'proxy_host' ]); |
|
21 | + unset($options[ 'proxy_port' ]); |
|
22 | + unset($options[ 'proxy_login' ]); |
|
23 | + unset($options[ 'proxy_password' ]); |
|
24 | + unset($options[ 'local_cert' ]); |
|
25 | + unset($options[ 'passphrase' ]); |
|
26 | + unset($options[ 'authentication' ]); |
|
27 | + unset($options[ 'compression' ]); |
|
28 | + unset($options[ 'trace' ]); |
|
29 | + unset($options[ 'connection_timeout' ]); |
|
30 | + unset($options[ 'user_agent' ]); |
|
31 | + unset($options[ 'stream_context' ]); |
|
32 | + unset($options[ 'keep_alive' ]); |
|
33 | + unset($options[ 'ssl_method' ]); |
|
34 | 34 | parent::__construct($wsdl, $options); |
35 | 35 | } |
36 | 36 | |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | //not using stristr function twice because not supported in php 5.2 as shown below |
60 | 60 | //$response = stristr(stristr($response, "<s:"), "</s:Envelope>", true) . "</s:Envelope>"; |
61 | 61 | $tempstr = stristr($response, "<soap:"); |
62 | - $response = substr($tempstr, 0, strpos($tempstr, "</soap:Envelope>")) . "</soap:Envelope>"; |
|
62 | + $response = substr($tempstr, 0, strpos($tempstr, "</soap:Envelope>"))."</soap:Envelope>"; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | $this->soapResponse = $response; |
66 | 66 | try { |
67 | - $response = $this->__soapCall($function_name, [], null, null, $output_headers); |
|
67 | + $response = $this->__soapCall($function_name, [ ], null, null, $output_headers); |
|
68 | 68 | } catch (\SoapFault $fault) { |
69 | 69 | $this->soapResponse = null; |
70 | 70 | throw $fault; |