@@ -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 | |
@@ -57,17 +57,17 @@ discard block |
||
57 | 57 | { |
58 | 58 | $this->soapResponse = $response; |
59 | 59 | try { |
60 | - $response = $this->__soapCall($function_name, [], null, null, $output_headers); |
|
60 | + $response = $this->__soapCall($function_name, [ ], null, null, $output_headers); |
|
61 | 61 | } catch (\SoapFault $fault) { |
62 | 62 | if ($fault->getMessage() === 'looks like we got no XML document') { |
63 | 63 | preg_match("/(<[\w-_]+:Envelope.*<\/[\w-_]+:Envelope>)/", $response, $matches); |
64 | - if (empty($matches[1])) { |
|
64 | + if (empty($matches[ 1 ])) { |
|
65 | 65 | $this->soapResponse = null; |
66 | 66 | |
67 | 67 | throw $fault; |
68 | 68 | } else { |
69 | - $this->soapResponse = $matches[1]; |
|
70 | - $response = $this->__soapCall($function_name, [], null, null, $output_headers); |
|
69 | + $this->soapResponse = $matches[ 1 ]; |
|
70 | + $response = $this->__soapCall($function_name, [ ], null, null, $output_headers); |
|
71 | 71 | } |
72 | 72 | } else { |
73 | 73 | $this->soapResponse = null; |