@@ -387,9 +387,9 @@ discard block |
||
| 387 | 387 | ); |
| 388 | 388 | } |
| 389 | 389 | $this->certsdir = $this->certificate->getCnpj() . '/certs/'; |
| 390 | - $this->prifile = $this->certsdir. Strings::randomString(10).'.pem'; |
|
| 391 | - $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem'; |
|
| 392 | - $this->certfile = $this->certsdir . Strings::randomString(10).'.pem'; |
|
| 390 | + $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
| 391 | + $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
| 392 | + $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
| 393 | 393 | $ret = true; |
| 394 | 394 | $private = $this->certificate->privateKey; |
| 395 | 395 | if ($this->encriptPrivateKey) { |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | ); |
| 415 | 415 | $ret &= $this->filesystem->put( |
| 416 | 416 | $this->certfile, |
| 417 | - $private."{$this->certificate}" |
|
| 417 | + $private . "{$this->certificate}" |
|
| 418 | 418 | ); |
| 419 | 419 | if (!$ret) { |
| 420 | 420 | throw new RuntimeException( |
@@ -440,7 +440,7 @@ discard block |
||
| 440 | 440 | //utilize a API. Outra solução para remover arquivos "perdidos" pode ser |
| 441 | 441 | //encontrada oportunamente. |
| 442 | 442 | $dt = new \DateTime(); |
| 443 | - $tint = new \DateInterval("PT".$this->waitingTime."M"); |
|
| 443 | + $tint = new \DateInterval("PT" . $this->waitingTime . "M"); |
|
| 444 | 444 | $tint->invert = true; |
| 445 | 445 | $tsLimit = $dt->add($tint)->getTimestamp(); |
| 446 | 446 | foreach ($contents as $item) { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
| 99 | 99 | } |
| 100 | 100 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1); |
| 101 | - if (! empty($envelope)) { |
|
| 101 | + if (!empty($envelope)) { |
|
| 102 | 102 | curl_setopt($oCurl, CURLOPT_POST, 1); |
| 103 | 103 | curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope); |
| 104 | 104 | curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters); |
@@ -140,9 +140,9 @@ discard block |
||
| 140 | 140 | if ($this->proxyIP != '') { |
| 141 | 141 | curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1); |
| 142 | 142 | curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); |
| 143 | - curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort); |
|
| 143 | + curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort); |
|
| 144 | 144 | if ($this->proxyUser != '') { |
| 145 | - curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass); |
|
| 145 | + curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass); |
|
| 146 | 146 | curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); |
| 147 | 147 | } |
| 148 | 148 | } |