@@ -78,7 +78,7 @@ |
||
78 | 78 | curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass); |
79 | 79 | } |
80 | 80 | curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, true); |
81 | - if (! empty($envelope)) { |
|
81 | + if (!empty($envelope)) { |
|
82 | 82 | curl_setopt($oCurl, CURLOPT_POST, true); |
83 | 83 | curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope); |
84 | 84 | curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters); |
@@ -324,9 +324,9 @@ discard block |
||
324 | 324 | if ($this->proxyIP != '') { |
325 | 325 | curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1); |
326 | 326 | curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); |
327 | - curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort); |
|
327 | + curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort); |
|
328 | 328 | if ($this->proxyUser != '') { |
329 | - curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass); |
|
329 | + curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass); |
|
330 | 330 | curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC); |
331 | 331 | } |
332 | 332 | } |
@@ -356,9 +356,9 @@ discard block |
||
356 | 356 | ); |
357 | 357 | } |
358 | 358 | $this->certsdir = $this->certificate->getCnpj() . '/certs/'; |
359 | - $this->prifile = $this->certsdir. Strings::randomString(10).'.pem'; |
|
360 | - $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem'; |
|
361 | - $this->certfile = $this->certsdir . Strings::randomString(10).'.pem'; |
|
359 | + $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
360 | + $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
361 | + $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem'; |
|
362 | 362 | $ret = true; |
363 | 363 | $private = $this->certificate->privateKey; |
364 | 364 | if ($this->encriptPrivateKey) { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | ); |
384 | 384 | $ret &= $this->filesystem->put( |
385 | 385 | $this->certfile, |
386 | - $private."{$this->certificate}" |
|
386 | + $private . "{$this->certificate}" |
|
387 | 387 | ); |
388 | 388 | if (!$ret) { |
389 | 389 | throw new RuntimeException( |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | //utilize a API. Outra solução para remover arquivos "perdidos" pode ser |
412 | 412 | //encontrada oportunamente. |
413 | 413 | $dt = new \DateTime(); |
414 | - $tint = new \DateInterval("PT".$this->waitingTime."M"); |
|
414 | + $tint = new \DateInterval("PT" . $this->waitingTime . "M"); |
|
415 | 415 | $tint->invert = 1; |
416 | 416 | $tsLimit = $dt->add($tint)->getTimestamp(); |
417 | 417 | foreach ($contents as $item) { |