@@ -676,12 +676,12 @@ discard block |
||
| 676 | 676 | } |
| 677 | 677 | |
| 678 | 678 | $this->dom->appChild($this->infCTeNorm, $this->infModal, 'Falta tag "infModal"'); |
| 679 | - if ($this->modal=='01') { |
|
| 679 | + if ($this->modal == '01') { |
|
| 680 | 680 | $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "rodo"'); |
| 681 | 681 | foreach ($this->veic as $veic) { |
| 682 | 682 | $this->dom->appChild($this->rodo, $veic, 'Falta tag "veic"'); |
| 683 | 683 | } |
| 684 | - } elseif ($this->modal=='02') { |
|
| 684 | + } elseif ($this->modal == '02') { |
|
| 685 | 685 | $this->dom->appChild($this->infModal, $this->aereo, 'Falta tag "aereo"'); |
| 686 | 686 | } else { |
| 687 | 687 | throw new Exception('Modal não informado ou não suportado.'); |
@@ -755,10 +755,10 @@ discard block |
||
| 755 | 755 | |
| 756 | 756 | if ($this->infModal != '') { |
| 757 | 757 | $this->dom->appChild($this->infCTeNorm, $this->infModal, 'Falta tag "infModal"'); |
| 758 | - if(!empty($this->veic)){ |
|
| 758 | + if (!empty($this->veic)) { |
|
| 759 | 759 | $this->dom->appChild($this->rodo, $this->veic, 'Falta tag "veic"'); |
| 760 | 760 | } |
| 761 | - if(!empty($this->rodo)){ |
|
| 761 | + if (!empty($this->rodo)) { |
|
| 762 | 762 | $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "rodo"'); |
| 763 | 763 | } |
| 764 | 764 | } |
@@ -1259,7 +1259,7 @@ discard block |
||
| 1259 | 1259 | { |
| 1260 | 1260 | $identificador = '#4 <infPercurso> - '; |
| 1261 | 1261 | $this->infPercurso[] = $this->dom->createElement('infPercurso'); |
| 1262 | - $posicao = (integer)count($this->infPercurso) - 1; |
|
| 1262 | + $posicao = (integer) count($this->infPercurso) - 1; |
|
| 1263 | 1263 | $this->dom->addChild( |
| 1264 | 1264 | $this->infPercurso[$posicao], |
| 1265 | 1265 | 'UFPer', |
@@ -2899,7 +2899,7 @@ discard block |
||
| 2899 | 2899 | { |
| 2900 | 2900 | $identificador = '#65 <pass> - '; |
| 2901 | 2901 | $this->comp[] = $this->dom->createElement('Comp'); |
| 2902 | - $posicao = (integer)count($this->comp) - 1; |
|
| 2902 | + $posicao = (integer) count($this->comp) - 1; |
|
| 2903 | 2903 | $this->dom->addChild( |
| 2904 | 2904 | $this->comp[$posicao], |
| 2905 | 2905 | 'xNome', |
@@ -3305,7 +3305,7 @@ discard block |
||
| 3305 | 3305 | { |
| 3306 | 3306 | $identificador = '#257 <infQ> - '; |
| 3307 | 3307 | $this->infQ[] = $this->dom->createElement('infQ'); |
| 3308 | - $posicao = (integer)count($this->infQ) - 1; |
|
| 3308 | + $posicao = (integer) count($this->infQ) - 1; |
|
| 3309 | 3309 | $this->dom->addChild($this->infQ[$posicao], 'cUnid', $std->cUnid, true, $identificador . 'Código da |
| 3310 | 3310 | Unidade de Medida'); |
| 3311 | 3311 | $this->dom->addChild($this->infQ[$posicao], 'tpMed', $std->tpMed, true, $identificador . 'Tipo da Medida'); |
@@ -3350,7 +3350,7 @@ discard block |
||
| 3350 | 3350 | { |
| 3351 | 3351 | $identificador = '#262 <infNF> - '; |
| 3352 | 3352 | $this->infNF[] = $this->dom->createElement('infNF'); |
| 3353 | - $posicao = (integer)count($this->infNF) - 1; |
|
| 3353 | + $posicao = (integer) count($this->infNF) - 1; |
|
| 3354 | 3354 | |
| 3355 | 3355 | $this->dom->addChild($this->infNF[$posicao], 'nRoma', $std->nRoma, false, $identificador . 'Número do |
| 3356 | 3356 | Romaneio da NF'); |
@@ -3391,7 +3391,7 @@ discard block |
||
| 3391 | 3391 | { |
| 3392 | 3392 | $identificador = '#297 <infNFe> - '; |
| 3393 | 3393 | $this->infNFe[] = $this->dom->createElement('infNFe'); |
| 3394 | - $posicao = (integer)count($this->infNFe) - 1; |
|
| 3394 | + $posicao = (integer) count($this->infNFe) - 1; |
|
| 3395 | 3395 | $this->dom->addChild( |
| 3396 | 3396 | $this->infNFe[$posicao], |
| 3397 | 3397 | 'chave', |
@@ -3426,7 +3426,7 @@ discard block |
||
| 3426 | 3426 | { |
| 3427 | 3427 | $ident = '#319 <infOutros> - '; |
| 3428 | 3428 | $this->infOutros[] = $this->dom->createElement('infOutros'); |
| 3429 | - $posicao = (integer)count($this->infOutros) - 1; |
|
| 3429 | + $posicao = (integer) count($this->infOutros) - 1; |
|
| 3430 | 3430 | $this->dom->addChild($this->infOutros[$posicao], 'tpDoc', $std->tpDoc, true, $ident . 'Tipo ' |
| 3431 | 3431 | . 'de documento originário'); |
| 3432 | 3432 | $this->dom->addChild($this->infOutros[$posicao], 'descOutros', $std->descOutros, false, $ident . 'Descrição ' |
@@ -3451,7 +3451,7 @@ discard block |
||
| 3451 | 3451 | { |
| 3452 | 3452 | $ident = '#319 <infDocRef> - '; |
| 3453 | 3453 | $this->infDocRef[] = $this->dom->createElement('infDocRef'); |
| 3454 | - $posicao = (integer)count($this->infDocRef) - 1; |
|
| 3454 | + $posicao = (integer) count($this->infDocRef) - 1; |
|
| 3455 | 3455 | $this->dom->addChild($this->infDocRef[$posicao], 'nDoc', $std->nDoc, false, $ident . 'Número ' |
| 3456 | 3456 | . 'do documento'); |
| 3457 | 3457 | $this->dom->addChild($this->infDocRef[$posicao], 'serie', $std->serie, false, $ident . 'Série ' |
@@ -3474,7 +3474,7 @@ discard block |
||
| 3474 | 3474 | { |
| 3475 | 3475 | $identificador = '#345 <emiDocAnt> - '; |
| 3476 | 3476 | $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt'); |
| 3477 | - $posicao = (integer)count($this->emiDocAnt) - 1; |
|
| 3477 | + $posicao = (integer) count($this->emiDocAnt) - 1; |
|
| 3478 | 3478 | if ($std->CNPJ != '') { |
| 3479 | 3479 | $this->dom->addChild( |
| 3480 | 3480 | $this->emiDocAnt[$posicao], |
@@ -3515,7 +3515,7 @@ discard block |
||
| 3515 | 3515 | { |
| 3516 | 3516 | $identificador = '#358 <idDocAntEle> - '; |
| 3517 | 3517 | $this->idDocAntEle[] = $this->dom->createElement('idDocAntEle'); |
| 3518 | - $posicao = (integer)count($this->idDocAntEle) - 1; |
|
| 3518 | + $posicao = (integer) count($this->idDocAntEle) - 1; |
|
| 3519 | 3519 | $this->dom->addChild($this->idDocAntEle[$posicao], 'chCTe', $std->chCTe, true, $identificador . 'Chave de ' |
| 3520 | 3520 | . 'Acesso do CT-e'); |
| 3521 | 3521 | |
@@ -3533,7 +3533,7 @@ discard block |
||
| 3533 | 3533 | { |
| 3534 | 3534 | $identificador = '#360 <seg> - '; |
| 3535 | 3535 | $this->seg[] = $this->dom->createElement('seg'); |
| 3536 | - $posicao = (integer)count($this->seg) - 1; |
|
| 3536 | + $posicao = (integer) count($this->seg) - 1; |
|
| 3537 | 3537 | |
| 3538 | 3538 | $this->dom->addChild($this->seg[$posicao], 'respSeg', $std->respSeg, true, $identificador . 'Responsável |
| 3539 | 3539 | pelo Seguro'); |
@@ -3825,7 +3825,7 @@ discard block |
||
| 3825 | 3825 | { |
| 3826 | 3826 | $identificador = '#21 <veic> - '; |
| 3827 | 3827 | $this->veic[] = $this->dom->createElement('veic'); |
| 3828 | - $posicao = (integer)count($this->veic) - 1; |
|
| 3828 | + $posicao = (integer) count($this->veic) - 1; |
|
| 3829 | 3829 | if ($std->cInt != '') { |
| 3830 | 3830 | $this->dom->addChild( |
| 3831 | 3831 | $this->veic[$posicao], |
@@ -3907,7 +3907,7 @@ discard block |
||
| 3907 | 3907 | ); |
| 3908 | 3908 | if ($std->tpProp == 'T') { // CASO FOR VEICULO DE TERCEIRO |
| 3909 | 3909 | $this->prop[] = $this->dom->createElement('prop'); |
| 3910 | - $p = (integer)count($this->prop) - 1; |
|
| 3910 | + $p = (integer) count($this->prop) - 1; |
|
| 3911 | 3911 | if ($std->CNPJ != '') { |
| 3912 | 3912 | $this->dom->addChild( |
| 3913 | 3913 | $this->prop[$p], |