@@ -687,14 +687,14 @@ discard block |
||
| 687 | 687 | } |
| 688 | 688 | |
| 689 | 689 | $this->dom->appChild($this->infCTeNorm, $this->infModal, 'Falta tag "infModal"'); |
| 690 | - if ($this->modal=='01') { |
|
| 690 | + if ($this->modal == '01') { |
|
| 691 | 691 | $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "rodo"'); |
| 692 | 692 | foreach ($this->veic as $veic) { |
| 693 | 693 | $this->dom->appChild($this->rodo, $veic, 'Falta tag "veic"'); |
| 694 | 694 | } |
| 695 | - } elseif ($this->modal=='02') { |
|
| 695 | + } elseif ($this->modal == '02') { |
|
| 696 | 696 | $this->dom->appChild($this->infModal, $this->aereo, 'Falta tag "aereo"'); |
| 697 | - } elseif ($this->modal=='03') { |
|
| 697 | + } elseif ($this->modal == '03') { |
|
| 698 | 698 | $this->dom->appChild($this->infModal, $this->aquav, 'Falta tag "aquav"'); |
| 699 | 699 | } else { |
| 700 | 700 | throw new Exception('Modal não informado ou não suportado.'); |
@@ -1269,7 +1269,7 @@ discard block |
||
| 1269 | 1269 | { |
| 1270 | 1270 | $identificador = '#4 <infPercurso> - '; |
| 1271 | 1271 | $this->infPercurso[] = $this->dom->createElement('infPercurso'); |
| 1272 | - $posicao = (integer)count($this->infPercurso) - 1; |
|
| 1272 | + $posicao = (integer) count($this->infPercurso) - 1; |
|
| 1273 | 1273 | $this->dom->addChild( |
| 1274 | 1274 | $this->infPercurso[$posicao], |
| 1275 | 1275 | 'UFPer', |
@@ -2907,7 +2907,7 @@ discard block |
||
| 2907 | 2907 | { |
| 2908 | 2908 | $identificador = '#65 <pass> - '; |
| 2909 | 2909 | $this->comp[] = $this->dom->createElement('Comp'); |
| 2910 | - $posicao = (integer)count($this->comp) - 1; |
|
| 2910 | + $posicao = (integer) count($this->comp) - 1; |
|
| 2911 | 2911 | $this->dom->addChild( |
| 2912 | 2912 | $this->comp[$posicao], |
| 2913 | 2913 | 'xNome', |
@@ -3313,7 +3313,7 @@ discard block |
||
| 3313 | 3313 | { |
| 3314 | 3314 | $identificador = '#257 <infQ> - '; |
| 3315 | 3315 | $this->infQ[] = $this->dom->createElement('infQ'); |
| 3316 | - $posicao = (integer)count($this->infQ) - 1; |
|
| 3316 | + $posicao = (integer) count($this->infQ) - 1; |
|
| 3317 | 3317 | $this->dom->addChild($this->infQ[$posicao], 'cUnid', $std->cUnid, true, $identificador . 'Código da |
| 3318 | 3318 | Unidade de Medida'); |
| 3319 | 3319 | $this->dom->addChild($this->infQ[$posicao], 'tpMed', $std->tpMed, true, $identificador . 'Tipo da Medida'); |
@@ -3358,7 +3358,7 @@ discard block |
||
| 3358 | 3358 | { |
| 3359 | 3359 | $identificador = '#262 <infNF> - '; |
| 3360 | 3360 | $this->infNF[] = $this->dom->createElement('infNF'); |
| 3361 | - $posicao = (integer)count($this->infNF) - 1; |
|
| 3361 | + $posicao = (integer) count($this->infNF) - 1; |
|
| 3362 | 3362 | |
| 3363 | 3363 | $this->dom->addChild($this->infNF[$posicao], 'nRoma', $std->nRoma, false, $identificador . 'Número do |
| 3364 | 3364 | Romaneio da NF'); |
@@ -3399,7 +3399,7 @@ discard block |
||
| 3399 | 3399 | { |
| 3400 | 3400 | $identificador = '#297 <infNFe> - '; |
| 3401 | 3401 | $this->infNFe[] = $this->dom->createElement('infNFe'); |
| 3402 | - $posicao = (integer)count($this->infNFe) - 1; |
|
| 3402 | + $posicao = (integer) count($this->infNFe) - 1; |
|
| 3403 | 3403 | $this->dom->addChild( |
| 3404 | 3404 | $this->infNFe[$posicao], |
| 3405 | 3405 | 'chave', |
@@ -3434,7 +3434,7 @@ discard block |
||
| 3434 | 3434 | { |
| 3435 | 3435 | $ident = '#319 <infOutros> - '; |
| 3436 | 3436 | $this->infOutros[] = $this->dom->createElement('infOutros'); |
| 3437 | - $posicao = (integer)count($this->infOutros) - 1; |
|
| 3437 | + $posicao = (integer) count($this->infOutros) - 1; |
|
| 3438 | 3438 | $this->dom->addChild($this->infOutros[$posicao], 'tpDoc', $std->tpDoc, true, $ident . 'Tipo ' |
| 3439 | 3439 | . 'de documento originário'); |
| 3440 | 3440 | $this->dom->addChild($this->infOutros[$posicao], 'descOutros', $std->descOutros, false, $ident . 'Descrição ' |
@@ -3459,7 +3459,7 @@ discard block |
||
| 3459 | 3459 | { |
| 3460 | 3460 | $ident = '#319 <infDocRef> - '; |
| 3461 | 3461 | $this->infDocRef[] = $this->dom->createElement('infDocRef'); |
| 3462 | - $posicao = (integer)count($this->infDocRef) - 1; |
|
| 3462 | + $posicao = (integer) count($this->infDocRef) - 1; |
|
| 3463 | 3463 | $this->dom->addChild($this->infDocRef[$posicao], 'nDoc', $std->nDoc, false, $ident . 'Número ' |
| 3464 | 3464 | . 'do documento'); |
| 3465 | 3465 | $this->dom->addChild($this->infDocRef[$posicao], 'serie', $std->serie, false, $ident . 'Série ' |
@@ -3482,7 +3482,7 @@ discard block |
||
| 3482 | 3482 | { |
| 3483 | 3483 | $identificador = '#345 <emiDocAnt> - '; |
| 3484 | 3484 | $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt'); |
| 3485 | - $posicao = (integer)count($this->emiDocAnt) - 1; |
|
| 3485 | + $posicao = (integer) count($this->emiDocAnt) - 1; |
|
| 3486 | 3486 | if ($std->CNPJ != '') { |
| 3487 | 3487 | $this->dom->addChild( |
| 3488 | 3488 | $this->emiDocAnt[$posicao], |
@@ -3523,7 +3523,7 @@ discard block |
||
| 3523 | 3523 | { |
| 3524 | 3524 | $identificador = '#358 <idDocAntEle> - '; |
| 3525 | 3525 | $this->idDocAntEle[] = $this->dom->createElement('idDocAntEle'); |
| 3526 | - $posicao = (integer)count($this->idDocAntEle) - 1; |
|
| 3526 | + $posicao = (integer) count($this->idDocAntEle) - 1; |
|
| 3527 | 3527 | $this->dom->addChild($this->idDocAntEle[$posicao], 'chCTe', $std->chCTe, true, $identificador . 'Chave de ' |
| 3528 | 3528 | . 'Acesso do CT-e'); |
| 3529 | 3529 | |
@@ -3541,7 +3541,7 @@ discard block |
||
| 3541 | 3541 | { |
| 3542 | 3542 | $identificador = '#360 <seg> - '; |
| 3543 | 3543 | $this->seg[] = $this->dom->createElement('seg'); |
| 3544 | - $posicao = (integer)count($this->seg) - 1; |
|
| 3544 | + $posicao = (integer) count($this->seg) - 1; |
|
| 3545 | 3545 | |
| 3546 | 3546 | $this->dom->addChild($this->seg[$posicao], 'respSeg', $std->respSeg, true, $identificador . 'Responsável |
| 3547 | 3547 | pelo Seguro'); |
@@ -3897,7 +3897,7 @@ discard block |
||
| 3897 | 3897 | { |
| 3898 | 3898 | $identificador = '#21 <veic> - '; |
| 3899 | 3899 | $this->veic[] = $this->dom->createElement('veic'); |
| 3900 | - $posicao = (integer)count($this->veic) - 1; |
|
| 3900 | + $posicao = (integer) count($this->veic) - 1; |
|
| 3901 | 3901 | if ($std->cInt != '') { |
| 3902 | 3902 | $this->dom->addChild( |
| 3903 | 3903 | $this->veic[$posicao], |
@@ -3979,7 +3979,7 @@ discard block |
||
| 3979 | 3979 | ); |
| 3980 | 3980 | if ($std->tpProp == 'T') { // CASO FOR VEICULO DE TERCEIRO |
| 3981 | 3981 | $this->prop[] = $this->dom->createElement('prop'); |
| 3982 | - $p = (integer)count($this->prop) - 1; |
|
| 3982 | + $p = (integer) count($this->prop) - 1; |
|
| 3983 | 3983 | if ($std->CNPJ != '') { |
| 3984 | 3984 | $this->dom->addChild( |
| 3985 | 3985 | $this->prop[$p], |