Passed
Pull Request — master (#195)
by
unknown
04:23
created
src/Make.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -676,12 +676,12 @@  discard block
 block discarded – undo
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.');
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
     {
1256 1256
         $identificador = '#4 <infPercurso> - ';
1257 1257
         $this->infPercurso[] = $this->dom->createElement('infPercurso');
1258
-        $posicao = (integer)count($this->infPercurso) - 1;
1258
+        $posicao = (integer) count($this->infPercurso) - 1;
1259 1259
         $this->dom->addChild(
1260 1260
             $this->infPercurso[$posicao],
1261 1261
             'UFPer',
@@ -2046,7 +2046,7 @@  discard block
 block discarded – undo
2046 2046
             true,
2047 2047
             $identificador . 'CNPJ do emitente'
2048 2048
         );
2049
-        if( $std->IE != '' ){
2049
+        if ($std->IE != '') {
2050 2050
             $this->dom->addChild(
2051 2051
                 $this->emit,
2052 2052
                 'IE',
@@ -2895,7 +2895,7 @@  discard block
 block discarded – undo
2895 2895
     {
2896 2896
         $identificador = '#65 <pass> - ';
2897 2897
         $this->comp[] = $this->dom->createElement('Comp');
2898
-        $posicao = (integer)count($this->comp) - 1;
2898
+        $posicao = (integer) count($this->comp) - 1;
2899 2899
         $this->dom->addChild(
2900 2900
             $this->comp[$posicao],
2901 2901
             'xNome',
@@ -3301,7 +3301,7 @@  discard block
 block discarded – undo
3301 3301
     {
3302 3302
         $identificador = '#257 <infQ> - ';
3303 3303
         $this->infQ[] = $this->dom->createElement('infQ');
3304
-        $posicao = (integer)count($this->infQ) - 1;
3304
+        $posicao = (integer) count($this->infQ) - 1;
3305 3305
         $this->dom->addChild($this->infQ[$posicao], 'cUnid', $std->cUnid, true, $identificador . 'Código da
3306 3306
             Unidade de Medida');
3307 3307
         $this->dom->addChild($this->infQ[$posicao], 'tpMed', $std->tpMed, true, $identificador . 'Tipo da Medida');
@@ -3346,7 +3346,7 @@  discard block
 block discarded – undo
3346 3346
     {
3347 3347
         $identificador = '#262 <infNF> - ';
3348 3348
         $this->infNF[] = $this->dom->createElement('infNF');
3349
-        $posicao = (integer)count($this->infNF) - 1;
3349
+        $posicao = (integer) count($this->infNF) - 1;
3350 3350
 
3351 3351
         $this->dom->addChild($this->infNF[$posicao], 'nRoma', $std->nRoma, false, $identificador . 'Número do
3352 3352
             Romaneio da NF');
@@ -3387,7 +3387,7 @@  discard block
 block discarded – undo
3387 3387
     {
3388 3388
         $identificador = '#297 <infNFe> - ';
3389 3389
         $this->infNFe[] = $this->dom->createElement('infNFe');
3390
-        $posicao = (integer)count($this->infNFe) - 1;
3390
+        $posicao = (integer) count($this->infNFe) - 1;
3391 3391
         $this->dom->addChild(
3392 3392
             $this->infNFe[$posicao],
3393 3393
             'chave',
@@ -3422,7 +3422,7 @@  discard block
 block discarded – undo
3422 3422
     {
3423 3423
         $ident = '#319 <infOutros> - ';
3424 3424
         $this->infOutros[] = $this->dom->createElement('infOutros');
3425
-        $posicao = (integer)count($this->infOutros) - 1;
3425
+        $posicao = (integer) count($this->infOutros) - 1;
3426 3426
         $this->dom->addChild($this->infOutros[$posicao], 'tpDoc', $std->tpDoc, true, $ident . 'Tipo '
3427 3427
             . 'de documento originário');
3428 3428
         $this->dom->addChild($this->infOutros[$posicao], 'descOutros', $std->descOutros, false, $ident . 'Descrição '
@@ -3447,7 +3447,7 @@  discard block
 block discarded – undo
3447 3447
     {
3448 3448
         $ident = '#319 <infDocRef> - ';
3449 3449
         $this->infDocRef[] = $this->dom->createElement('infDocRef');
3450
-        $posicao = (integer)count($this->infDocRef) - 1;
3450
+        $posicao = (integer) count($this->infDocRef) - 1;
3451 3451
         $this->dom->addChild($this->infDocRef[$posicao], 'nDoc', $std->nDoc, false, $ident . 'Número '
3452 3452
             . 'do documento');
3453 3453
         $this->dom->addChild($this->infDocRef[$posicao], 'serie', $std->serie, false, $ident . 'Série '
@@ -3470,7 +3470,7 @@  discard block
 block discarded – undo
3470 3470
     {
3471 3471
         $identificador = '#345 <emiDocAnt> - ';
3472 3472
         $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt');
3473
-        $posicao = (integer)count($this->emiDocAnt) - 1;
3473
+        $posicao = (integer) count($this->emiDocAnt) - 1;
3474 3474
         if ($std->CNPJ != '') {
3475 3475
             $this->dom->addChild(
3476 3476
                 $this->emiDocAnt[$posicao],
@@ -3511,7 +3511,7 @@  discard block
 block discarded – undo
3511 3511
     {
3512 3512
         $identificador = '#358 <idDocAntEle> - ';
3513 3513
         $this->idDocAntEle[] = $this->dom->createElement('idDocAntEle');
3514
-        $posicao = (integer)count($this->idDocAntEle) - 1;
3514
+        $posicao = (integer) count($this->idDocAntEle) - 1;
3515 3515
         $this->dom->addChild($this->idDocAntEle[$posicao], 'chCTe', $std->chCTe, true, $identificador . 'Chave de '
3516 3516
             . 'Acesso do CT-e');
3517 3517
 
@@ -3529,7 +3529,7 @@  discard block
 block discarded – undo
3529 3529
     {
3530 3530
         $identificador = '#360 <seg> - ';
3531 3531
         $this->seg[] = $this->dom->createElement('seg');
3532
-        $posicao = (integer)count($this->seg) - 1;
3532
+        $posicao = (integer) count($this->seg) - 1;
3533 3533
 
3534 3534
         $this->dom->addChild($this->seg[$posicao], 'respSeg', $std->respSeg, true, $identificador . 'Responsável
3535 3535
             pelo Seguro');
@@ -3821,7 +3821,7 @@  discard block
 block discarded – undo
3821 3821
     {
3822 3822
         $identificador = '#21 <veic> - ';
3823 3823
         $this->veic[] = $this->dom->createElement('veic');
3824
-        $posicao = (integer)count($this->veic) - 1;
3824
+        $posicao = (integer) count($this->veic) - 1;
3825 3825
         if ($std->cInt != '') {
3826 3826
             $this->dom->addChild(
3827 3827
                 $this->veic[$posicao],
@@ -3903,7 +3903,7 @@  discard block
 block discarded – undo
3903 3903
         );
3904 3904
         if ($std->tpProp == 'T') { // CASO FOR VEICULO DE TERCEIRO
3905 3905
             $this->prop[] = $this->dom->createElement('prop');
3906
-            $p = (integer)count($this->prop) - 1;
3906
+            $p = (integer) count($this->prop) - 1;
3907 3907
             if ($std->CNPJ != '') {
3908 3908
                 $this->dom->addChild(
3909 3909
                     $this->prop[$p],
Please login to merge, or discard this patch.