@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Set security protocol |
277 | 277 | * @param int $protocol |
278 | - * @return type Description |
|
278 | + * @return integer Description |
|
279 | 279 | */ |
280 | 280 | public function protocol($protocol = self::SSL_DEFAULT) |
281 | 281 | { |
@@ -327,6 +327,7 @@ discard block |
||
327 | 327 | * @param string $operation |
328 | 328 | * @param array $namespaces |
329 | 329 | * @param \SOAPHeader $header |
330 | + * @param integer $soapver |
|
330 | 331 | * @return string |
331 | 332 | */ |
332 | 333 | protected function makeEnvelopeSoap( |
@@ -370,9 +370,9 @@ |
||
370 | 370 | ); |
371 | 371 | } |
372 | 372 | $this->certsdir = $this->certificate->getCnpj() . '/certs/'; |
373 | - $this->prifile = $this->certsdir. Strings::randomString(10).'.pem'; |
|
374 | - $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem'; |
|
375 | - $this->certfile = $this->certsdir . Strings::randomString(10).'.pem'; |
|
373 | + $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
374 | + $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
375 | + $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
376 | 376 | $ret = true; |
377 | 377 | //cria uma senha temporária ALEATÓRIA para salvar a chave primaria |
378 | 378 | //portanto mesmo que localizada e identificada não estará acessível |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | curl_setopt($oCurl, CURLOPT_SSLKEY, $this->tempdir . $this->prifile); |
98 | 98 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
99 | 99 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1); |
100 | - if (! empty($envelope)) { |
|
100 | + if (!empty($envelope)) { |
|
101 | 101 | curl_setopt($oCurl, CURLOPT_POST, 1); |
102 | 102 | curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope); |
103 | 103 | curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters); |
@@ -136,9 +136,9 @@ discard block |
||
136 | 136 | if ($this->proxyIP != '') { |
137 | 137 | curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1); |
138 | 138 | curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); |
139 | - curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort); |
|
139 | + curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort); |
|
140 | 140 | if ($this->proxyUser != '') { |
141 | - curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass); |
|
141 | + curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass); |
|
142 | 142 | curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); |
143 | 143 | } |
144 | 144 | } |