Test Setup Failed
Pull Request — master (#207)
by
unknown
02:03
created
src/Make.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -682,12 +682,12 @@  discard block
 block discarded – undo
682 682
             }
683 683
 
684 684
             $this->dom->appChild($this->infCTeNorm, $this->infModal, 'Falta tag "infModal"');
685
-            if ($this->modal=='01') {
685
+            if ($this->modal == '01') {
686 686
                 $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "rodo"');
687 687
                 foreach ($this->veic as $veic) {
688 688
                     $this->dom->appChild($this->rodo, $veic, 'Falta tag "veic"');
689 689
                 }
690
-            } elseif ($this->modal=='02') {
690
+            } elseif ($this->modal == '02') {
691 691
                 $this->dom->appChild($this->infModal, $this->aereo, 'Falta tag "aereo"');
692 692
             } else {
693 693
                 throw new Exception('Modal não informado ou não suportado.');
@@ -761,10 +761,10 @@  discard block
 block discarded – undo
761 761
 
762 762
             if ($this->infModal != '') {
763 763
                 $this->dom->appChild($this->infCTeNorm, $this->infModal, 'Falta tag "infModal"');
764
-                if(!empty($this->veic)) {
764
+                if (!empty($this->veic)) {
765 765
                     $this->dom->appChild($this->rodo, $this->veic, 'Falta tag "veic"');
766 766
                 }
767
-                if(!empty($this->rodo)) {
767
+                if (!empty($this->rodo)) {
768 768
                     $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "rodo"');
769 769
                 }
770 770
                 $this->dom->appChild($this->rodo, $this->infFretamento, 'Falta tag "infFretamento"');
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
     {
1267 1267
         $identificador = '#4 <infPercurso> - ';
1268 1268
         $this->infPercurso[] = $this->dom->createElement('infPercurso');
1269
-        $posicao = (integer)count($this->infPercurso) - 1;
1269
+        $posicao = (integer) count($this->infPercurso) - 1;
1270 1270
         $this->dom->addChild(
1271 1271
             $this->infPercurso[$posicao],
1272 1272
             'UFPer',
@@ -2904,7 +2904,7 @@  discard block
 block discarded – undo
2904 2904
     {
2905 2905
         $identificador = '#65 <pass> - ';
2906 2906
         $this->comp[] = $this->dom->createElement('Comp');
2907
-        $posicao = (integer)count($this->comp) - 1;
2907
+        $posicao = (integer) count($this->comp) - 1;
2908 2908
         $this->dom->addChild(
2909 2909
             $this->comp[$posicao],
2910 2910
             'xNome',
@@ -3310,7 +3310,7 @@  discard block
 block discarded – undo
3310 3310
     {
3311 3311
         $identificador = '#257 <infQ> - ';
3312 3312
         $this->infQ[] = $this->dom->createElement('infQ');
3313
-        $posicao = (integer)count($this->infQ) - 1;
3313
+        $posicao = (integer) count($this->infQ) - 1;
3314 3314
         $this->dom->addChild($this->infQ[$posicao], 'cUnid', $std->cUnid, true, $identificador . 'Código da
3315 3315
             Unidade de Medida');
3316 3316
         $this->dom->addChild($this->infQ[$posicao], 'tpMed', $std->tpMed, true, $identificador . 'Tipo da Medida');
@@ -3355,7 +3355,7 @@  discard block
 block discarded – undo
3355 3355
     {
3356 3356
         $identificador = '#262 <infNF> - ';
3357 3357
         $this->infNF[] = $this->dom->createElement('infNF');
3358
-        $posicao = (integer)count($this->infNF) - 1;
3358
+        $posicao = (integer) count($this->infNF) - 1;
3359 3359
 
3360 3360
         $this->dom->addChild($this->infNF[$posicao], 'nRoma', $std->nRoma, false, $identificador . 'Número do
3361 3361
             Romaneio da NF');
@@ -3396,7 +3396,7 @@  discard block
 block discarded – undo
3396 3396
     {
3397 3397
         $identificador = '#297 <infNFe> - ';
3398 3398
         $this->infNFe[] = $this->dom->createElement('infNFe');
3399
-        $posicao = (integer)count($this->infNFe) - 1;
3399
+        $posicao = (integer) count($this->infNFe) - 1;
3400 3400
         $this->dom->addChild(
3401 3401
             $this->infNFe[$posicao],
3402 3402
             'chave',
@@ -3431,7 +3431,7 @@  discard block
 block discarded – undo
3431 3431
     {
3432 3432
         $ident = '#319 <infOutros> - ';
3433 3433
         $this->infOutros[] = $this->dom->createElement('infOutros');
3434
-        $posicao = (integer)count($this->infOutros) - 1;
3434
+        $posicao = (integer) count($this->infOutros) - 1;
3435 3435
         $this->dom->addChild($this->infOutros[$posicao], 'tpDoc', $std->tpDoc, true, $ident . 'Tipo '
3436 3436
             . 'de documento originário');
3437 3437
         $this->dom->addChild($this->infOutros[$posicao], 'descOutros', $std->descOutros, false, $ident . 'Descrição '
@@ -3456,7 +3456,7 @@  discard block
 block discarded – undo
3456 3456
     {
3457 3457
         $ident = '#319 <infDocRef> - ';
3458 3458
         $this->infDocRef[] = $this->dom->createElement('infDocRef');
3459
-        $posicao = (integer)count($this->infDocRef) - 1;
3459
+        $posicao = (integer) count($this->infDocRef) - 1;
3460 3460
         $this->dom->addChild($this->infDocRef[$posicao], 'nDoc', $std->nDoc, false, $ident . 'Número '
3461 3461
             . 'do documento');
3462 3462
         $this->dom->addChild($this->infDocRef[$posicao], 'serie', $std->serie, false, $ident . 'Série '
@@ -3479,7 +3479,7 @@  discard block
 block discarded – undo
3479 3479
     {
3480 3480
         $identificador = '#345 <emiDocAnt> - ';
3481 3481
         $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt');
3482
-        $posicao = (integer)count($this->emiDocAnt) - 1;
3482
+        $posicao = (integer) count($this->emiDocAnt) - 1;
3483 3483
         if ($std->CNPJ != '') {
3484 3484
             $this->dom->addChild(
3485 3485
                 $this->emiDocAnt[$posicao],
@@ -3520,7 +3520,7 @@  discard block
 block discarded – undo
3520 3520
     {
3521 3521
         $identificador = '#358 <idDocAntEle> - ';
3522 3522
         $this->idDocAntEle[] = $this->dom->createElement('idDocAntEle');
3523
-        $posicao = (integer)count($this->idDocAntEle) - 1;
3523
+        $posicao = (integer) count($this->idDocAntEle) - 1;
3524 3524
         $this->dom->addChild($this->idDocAntEle[$posicao], 'chCTe', $std->chCTe, true, $identificador . 'Chave de '
3525 3525
             . 'Acesso do CT-e');
3526 3526
 
@@ -3538,7 +3538,7 @@  discard block
 block discarded – undo
3538 3538
     {
3539 3539
         $identificador = '#360 <seg> - ';
3540 3540
         $this->seg[] = $this->dom->createElement('seg');
3541
-        $posicao = (integer)count($this->seg) - 1;
3541
+        $posicao = (integer) count($this->seg) - 1;
3542 3542
 
3543 3543
         $this->dom->addChild($this->seg[$posicao], 'respSeg', $std->respSeg, true, $identificador . 'Responsável
3544 3544
             pelo Seguro');
@@ -3830,7 +3830,7 @@  discard block
 block discarded – undo
3830 3830
     {
3831 3831
         $identificador = '#21 <veic> - ';
3832 3832
         $this->veic[] = $this->dom->createElement('veic');
3833
-        $posicao = (integer)count($this->veic) - 1;
3833
+        $posicao = (integer) count($this->veic) - 1;
3834 3834
         if ($std->cInt != '') {
3835 3835
             $this->dom->addChild(
3836 3836
                 $this->veic[$posicao],
@@ -3912,7 +3912,7 @@  discard block
 block discarded – undo
3912 3912
         );
3913 3913
         if ($std->tpProp == 'T') { // CASO FOR VEICULO DE TERCEIRO
3914 3914
             $this->prop[] = $this->dom->createElement('prop');
3915
-            $p = (integer)count($this->prop) - 1;
3915
+            $p = (integer) count($this->prop) - 1;
3916 3916
             if ($std->CNPJ != '') {
3917 3917
                 $this->dom->addChild(
3918 3918
                     $this->prop[$p],
Please login to merge, or discard this patch.