Passed
Push — master ( 3f6c81...9262e8 )
by
unknown
01:50 queued 15s
created
src/MakeCTeOS.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                 $this->dom->appChild($this->rodo, $this->infFretamento, 'Falta tag "infFretamento"');
301 301
                 $this->dom->appChild($this->infModal, $this->rodo, 'Falta tag "rodo"');
302 302
             }
303
-            if(!empty($this->infCteSub)) { // Caso seja um CT-e OS tipo substituição
303
+            if (!empty($this->infCteSub)) { // Caso seja um CT-e OS tipo substituição
304 304
                 $this->dom->appChild($this->infCTeNorm, $this->infCteSub, 'Falta tag "infCteSub"');
305 305
             }
306 306
         }
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
         $std = $this->equilizeParameters($std, $possible);
600 600
         $identificador = '#4 <infPercurso> - ';
601 601
         $this->infPercurso[] = $this->dom->createElement('infPercurso');
602
-        $posicao = (int)count($this->infPercurso) - 1;
602
+        $posicao = (int) count($this->infPercurso) - 1;
603 603
         $this->dom->addChild(
604 604
             $this->infPercurso[$posicao],
605 605
             'UFPer',
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
         $identificador = '#91 <ObsCont> - ';
679 679
         if (count($this->obsCont) <= 10) {
680 680
             $this->obsCont[] = $this->dom->createElement('ObsCont');
681
-            $posicao = (int)count($this->obsCont) - 1;
681
+            $posicao = (int) count($this->obsCont) - 1;
682 682
             $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo);
683 683
             $this->dom->addChild(
684 684
                 $this->obsCont[$posicao],
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
         $identificador = '#94 <ObsFisco> - ';
717 717
         if (count($this->obsFisco) <= 10) {
718 718
             $this->obsFisco[] = $this->dom->createElement('ObsFisco');
719
-            $posicao = (int)count($this->obsFisco) - 1;
719
+            $posicao = (int) count($this->obsFisco) - 1;
720 720
             $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo);
721 721
             $this->dom->addChild(
722 722
                 $this->obsFisco[$posicao],
@@ -1106,7 +1106,7 @@  discard block
 block discarded – undo
1106 1106
         $std = $this->equilizeParameters($std, $possible);
1107 1107
         $identificador = '#65 <Comp> - ';
1108 1108
         $this->comp[] = $this->dom->createElement('Comp');
1109
-        $posicao = (int)count($this->comp) - 1;
1109
+        $posicao = (int) count($this->comp) - 1;
1110 1110
         $this->dom->addChild(
1111 1111
             $this->comp[$posicao],
1112 1112
             'xNome',
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
                     true,
1229 1229
                     "$identificador  Valor do ICMS"
1230 1230
                 );
1231
-                if($std->vICMSDeson > 0 && $std->cBenef) {
1231
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
1232 1232
                     $this->dom->addChild(
1233 1233
                         $icms,
1234 1234
                         'vICMSDeson',
@@ -1254,7 +1254,7 @@  discard block
 block discarded – undo
1254 1254
                     true,
1255 1255
                     "$identificador  Tributação do ICMS = 40"
1256 1256
                 );
1257
-                if($std->vICMSDeson > 0 && $std->cBenef) {
1257
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
1258 1258
                     $this->dom->addChild(
1259 1259
                         $icms,
1260 1260
                         'vICMSDeson',
@@ -1280,7 +1280,7 @@  discard block
 block discarded – undo
1280 1280
                     true,
1281 1281
                     "$identificador  Tributação do ICMS = 41"
1282 1282
                 );
1283
-                if($std->vICMSDeson > 0 && $std->cBenef) {
1283
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
1284 1284
                     $this->dom->addChild(
1285 1285
                         $icms,
1286 1286
                         'vICMSDeson',
@@ -1306,7 +1306,7 @@  discard block
 block discarded – undo
1306 1306
                     true,
1307 1307
                     "$identificador  Tributação do ICMS = 51"
1308 1308
                 );
1309
-                if($std->vICMSDeson > 0 && $std->cBenef) {
1309
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
1310 1310
                     $this->dom->addChild(
1311 1311
                         $icms,
1312 1312
                         'vICMSDeson',
@@ -1364,7 +1364,7 @@  discard block
 block discarded – undo
1364 1364
                         true,
1365 1365
                         "$identificador Valor ICMS Outra UF"
1366 1366
                     );
1367
-                    if($std->vICMSDeson > 0 && $std->cBenef) {
1367
+                    if ($std->vICMSDeson > 0 && $std->cBenef) {
1368 1368
                         $this->dom->addChild(
1369 1369
                             $icms,
1370 1370
                             'vICMSDeson',
@@ -1428,7 +1428,7 @@  discard block
 block discarded – undo
1428 1428
                             "$identificador  Valor do Crédido"
1429 1429
                         );
1430 1430
                     }
1431
-                    if($std->vICMSDeson > 0 && $std->cBenef) {
1431
+                    if ($std->vICMSDeson > 0 && $std->cBenef) {
1432 1432
                         $this->dom->addChild(
1433 1433
                             $icms,
1434 1434
                             'vICMSDeson',
@@ -1691,7 +1691,7 @@  discard block
 block discarded – undo
1691 1691
         $std = $this->equilizeParameters($std, $possible);
1692 1692
         $ident = '#319 <infDocRef> - ';
1693 1693
         $this->infDocRef[] = $this->dom->createElement('infDocRef');
1694
-        $posicao = (int)count($this->infDocRef) - 1;
1694
+        $posicao = (int) count($this->infDocRef) - 1;
1695 1695
         if (!empty($std->chBPe)) {
1696 1696
             $this->dom->addChild(
1697 1697
                 $this->infDocRef[$posicao],
@@ -1756,7 +1756,7 @@  discard block
 block discarded – undo
1756 1756
         $std = $this->equilizeParameters($std, $possible);
1757 1757
         $identificador = '#360 <seg> - ';
1758 1758
         $this->seg[] = $this->dom->createElement('seg');
1759
-        $posicao = (int)count($this->seg) - 1;
1759
+        $posicao = (int) count($this->seg) - 1;
1760 1760
         $this->dom->addChild(
1761 1761
             $this->seg[$posicao],
1762 1762
             'respSeg',
@@ -2186,7 +2186,7 @@  discard block
 block discarded – undo
2186 2186
         $std = $this->equilizeParameters($std, $possible);
2187 2187
         $identificador = '#65 <comp> - ';
2188 2188
         $this->infGTVe[] = $this->dom->createElement('infGTVe');
2189
-        $posicao = (int)count($this->infGTVe) - 1;
2189
+        $posicao = (int) count($this->infGTVe) - 1;
2190 2190
         $this->dom->addChild(
2191 2191
             $this->infGTVe[$posicao],
2192 2192
             'chCTe',
@@ -2237,7 +2237,7 @@  discard block
 block discarded – undo
2237 2237
             false,
2238 2238
             $identificador . 'Nome do componente (informar apenas para outros)'
2239 2239
         );
2240
-        $posicao = (int)count($this->infGTVe) - 1;
2240
+        $posicao = (int) count($this->infGTVe) - 1;
2241 2241
         $this->dom->appChild($this->infGTVe[$posicao], $comp, 'Inclui Comp na tag infGTVe');
2242 2242
         return $comp;
2243 2243
     }
Please login to merge, or discard this patch.
src/MakeCTe.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1668,7 +1668,7 @@  discard block
 block discarded – undo
1668 1668
         $identificador = '#91 <ObsCont> - ';
1669 1669
         if (count($this->obsCont) <= 10) {
1670 1670
             $this->obsCont[] = $this->dom->createElement('ObsCont');
1671
-            $posicao = (int)count($this->obsCont) - 1;
1671
+            $posicao = (int) count($this->obsCont) - 1;
1672 1672
             $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo);
1673 1673
             $this->dom->addChild(
1674 1674
                 $this->obsCont[$posicao],
@@ -1706,7 +1706,7 @@  discard block
 block discarded – undo
1706 1706
         $identificador = '#94 <ObsFisco> - ';
1707 1707
         if (count($this->obsFisco) <= 10) {
1708 1708
             $this->obsFisco[] = $this->dom->createElement('ObsFisco');
1709
-            $posicao = (int)count($this->obsFisco) - 1;
1709
+            $posicao = (int) count($this->obsFisco) - 1;
1710 1710
             $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo);
1711 1711
             $this->dom->addChild(
1712 1712
                 $this->obsFisco[$posicao],
@@ -2683,7 +2683,7 @@  discard block
 block discarded – undo
2683 2683
         $std = $this->equilizeParameters($std, $possible);
2684 2684
         $identificador = '#65 <pass> - ';
2685 2685
         $this->comp[] = $this->dom->createElement('Comp');
2686
-        $posicao = (int)count($this->comp) - 1;
2686
+        $posicao = (int) count($this->comp) - 1;
2687 2687
         $this->dom->addChild(
2688 2688
             $this->comp[$posicao],
2689 2689
             'xNome',
@@ -2808,7 +2808,7 @@  discard block
 block discarded – undo
2808 2808
                     true,
2809 2809
                     "$identificador  Valor do ICMS"
2810 2810
                 );
2811
-                if($std->vICMSDeson > 0 && $std->cBenef) {
2811
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
2812 2812
                     $this->dom->addChild(
2813 2813
                         $icms,
2814 2814
                         'vICMSDeson',
@@ -2834,7 +2834,7 @@  discard block
 block discarded – undo
2834 2834
                     true,
2835 2835
                     "$identificador  Tributação do ICMS = 40"
2836 2836
                 );
2837
-                if($std->vICMSDeson > 0 && $std->cBenef) {
2837
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
2838 2838
                     $this->dom->addChild(
2839 2839
                         $icms,
2840 2840
                         'vICMSDeson',
@@ -2860,7 +2860,7 @@  discard block
 block discarded – undo
2860 2860
                     true,
2861 2861
                     "$identificador  Tributação do ICMS = 41"
2862 2862
                 );
2863
-                if($std->vICMSDeson > 0 && $std->cBenef) {
2863
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
2864 2864
                     $this->dom->addChild(
2865 2865
                         $icms,
2866 2866
                         'vICMSDeson',
@@ -2886,7 +2886,7 @@  discard block
 block discarded – undo
2886 2886
                     true,
2887 2887
                     "$identificador  Tributação do ICMS = 51"
2888 2888
                 );
2889
-                if($std->vICMSDeson > 0 && $std->cBenef) {
2889
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
2890 2890
                     $this->dom->addChild(
2891 2891
                         $icms,
2892 2892
                         'vICMSDeson',
@@ -2942,7 +2942,7 @@  discard block
 block discarded – undo
2942 2942
                         "$identificador  Valor do Crédito"
2943 2943
                     );
2944 2944
                 }
2945
-                if($std->vICMSDeson > 0 && $std->cBenef) {
2945
+                if ($std->vICMSDeson > 0 && $std->cBenef) {
2946 2946
                     $this->dom->addChild(
2947 2947
                         $icms,
2948 2948
                         'vICMSDeson',
@@ -3000,7 +3000,7 @@  discard block
 block discarded – undo
3000 3000
                         true,
3001 3001
                         "$identificador Valor ICMS Outra UF"
3002 3002
                     );
3003
-                    if($std->vICMSDeson > 0) {
3003
+                    if ($std->vICMSDeson > 0) {
3004 3004
                         $this->dom->addChild(
3005 3005
                             $icms,
3006 3006
                             'vICMSDeson',
@@ -3009,7 +3009,7 @@  discard block
 block discarded – undo
3009 3009
                             "$identificador  Valor do ICMS Desonerado"
3010 3010
                         );
3011 3011
                     }
3012
-                    if($std->cBenef) {
3012
+                    if ($std->cBenef) {
3013 3013
                         $this->dom->addChild(
3014 3014
                             $icms,
3015 3015
                             'cBenef',
@@ -3066,7 +3066,7 @@  discard block
 block discarded – undo
3066 3066
                             "$identificador  Valor do Crédido"
3067 3067
                         );
3068 3068
                     }
3069
-                    if($std->vICMSDeson > 0) {
3069
+                    if ($std->vICMSDeson > 0) {
3070 3070
                         $this->dom->addChild(
3071 3071
                             $icms,
3072 3072
                             'vICMSDeson',
@@ -3075,7 +3075,7 @@  discard block
 block discarded – undo
3075 3075
                             "$identificador  Valor do ICMS Desonerado"
3076 3076
                         );
3077 3077
                     }
3078
-                    if($std->cBenef) {
3078
+                    if ($std->cBenef) {
3079 3079
                         $this->dom->addChild(
3080 3080
                             $icms,
3081 3081
                             'cBenef',
@@ -3306,7 +3306,7 @@  discard block
 block discarded – undo
3306 3306
         $std = $this->equilizeParameters($std, $possible);
3307 3307
         $identificador = '#257 <infQ> - ';
3308 3308
         $this->infQ[] = $this->dom->createElement('infQ');
3309
-        $posicao = (int)count($this->infQ) - 1;
3309
+        $posicao = (int) count($this->infQ) - 1;
3310 3310
         $this->dom->addChild(
3311 3311
             $this->infQ[$posicao],
3312 3312
             'cUnid',
@@ -3789,7 +3789,7 @@  discard block
 block discarded – undo
3789 3789
         $std = $this->equilizeParameters($std, $possible);
3790 3790
         $identificador = '#345 <emiDocAnt> - ';
3791 3791
         $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt');
3792
-        $posicao = (int)count($this->emiDocAnt) - 1;
3792
+        $posicao = (int) count($this->emiDocAnt) - 1;
3793 3793
         if (!empty($std->CNPJ)) {
3794 3794
             $this->dom->addChild(
3795 3795
                 $this->emiDocAnt[$posicao],
@@ -3845,7 +3845,7 @@  discard block
 block discarded – undo
3845 3845
         $std = $this->equilizeParameters($std, $possible);
3846 3846
         $identificador = '#358 <idDocAntEle> - ';
3847 3847
         $this->idDocAntEle[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntEle');
3848
-        $posicao = (int)count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1;
3848
+        $posicao = (int) count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1;
3849 3849
         $this->dom->addChild(
3850 3850
             $this->idDocAntEle[count($this->emiDocAnt) - 1][$posicao],
3851 3851
             'chCTe',
@@ -3874,7 +3874,7 @@  discard block
 block discarded – undo
3874 3874
         $std = $this->equilizeParameters($std, $possible);
3875 3875
         $identificador = '#358 <idDocAntPap> - ';
3876 3876
         $this->idDocAntPap[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntPap');
3877
-        $posicao = (int)count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1;
3877
+        $posicao = (int) count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1;
3878 3878
         $this->dom->addChild(
3879 3879
             $this->idDocAntPap[count($this->emiDocAnt) - 1][$posicao],
3880 3880
             'tpDoc',
@@ -4137,7 +4137,7 @@  discard block
 block discarded – undo
4137 4137
         $std = $this->equilizeParameters($std, $possible);
4138 4138
         $identificador = '#12 <detCont> - ';
4139 4139
         $this->lacre[count($this->detCont) - 1][] = $this->dom->createElement('lacre');
4140
-        $posicao = (int)count($this->lacre[count($this->detCont) - 1]) - 1;
4140
+        $posicao = (int) count($this->lacre[count($this->detCont) - 1]) - 1;
4141 4141
         $this->dom->addChild(
4142 4142
             $this->lacre[count($this->detCont) - 1][$posicao],
4143 4143
             'nLacre',
@@ -4164,7 +4164,7 @@  discard block
 block discarded – undo
4164 4164
         $std = $this->equilizeParameters($std, $possible);
4165 4165
         $identificador = '#15 <detCont> <infNF> - ';
4166 4166
         $this->infNFCont[count($this->detCont) - 1][] = $this->dom->createElement('infNF');
4167
-        $posicao = (int)count($this->infNFCont[count($this->detCont) - 1]) - 1;
4167
+        $posicao = (int) count($this->infNFCont[count($this->detCont) - 1]) - 1;
4168 4168
         $this->dom->addChild(
4169 4169
             $this->infNFCont[count($this->detCont) - 1][$posicao],
4170 4170
             'serie',
@@ -4198,7 +4198,7 @@  discard block
 block discarded – undo
4198 4198
         $std = $this->equilizeParameters($std, $possible);
4199 4199
         $identificador = '#19 <infNFe> - ';
4200 4200
         $this->infNFeCont[count($this->detCont) - 1][] = $this->dom->createElement('infNFe');
4201
-        $posicao = (int)count($this->infNFeCont[count($this->detCont) - 1]) - 1;
4201
+        $posicao = (int) count($this->infNFeCont[count($this->detCont) - 1]) - 1;
4202 4202
         $this->dom->addChild(
4203 4203
             $this->infNFeCont[count($this->detCont) - 1][$posicao],
4204 4204
             'chave',
Please login to merge, or discard this patch.