@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * Canonical conversion options |
| 98 | 98 | * @var array |
| 99 | 99 | */ |
| 100 | - protected $canonical = [true,false,null,null]; |
|
| 100 | + protected $canonical = [true, false, null, null]; |
|
| 101 | 101 | /** |
| 102 | 102 | * Model of NFe 55 or 65 |
| 103 | 103 | * @var int |
@@ -224,8 +224,8 @@ discard block |
||
| 224 | 224 | //throw new RuntimeException('Faltam elementos CNPJ/CPF no certificado digital.'); |
| 225 | 225 | $type = ''; |
| 226 | 226 | } |
| 227 | - }else{//caso em que cnpj é nulo e cpf está presente |
|
| 228 | - if(empty($cnpj) and !empty($cpf)){ |
|
| 227 | + } else {//caso em que cnpj é nulo e cpf está presente |
|
| 228 | + if (empty($cnpj) and !empty($cpf)) { |
|
| 229 | 229 | $type = 'F'; |
| 230 | 230 | } |
| 231 | 231 | } |
@@ -296,8 +296,8 @@ discard block |
||
| 296 | 296 | $this->versao = $version; |
| 297 | 297 | $this->config->schemes = $this->availableVersions[$version]; |
| 298 | 298 | $this->pathschemes = realpath( |
| 299 | - __DIR__ . '/../../schemes/'. $this->config->schemes |
|
| 300 | - ).'/'; |
|
| 299 | + __DIR__ . '/../../schemes/' . $this->config->schemes |
|
| 300 | + ) . '/'; |
|
| 301 | 301 | |
| 302 | 302 | return $this->versao; |
| 303 | 303 | } |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | */ |
| 398 | 398 | protected function isValid($version, $body, $method) |
| 399 | 399 | { |
| 400 | - $schema = $this->pathschemes.$method."_v$version.xsd"; |
|
| 400 | + $schema = $this->pathschemes . $method . "_v$version.xsd"; |
|
| 401 | 401 | if (!is_file($schema)) { |
| 402 | 402 | return true; |
| 403 | 403 | } |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | } |
| 543 | 543 | |
| 544 | 544 | $path = $this->pathwsfiles . $file; |
| 545 | - if (! file_exists($path)) { |
|
| 545 | + if (!file_exists($path)) { |
|
| 546 | 546 | return ''; |
| 547 | 547 | } |
| 548 | 548 | return file_get_contents($path); |
@@ -224,7 +224,7 @@ |
||
| 224 | 224 | //throw new RuntimeException('Faltam elementos CNPJ/CPF no certificado digital.'); |
| 225 | 225 | $type = ''; |
| 226 | 226 | } |
| 227 | - }else{//caso em que cnpj é nulo e cpf está presente |
|
| 227 | + } else{//caso em que cnpj é nulo e cpf está presente |
|
| 228 | 228 | if(empty($cnpj) and !empty($cpf)){ |
| 229 | 229 | $type = 'F'; |
| 230 | 230 | } |