Passed
Push — master ( 380f19...ba17a5 )
by Roberto
04:44 queued 45s
created
src/CTe/DacteV3.php 1 patch
Spacing   +61 added lines, -63 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             $this->toma4 = $this->dom->getElementsByTagName("toma4")->item(0);
207 207
             $this->toma03 = $this->dom->getElementsByTagName("toma3")->item(0);
208 208
             //Tag tomador é identificado por toma03 na versão 2.00
209
-            if ($this->infCte->getAttribute("versao")=="2.00") {
209
+            if ($this->infCte->getAttribute("versao") == "2.00") {
210 210
                 $this->toma03 = $this->dom->getElementsByTagName("toma03")->item(0);
211 211
             }
212 212
             //modal aquaviário
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
             }
449 449
             $x = $xInic;
450 450
             $r = $this->zObs($x, $y);
451
-            $y = $y-6;
451
+            $y = $y - 6;
452 452
             switch ($this->modal) {
453 453
                 case '1':
454 454
                     $y += 25.9;
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
             'font' => $this->fontePadrao,
651 651
             'size' => 7,
652 652
             'style' => '');
653
-        $fone = $this->pSimpleGetValue($this->enderEmit, "fone")!=""? $this->zFormatFone($this->enderEmit):'';
653
+        $fone = $this->pSimpleGetValue($this->enderEmit, "fone") != "" ? $this->zFormatFone($this->enderEmit) : '';
654 654
         $lgr = $this->pSimpleGetValue($this->enderEmit, "xLgr");
655 655
         $nro = $this->pSimpleGetValue($this->enderEmit, "nro");
656 656
         $cpl = $this->pSimpleGetValue($this->enderEmit, "xCpl");
@@ -743,31 +743,31 @@  discard block
 block discarded – undo
743 743
         $this->pdf->Line($x, $y1 + 8, $w + 3, $y1 + 8);
744 744
         $toma = $this->pSimpleGetValue($this->ide, "indGlobalizado");
745 745
         //0-Remetente;1-Expedidor;2-Recebedor;3-Destinatário;4 - Outros
746
-        if ($toma==1) {
746
+        if ($toma == 1) {
747 747
             $aFont = array(
748 748
             'font' => $this->fontePadrao,
749 749
             'size' => 11,
750 750
             'style' => '');
751
-            $this->pTextBox($x-14.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
751
+            $this->pTextBox($x - 14.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
752 752
         } else {
753 753
             $aFont = array(
754 754
             'font' => $this->fontePadrao,
755 755
             'size' => 11,
756 756
             'style' => '');
757
-            $this->pTextBox($x+3.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
757
+            $this->pTextBox($x + 3.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
758 758
         }
759 759
         $aFont = $this->formatNegrito;
760
-        $this->pdf->Line($x+5, $x+48, $x+5, $x+52);
761
-        $this->pdf->Line($x+10, $x+48, $x+10, $x+52);
762
-        $this->pdf->Line($x+5, $x+48, $x+10, $x+48);
763
-        $this->pdf->Line($x+5, $x+52, $x+10, $x+52);
764
-        $this->pTextBox($x-9, $y2+1.4 + 3, $w * 0.5, $h1, 'SIM', $aFont, 'T', 'C', 0, '', false);
760
+        $this->pdf->Line($x + 5, $x + 48, $x + 5, $x + 52);
761
+        $this->pdf->Line($x + 10, $x + 48, $x + 10, $x + 52);
762
+        $this->pdf->Line($x + 5, $x + 48, $x + 10, $x + 48);
763
+        $this->pdf->Line($x + 5, $x + 52, $x + 10, $x + 52);
764
+        $this->pTextBox($x - 9, $y2 + 1.4 + 3, $w * 0.5, $h1, 'SIM', $aFont, 'T', 'C', 0, '', false);
765 765
 
766
-        $this->pdf->Line($x+23, $x+48, $x+23, $x+52);
767
-        $this->pdf->Line($x+28, $x+48, $x+28, $x+52);
768
-        $this->pdf->Line($x+23, $x+48, $x+28, $x+48);
769
-        $this->pdf->Line($x+23, $x+52, $x+28, $x+52);
770
-        $this->pTextBox($x+9.8, $y2+1.4 + 3, $w * 0.5, $h1, 'NÃO', $aFont, 'T', 'C', 0, '', false);
766
+        $this->pdf->Line($x + 23, $x + 48, $x + 23, $x + 52);
767
+        $this->pdf->Line($x + 28, $x + 48, $x + 28, $x + 52);
768
+        $this->pdf->Line($x + 23, $x + 48, $x + 28, $x + 48);
769
+        $this->pdf->Line($x + 23, $x + 52, $x + 28, $x + 52);
770
+        $this->pTextBox($x + 9.8, $y2 + 1.4 + 3, $w * 0.5, $h1, 'NÃO', $aFont, 'T', 'C', 0, '', false);
771 771
 
772 772
         //FORMA DE PAGAMENTO
773 773
         $texto = 'NFORMAÇÕES DO CT-E GLOBALIZADO';
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
             'font' => $this->fontePadrao,
777 777
             'size' => 8,
778 778
             'style' => '');
779
-        $this->pTextBox($x+2 + $wa + 4.5, $y2-0.7, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, '');
779
+        $this->pTextBox($x + 2 + $wa + 4.5, $y2 - 0.7, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, '');
780 780
         $forma = $this->pSimpleGetValue($this->ide, "forPag");
781 781
         //##################################################################
782 782
         //coluna direita
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
             'style' => '');
885 885
         $this->pTextBox($xa, $y + 1, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
886 886
         //$texto = '1/1';
887
-        $texto = $pag."/".$totPag;
887
+        $texto = $pag . "/" . $totPag;
888 888
         $aFont = $this->formatNegrito;
889 889
         $this->pTextBox($xa, $y + 5, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
890 890
         $this->pdf->Line($xa + $wa, $y, $xa + $wa, $y + $h + 1);
@@ -1086,7 +1086,7 @@  discard block
 block discarded – undo
1086 1086
             $this->pdf->SetTextColor(0, 0, 0);
1087 1087
         }
1088 1088
         //indicar sem valor
1089
-        if ($tpAmb != 1 && $this->preVisualizar=='0') { // caso não seja uma DA de produção
1089
+        if ($tpAmb != 1 && $this->preVisualizar == '0') { // caso não seja uma DA de produção
1090 1090
             $x = 10;
1091 1091
             if ($this->orientacao == 'P') {
1092 1092
                 $y = round($this->hPrint * 2 / 3, 0);
@@ -1109,7 +1109,7 @@  discard block
 block discarded – undo
1109 1109
             $texto = "AMBIENTE DE HOMOLOGAÇÃO";
1110 1110
             $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1111 1111
             $this->pdf->SetTextColor(0, 0, 0);
1112
-        } elseif ($this->preVisualizar=='1') { // caso seja uma DA de Pré-Visualização
1112
+        } elseif ($this->preVisualizar == '1') { // caso seja uma DA de Pré-Visualização
1113 1113
             $h = 5;
1114 1114
             $w = $maxW - (2 * 10);
1115 1115
             $x = 55;
@@ -1127,14 +1127,14 @@  discard block
 block discarded – undo
1127 1127
                 'size' => 41,
1128 1128
                 'style' => 'B');
1129 1129
             $texto = "Sem Validade Jurídica";
1130
-            $this->pTextBox90($x+20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1130
+            $this->pTextBox90($x + 20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1131 1131
             $this->pdf->SetTextColor(90, 90, 90);
1132 1132
             $texto = "SEM VALOR FISCAL";
1133 1133
             $aFont = array(
1134 1134
                 'font' => $this->fontePadrao,
1135 1135
                 'size' => 48,
1136 1136
                 'style' => 'B');
1137
-            $this->pTextBox90($x+40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1137
+            $this->pTextBox90($x + 40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1138 1138
             $this->pdf->SetTextColor(0, 0, 0); // voltar a cor default
1139 1139
         } else {
1140 1140
             $x = 10;
@@ -1220,13 +1220,13 @@  discard block
 block discarded – undo
1220 1220
             'font' => $this->fontePadrao,
1221 1221
             'size' => 6,
1222 1222
             'style' => '');
1223
-        $this->pTextBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
1224
-        $texto = $this->nomeDesenvolvedor . ' - '. $this->siteDesenvolvedor;
1223
+        $this->pTextBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
1224
+        $texto = $this->nomeDesenvolvedor . ' - ' . $this->siteDesenvolvedor;
1225 1225
         $aFont = array(
1226 1226
             'font' => $this->fontePadrao,
1227 1227
             'size' => 6,
1228 1228
             'style' => '');
1229
-        $this->pTextBox($x-50, $y+2, $w, 4, $texto, $aFont, 'T', 'R', 0, $this->siteDesenvolvedor);
1229
+        $this->pTextBox($x - 50, $y + 2, $w, 4, $texto, $aFont, 'T', 'R', 0, $this->siteDesenvolvedor);
1230 1230
     } //fim zRodape
1231 1231
 
1232 1232
     /**
@@ -1312,7 +1312,7 @@  discard block
 block discarded – undo
1312 1312
         $aFont = $this->formatPadrao;
1313 1313
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1314 1314
         //$texto = $this->zFormatFone($this->rem);
1315
-        $texto = $this->pSimpleGetValue($this->rem, "fone")!=""? $this->zFormatFone($this->rem):'';
1315
+        $texto = $this->pSimpleGetValue($this->rem, "fone") != "" ? $this->zFormatFone($this->rem) : '';
1316 1316
         $aFont = $this->formatNegrito;
1317 1317
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1318 1318
     } //fim da função remetenteDACTE
@@ -1399,7 +1399,7 @@  discard block
 block discarded – undo
1399 1399
         $aFont = $this->formatPadrao;
1400 1400
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1401 1401
         //$texto = $this->zFormatFone($this->dest);
1402
-        $texto = $this->pSimpleGetValue($this->dest, "fone")!=""? $this->zFormatFone($this->dest):'';
1402
+        $texto = $this->pSimpleGetValue($this->dest, "fone") != "" ? $this->zFormatFone($this->dest) : '';
1403 1403
         $aFont = $this->formatNegrito;
1404 1404
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1405 1405
     } //fim da função destinatarioDACTE
@@ -1439,8 +1439,7 @@  discard block
 block discarded – undo
1439 1439
             $texto = $this->pSimpleGetValue($this->enderExped, "xLgr") . ', ';
1440 1440
             $texto .= $this->pSimpleGetValue($this->enderExped, "nro");
1441 1441
             $texto .= $this->pSimpleGetValue($this->enderExped, "xCpl") != "" ?
1442
-                ' - ' . $this->pSimpleGetValue($this->enderExped, "xCpl") :
1443
-                '';
1442
+                ' - ' . $this->pSimpleGetValue($this->enderExped, "xCpl") : '';
1444 1443
         } else {
1445 1444
             $texto = '';
1446 1445
         }
@@ -1495,7 +1494,7 @@  discard block
 block discarded – undo
1495 1494
         $aFont = $this->formatPadrao;
1496 1495
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1497 1496
         if (isset($this->exped)) {
1498
-            $texto = $this->pSimpleGetValue($this->exped, "fone")!=""? $this->zFormatFone($this->exped):'';
1497
+            $texto = $this->pSimpleGetValue($this->exped, "fone") != "" ? $this->zFormatFone($this->exped) : '';
1499 1498
             $aFont = $this->formatNegrito;
1500 1499
             $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1501 1500
         }
@@ -1536,8 +1535,7 @@  discard block
 block discarded – undo
1536 1535
             $texto = $this->pSimpleGetValue($this->enderReceb, "xLgr") . ', ';
1537 1536
             $texto .= $this->pSimpleGetValue($this->enderReceb, "nro");
1538 1537
             $texto .= ($this->pSimpleGetValue($this->enderReceb, "xCpl") != "") ?
1539
-                ' - ' . $this->pSimpleGetValue($this->enderReceb, "xCpl") :
1540
-                '';
1538
+                ' - ' . $this->pSimpleGetValue($this->enderReceb, "xCpl") : '';
1541 1539
         } else {
1542 1540
             $texto = '';
1543 1541
         }
@@ -1592,7 +1590,7 @@  discard block
 block discarded – undo
1592 1590
         $aFont = $this->formatPadrao;
1593 1591
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1594 1592
         if (isset($this->receb)) {
1595
-            $texto = $this->pSimpleGetValue($this->receb, "fone")!=""? $this->zFormatFone($this->receb):'';
1593
+            $texto = $this->pSimpleGetValue($this->receb, "fone") != "" ? $this->zFormatFone($this->receb) : '';
1596 1594
             $aFont = $this->formatNegrito;
1597 1595
             $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1598 1596
         }
@@ -1682,7 +1680,7 @@  discard block
 block discarded – undo
1682 1680
         $texto = 'FONE';
1683 1681
         $aFont = $this->formatPadrao;
1684 1682
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1685
-        $texto = $this->pSimpleGetValue($this->toma, "fone")!=""? $this->zFormatFone($this->toma):'';
1683
+        $texto = $this->pSimpleGetValue($this->toma, "fone") != "" ? $this->zFormatFone($this->toma) : '';
1686 1684
         $aFont = $this->formatNegrito;
1687 1685
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1688 1686
     } //fim da função tomadorDACTE
@@ -1751,48 +1749,48 @@  discard block
 block discarded – undo
1751 1749
             'font' => $this->fontePadrao,
1752 1750
             'size' => 5,
1753 1751
             'style' => '');
1754
-        $this->pTextBox($x+8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1752
+        $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1755 1753
         $texto = number_format($qCarga, 3, ",", ".");
1756 1754
         $aFont = array(
1757 1755
             'font' => $this->fontePadrao,
1758 1756
             'size' => 7,
1759 1757
             'style' => 'B');
1760
-        $this->pTextBox($x+2, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1758
+        $this->pTextBox($x + 2, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1761 1759
         $x = $w * 0.12;
1762
-        $this->pdf->Line($x+13.5, $y, $x+13.5, $y + 9);
1760
+        $this->pdf->Line($x + 13.5, $y, $x + 13.5, $y + 9);
1763 1761
         
1764 1762
         $texto = 'PESO BASE CÁLCULO (KG)';
1765 1763
         $aFont = array(
1766 1764
             'font' => $this->fontePadrao,
1767 1765
             'size' => 5,
1768 1766
             'style' => '');
1769
-        $this->pTextBox($x+20, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1767
+        $this->pTextBox($x + 20, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1770 1768
         $texto = number_format($qCarga, 3, ",", ".");
1771 1769
         $aFont = array(
1772 1770
             'font' => $this->fontePadrao,
1773 1771
             'size' => 7,
1774 1772
             'style' => 'B');
1775
-        $this->pTextBox($x+17, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1773
+        $this->pTextBox($x + 17, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1776 1774
         $x = $w * 0.24;
1777
-        $this->pdf->Line($x+25, $y, $x+25, $y + 9);
1775
+        $this->pdf->Line($x + 25, $y, $x + 25, $y + 9);
1778 1776
         
1779 1777
         $texto = 'PESO AFERIDO (KG)';
1780 1778
         $aFont = array(
1781 1779
             'font' => $this->fontePadrao,
1782 1780
             'size' => 5,
1783 1781
             'style' => '');
1784
-        $this->pTextBox($x+35, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1782
+        $this->pTextBox($x + 35, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1785 1783
         $texto = number_format($qCarga, 3, ",", ".");
1786 1784
         $aFont = array(
1787 1785
             'font' => $this->fontePadrao,
1788 1786
             'size' => 7,
1789 1787
             'style' => 'B');
1790
-        $this->pTextBox($x+28, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1788
+        $this->pTextBox($x + 28, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1791 1789
         $x = $w * 0.36;
1792
-        $this->pdf->Line($x+41.3, $y, $x+41.3, $y + 9);
1790
+        $this->pdf->Line($x + 41.3, $y, $x + 41.3, $y + 9);
1793 1791
         $texto = 'CUBAGEM(M3)';
1794 1792
         $aFont = $this->formatPadrao;
1795
-        $this->pTextBox($x+60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1793
+        $this->pTextBox($x + 60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1796 1794
         $qCarga = '';
1797 1795
         if ($this->pSimpleGetValue($this->infQ->item(0), "cUnid") == '00') {
1798 1796
             $qCarga = $this->pSimpleGetValue($this->infQ->item(0), "qCarga");
@@ -1806,12 +1804,12 @@  discard block
 block discarded – undo
1806 1804
             'font' => $this->fontePadrao,
1807 1805
             'size' => 7,
1808 1806
             'style' => 'B');
1809
-        $this->pTextBox($x+50, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1807
+        $this->pTextBox($x + 50, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1810 1808
         $x = $w * 0.45;
1811 1809
         //$this->pdf->Line($x+37, $y, $x+37, $y + 9);
1812 1810
         $texto = 'QTDE(VOL)';
1813 1811
         $aFont = $this->formatPadrao;
1814
-        $this->pTextBox($x+85, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1812
+        $this->pTextBox($x + 85, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1815 1813
         $qCarga = '';
1816 1814
         if ($this->pSimpleGetValue($this->infQ->item(2), "cUnid") == 03) {
1817 1815
             $qCarga = $this->pSimpleGetValue($this->infQ->item(2), "qCarga");
@@ -1823,9 +1821,9 @@  discard block
 block discarded – undo
1823 1821
             'font' => $this->fontePadrao,
1824 1822
             'size' => 7,
1825 1823
             'style' => 'B');
1826
-        $this->pTextBox($x+85, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1824
+        $this->pTextBox($x + 85, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1827 1825
         $x = $w * 0.53;
1828
-        $this->pdf->Line($x+56, $y, $x+56, $y + 9);
1826
+        $this->pdf->Line($x + 56, $y, $x + 56, $y + 9);
1829 1827
         /*$texto = 'NOME DA SEGURADORA';
1830 1828
         $aFont = $this->formatPadrao;
1831 1829
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ -2004,7 +2002,7 @@  discard block
 block discarded – undo
2004 2002
         $aFont = $this->formatPadrao;
2005 2003
         $this->pTextBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
2006 2004
         
2007
-        $wCol02=0.18;
2005
+        $wCol02 = 0.18;
2008 2006
         $x += $w * $wCol02;
2009 2007
         $this->pdf->Line($x, $y, $x, $y + 9.5);
2010 2008
         $texto = 'ALÍQ ICMS';
@@ -2085,7 +2083,7 @@  discard block
 block discarded – undo
2085 2083
         $x += $w * $wCol02;
2086 2084
         
2087 2085
         $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ?
2088
-            number_format($this->pSimpleGetValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :'';
2086
+            number_format($this->pSimpleGetValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : '';
2089 2087
         $aFont = $this->formatNegrito;
2090 2088
         $this->pTextBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
2091 2089
         
@@ -2256,7 +2254,7 @@  discard block
 block discarded – undo
2256 2254
             $this->arrayNFe[] = $chaveNFe;
2257 2255
         }
2258 2256
         $qtdeNFe = 1;
2259
-        if (count($this->arrayNFe) >15) {
2257
+        if (count($this->arrayNFe) > 15) {
2260 2258
             $this->flagDocOrigContinuacao = 1;
2261 2259
             $qtdeNFe = count($this->arrayNFe);
2262 2260
         }
@@ -2436,9 +2434,9 @@  discard block
 block discarded – undo
2436 2434
             //$h = 6 + 3; // de altura do texto (primeira linha
2437 2435
             //$h = 9 + 3.5 ;// segunda linha
2438 2436
             //$h = 9 + 3.5+ 3.5 ;// segunda linha
2439
-            $h = (( ( count($this->arrayNFe)/2 ) - 9) * 3.5)+9;
2440
-            if (count($this->arrayNFe)%2 !=0) {
2441
-                $h = $h+3.5;
2437
+            $h = (((count($this->arrayNFe) / 2) - 9) * 3.5) + 9;
2438
+            if (count($this->arrayNFe) % 2 != 0) {
2439
+                $h = $h + 3.5;
2442 2440
             } // Caso tenha apenas 1 registro na ultima linha
2443 2441
 
2444 2442
             $texto = 'DOCUMENTOS ORIGINÁRIOS - CONTINUACÃO';
@@ -2494,7 +2492,7 @@  discard block
 block discarded – undo
2494 2492
             $yIniDados += 3;
2495 2493
 
2496 2494
             while ($contador < (count($this->arrayNFe))) {
2497
-                if ($contador%(116*($i-1)) == 0) {
2495
+                if ($contador % (116 * ($i - 1)) == 0) {
2498 2496
 //                    $contador++;
2499 2497
                     break;
2500 2498
                 }
@@ -2629,14 +2627,14 @@  discard block
 block discarded – undo
2629 2627
             $texto .= $xObs;
2630 2628
         }
2631 2629
         $textoObs = explode("Motorista:", $texto);
2632
-        $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: '';
2630
+        $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : '';
2633 2631
         $texto .= $this->pSimpleGetValue($this->imp, "infAdFisco", "\r\n");
2634 2632
         $aFont = array(
2635 2633
             'font' => $this->fontePadrao,
2636 2634
             'size' => 7.5,
2637 2635
             'style' => '');
2638 2636
         $this->pTextBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false);
2639
-        $this->pTextBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
2637
+        $this->pTextBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
2640 2638
     } //fim da função obsDACTE
2641 2639
 
2642 2640
     /**
@@ -2675,11 +2673,11 @@  discard block
 block discarded – undo
2675 2673
         $this->pTextBox($x, $y + 3, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2676 2674
         $x += $w * 0.23;
2677 2675
         
2678
-        $this->pdf->Line($x-20, $y, $x-20, $y + 8.5); // LINHA A FRENTE DA RNTRC DA EMPRESA
2676
+        $this->pdf->Line($x - 20, $y, $x - 20, $y + 8.5); // LINHA A FRENTE DA RNTRC DA EMPRESA
2679 2677
         
2680 2678
         $texto = 'ESTE CONHECIMENTO DE TRANSPORTE ATENDE À LEGISLAÇÃO DE TRANSPORTE RODOVIÁRIO EM VIGOR';
2681 2679
         $aFont = $this->formatPadrao;
2682
-        $this->pTextBox($x-20, $y + 3, $w * 0.50, $h, $texto, $aFont, 'T', 'C', 0, '');
2680
+        $this->pTextBox($x - 20, $y + 3, $w * 0.50, $h, $texto, $aFont, 'T', 'C', 0, '');
2683 2681
     } //fim da função zModalRod
2684 2682
 
2685 2683
     /**
@@ -3140,7 +3138,7 @@  discard block
 block discarded – undo
3140 3138
      */
3141 3139
     protected function zCanhoto($x = 0, $y = 0)
3142 3140
     {
3143
-        $this->zhDashedLine($x, $y+2, $this->wPrint, 0.1, 80);
3141
+        $this->zhDashedLine($x, $y + 2, $this->wPrint, 0.1, 80);
3144 3142
         $y = $y + 2;
3145 3143
         $oldX = $x;
3146 3144
         $oldY = $y;
@@ -3179,7 +3177,7 @@  discard block
 block discarded – undo
3179 3177
         
3180 3178
         $this->pdf->Line($x, $y, $x, $y + 16.5);
3181 3179
         
3182
-        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n";
3180
+        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n";
3183 3181
         $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA';
3184 3182
         $aFont = array(
3185 3183
             'font' => $this->fontePadrao,
@@ -3189,14 +3187,14 @@  discard block
 block discarded – undo
3189 3187
         $x = $oldX;
3190 3188
         $y = $y + 5;
3191 3189
         
3192
-        $this->pdf->Line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
3190
+        $this->pdf->Line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
3193 3191
         
3194 3192
         $texto = 'RG';
3195 3193
         $aFont = array(
3196 3194
             'font' => $this->fontePadrao,
3197 3195
             'size' => 6,
3198 3196
             'style' => '');
3199
-        $this->pTextBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
3197
+        $this->pTextBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
3200 3198
         $x += $w * 0.85;
3201 3199
         
3202 3200
         $this->pdf->Line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E
Please login to merge, or discard this patch.