@@ -62,20 +62,20 @@ discard block |
||
| 62 | 62 | curl_setopt($oCurl, CURLOPT_HEADER, 1); |
| 63 | 63 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0); |
| 64 | 64 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0); |
| 65 | - if (! $this->disablesec) { |
|
| 65 | + if (!$this->disablesec) { |
|
| 66 | 66 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 2); |
| 67 | 67 | if (is_file($this->casefaz)) { |
| 68 | 68 | curl_setopt($oCurl, CURLOPT_CAINFO, $this->casefaz); |
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | curl_setopt($oCurl, CURLOPT_SSLVERSION, $this->soapprotocol); |
| 72 | - curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir.$this->certfile); |
|
| 73 | - curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir.$this->prifile); |
|
| 74 | - if (! empty($this->temppass)) { |
|
| 72 | + curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile); |
|
| 73 | + curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile); |
|
| 74 | + if (!empty($this->temppass)) { |
|
| 75 | 75 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
| 76 | 76 | } |
| 77 | 77 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true); |
| 78 | - if (! empty($envelope)) { |
|
| 78 | + if (!empty($envelope)) { |
|
| 79 | 79 | curl_setopt($oCurl, CURLOPT_POST, true); |
| 80 | 80 | curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope); |
| 81 | 81 | curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters); |
@@ -94,8 +94,8 @@ discard block |
||
| 94 | 94 | $this->responseBody = trim(substr($response, $headsize)); |
| 95 | 95 | $this->saveDebugFiles( |
| 96 | 96 | $operation, |
| 97 | - $this->requestHead."\n".$this->requestBody, |
|
| 98 | - $this->responseHead."\n".$this->responseBody |
|
| 97 | + $this->requestHead . "\n" . $this->requestBody, |
|
| 98 | + $this->responseHead . "\n" . $this->responseBody |
|
| 99 | 99 | ); |
| 100 | 100 | } catch (\Exception $e) { |
| 101 | 101 | throw SoapException::unableToLoadCurl($e->getMessage()); |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | if (intval($this->soaperror_code) == 0) { |
| 105 | 105 | $this->soaperror_code = 7; |
| 106 | 106 | } |
| 107 | - throw SoapException::soapFault($this->soaperror." [$url]", $this->soaperror_code); |
|
| 107 | + throw SoapException::soapFault($this->soaperror . " [$url]", $this->soaperror_code); |
|
| 108 | 108 | } |
| 109 | 109 | if ($httpcode != 200) { |
| 110 | 110 | if (intval($httpcode) == 0) { |
@@ -123,9 +123,9 @@ discard block |
||
| 123 | 123 | if ($this->proxyIP != '') { |
| 124 | 124 | curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1); |
| 125 | 125 | curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); |
| 126 | - curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort); |
|
| 126 | + curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort); |
|
| 127 | 127 | if ($this->proxyUser != '') { |
| 128 | - curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass); |
|
| 128 | + curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass); |
|
| 129 | 129 | curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); |
| 130 | 130 | } |
| 131 | 131 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $dom->preserveWhiteSpace = false; |
| 146 | 146 | $dom->loadXML($body); |
| 147 | 147 | $faultstring = ''; |
| 148 | - $nodefault = ! empty($dom->getElementsByTagName('faultstring')->item(0)) |
|
| 148 | + $nodefault = !empty($dom->getElementsByTagName('faultstring')->item(0)) |
|
| 149 | 149 | ? $dom->getElementsByTagName('faultstring')->item(0) |
| 150 | 150 | : ''; |
| 151 | 151 | if (!empty($nodefault)) { |
@@ -171,9 +171,9 @@ discard block |
||
| 171 | 171 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYHOST, 0); |
| 172 | 172 | curl_setopt($oCurl, CURLOPT_SSL_VERIFYPEER, 0); |
| 173 | 173 | curl_setopt($oCurl, CURLOPT_SSLVERSION, $this->soapprotocol); |
| 174 | - curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir.$this->certfile); |
|
| 175 | - curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir.$this->prifile); |
|
| 176 | - if (! empty($this->temppass)) { |
|
| 174 | + curl_setopt($oCurl, CURLOPT_SSLCERT, $this->tempdir . $this->certfile); |
|
| 175 | + curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile); |
|
| 176 | + if (!empty($this->temppass)) { |
|
| 177 | 177 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
| 178 | 178 | } |
| 179 | 179 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true); |