| @@ -358,7 +358,7 @@ | ||
| 358 | 358 | * Mount soap envelope | 
| 359 | 359 | * @param string $request | 
| 360 | 360 | * @param array $namespaces | 
| 361 | - * @param $soapVer int | |
| 361 | + * @param integer $soapVer int | |
| 362 | 362 | * @param \SOAPHeader $header | 
| 363 | 363 | * @return string | 
| 364 | 364 | */ | 
| @@ -373,7 +373,7 @@ discard block | ||
| 373 | 373 | |
| 374 | 374 | // Interessante desmembrar em uma função | 
| 375 | 375 |          foreach ($namespaces as $key => $value) { | 
| 376 | - $envelopeAttributes = $key.'="'.$value.'"'; | |
| 376 | + $envelopeAttributes = $key . '="' . $value . '"'; | |
| 377 | 377 | } | 
| 378 | 378 | |
| 379 | 379 |          if (null === $header) { | 
| @@ -393,7 +393,7 @@ discard block | ||
| 393 | 393 | private function mountEnvelopString(string $envelopPrefix, string $envelopAttributes = '', string $header = '', string $bodyContent = '') | 
| 394 | 394 |      { | 
| 395 | 395 | return sprintf( | 
| 396 | - '<%s:Envelope %s >'.$header.'<%s:Body>%s</%s:Body></%s:Envelop>', | |
| 396 | + '<%s:Envelope %s >' . $header . '<%s:Body>%s</%s:Body></%s:Envelop>', | |
| 397 | 397 | $envelopPrefix, | 
| 398 | 398 | $envelopAttributes, | 
| 399 | 399 | $envelopPrefix, | 
| @@ -412,7 +412,7 @@ discard block | ||
| 412 | 412 |      { | 
| 413 | 413 | $headerItems = ''; | 
| 414 | 414 |          foreach ($header->data as $key => $value) { | 
| 415 | - $headerItems = '<'.$key.'>'.$value.'<'.$key.'>'; | |
| 415 | + $headerItems = '<' . $key . '>' . $value . '<' . $key . '>'; | |
| 416 | 416 | } | 
| 417 | 417 | |
| 418 | 418 | return sprintf( | 
| @@ -436,9 +436,9 @@ discard block | ||
| 436 | 436 | ); | 
| 437 | 437 | } | 
| 438 | 438 | $this->certsdir = $this->certificate->getCnpj() . '/certs/'; | 
| 439 | - $this->prifile = $this->certsdir. Strings::randomString(10).'.pem'; | |
| 440 | - $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem'; | |
| 441 | - $this->certfile = $this->certsdir . Strings::randomString(10).'.pem'; | |
| 439 | + $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem'; | |
| 440 | + $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem'; | |
| 441 | + $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem'; | |
| 442 | 442 | $ret = true; | 
| 443 | 443 | $private = $this->certificate->privateKey; | 
| 444 | 444 |          if ($this->encriptPrivateKey) { | 
| @@ -463,7 +463,7 @@ discard block | ||
| 463 | 463 | ); | 
| 464 | 464 | $ret &= $this->filesystem->put( | 
| 465 | 465 | $this->certfile, | 
| 466 | -            $private."{$this->certificate}" | |
| 466 | +            $private . "{$this->certificate}" | |
| 467 | 467 | ); | 
| 468 | 468 |          if (!$ret) { | 
| 469 | 469 | throw new RuntimeException( | 
| @@ -489,7 +489,7 @@ discard block | ||
| 489 | 489 | //utilize a API. Outra solução para remover arquivos "perdidos" pode ser | 
| 490 | 490 | //encontrada oportunamente. | 
| 491 | 491 | $dt = new \DateTime(); | 
| 492 | -        $tint = new \DateInterval("PT".$this->waitingTime."M"); | |
| 492 | +        $tint = new \DateInterval("PT" . $this->waitingTime . "M"); | |
| 493 | 493 | $tint->invert = true; | 
| 494 | 494 | $tsLimit = $dt->add($tint)->getTimestamp(); | 
| 495 | 495 |          foreach ($contents as $item) { |