Passed
Pull Request — master (#236)
by
unknown
02:39
created
src/CTe/DacteV3.php 1 patch
Spacing   +64 added lines, -66 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             $this->toma4 = $this->dom->getElementsByTagName("toma4")->item(0);
213 213
             $this->toma03 = $this->dom->getElementsByTagName("toma3")->item(0);
214 214
             //Tag tomador é identificado por toma03 na versão 2.00
215
-            if ($this->infCte->getAttribute("versao")=="2.00") {
215
+            if ($this->infCte->getAttribute("versao") == "2.00") {
216 216
                 $this->toma03 = $this->dom->getElementsByTagName("toma03")->item(0);
217 217
             }
218 218
             //modal aquaviário
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
             }
431 431
             $x = $xInic;
432 432
             $r = $this->zObs($x, $y);
433
-            $y = $y-6;
433
+            $y = $y - 6;
434 434
             switch ($this->modal) {
435 435
                 case '1':
436 436
                     $y += 25.9;
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
             'font' => $this->fontePadrao,
633 633
             'size' => 7,
634 634
             'style' => '');
635
-        $fone = $this->getTagValue($this->enderEmit, "fone")!=""? $this->zFormatFone($this->enderEmit):'';
635
+        $fone = $this->getTagValue($this->enderEmit, "fone") != "" ? $this->zFormatFone($this->enderEmit) : '';
636 636
         $lgr = $this->getTagValue($this->enderEmit, "xLgr");
637 637
         $nro = $this->getTagValue($this->enderEmit, "nro");
638 638
         $cpl = $this->getTagValue($this->enderEmit, "xCpl");
@@ -726,30 +726,30 @@  discard block
 block discarded – undo
726 726
         $this->pdf->Line($x, $y1 + 8, $w + 3, $y1 + 8);
727 727
         $toma = $this->getTagValue($this->ide, "indGlobalizado");
728 728
         //0-Remetente;1-Expedidor;2-Recebedor;3-Destinatário;4 - Outros
729
-        if ($toma==1) {
729
+        if ($toma == 1) {
730 730
             $aFont = array(
731 731
             'font' => $this->fontePadrao,
732 732
             'size' => 11,
733 733
             'style' => '');
734
-            $this->pTextBox($x-14.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
734
+            $this->pTextBox($x - 14.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
735 735
         } else {
736 736
             $aFont = array(
737 737
             'font' => $this->fontePadrao,
738 738
             'size' => 11,
739 739
             'style' => '');
740
-            $this->pTextBox($x+3.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
741
-        }
742
-        $aFont = $this->formatNegrito;
743
-        $this->pdf->Line($x+3, $x+71, $x+3, $x+75);
744
-        $this->pdf->Line($x+8, $x+71, $x+8, $x+75);
745
-        $this->pdf->Line($x+3, $x+71, $x+8, $x+71);
746
-        $this->pdf->Line($x+3, $x+75, $x+8, $x+75);
747
-        $this->pTextBox($x-6, $y2+1.4 + 3, $w * 0.5, $h1, 'SIM', $aFont, 'T', 'C', 0, '', false);
748
-        $this->pdf->Line($x+18, $x+71, $x+18, $x+75);
749
-        $this->pdf->Line($x+23, $x+71, $x+23, $x+75);
750
-        $this->pdf->Line($x+18, $x+71, $x+23, $x+71);
751
-        $this->pdf->Line($x+18, $x+75, $x+23, $x+75);
752
-        $this->pTextBox($x+9.8, $y2+1.4 + 3, $w * 0.5, $h1, 'NÃO', $aFont, 'T', 'C', 0, '', false);
740
+            $this->pTextBox($x + 3.5, $y2 + 3.5, $w * 0.5, $h1, 'X', $aFont, 'T', 'C', 0, '', false);
741
+        }
742
+        $aFont = $this->formatNegrito;
743
+        $this->pdf->Line($x + 3, $x + 71, $x + 3, $x + 75);
744
+        $this->pdf->Line($x + 8, $x + 71, $x + 8, $x + 75);
745
+        $this->pdf->Line($x + 3, $x + 71, $x + 8, $x + 71);
746
+        $this->pdf->Line($x + 3, $x + 75, $x + 8, $x + 75);
747
+        $this->pTextBox($x - 6, $y2 + 1.4 + 3, $w * 0.5, $h1, 'SIM', $aFont, 'T', 'C', 0, '', false);
748
+        $this->pdf->Line($x + 18, $x + 71, $x + 18, $x + 75);
749
+        $this->pdf->Line($x + 23, $x + 71, $x + 23, $x + 75);
750
+        $this->pdf->Line($x + 18, $x + 71, $x + 23, $x + 71);
751
+        $this->pdf->Line($x + 18, $x + 75, $x + 23, $x + 75);
752
+        $this->pTextBox($x + 9.8, $y2 + 1.4 + 3, $w * 0.5, $h1, 'NÃO', $aFont, 'T', 'C', 0, '', false);
753 753
         //FORMA DE PAGAMENTO
754 754
         $texto = 'INF.DO CT-E GLOBALIZADO';
755 755
         $wd = 36;
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
             'font' => $this->fontePadrao,
758 758
             'size' => 8,
759 759
             'style' => '');
760
-        $this->pTextBox($x + $wa, $y2-0.5, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, '');
760
+        $this->pTextBox($x + $wa, $y2 - 0.5, $w * 0.5, $h1, $texto, $aFont, 'T', 'C', 0, '');
761 761
         $forma = $this->getTagValue($this->ide, "forPag");
762 762
         //##################################################################
763 763
         //coluna direita
@@ -866,7 +866,7 @@  discard block
 block discarded – undo
866 866
             'style' => '');
867 867
         $this->pTextBox($xa, $y + 1, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
868 868
         //$texto = '1/1';
869
-        $texto = $pag."/".$totPag;
869
+        $texto = $pag . "/" . $totPag;
870 870
         $aFont = $this->formatNegrito;
871 871
         $this->pTextBox($xa, $y + 5, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
872 872
         $this->pdf->Line($xa + $wa, $y, $xa + $wa, $y + $h + 1);
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
         $wa = 30;
890 890
         $texto = 'INSC.SUF.DO DEST';
891 891
         $aFont = $this->formatPadrao;
892
-        $this->pTextBox($xa-5, $y + 1, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
892
+        $this->pTextBox($xa - 5, $y + 1, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
893 893
         $texto = $this->getTagValue($this->dest, "ISUF");
894 894
         $aFont = array(
895 895
             'font' => $this->fontePadrao,
@@ -973,7 +973,7 @@  discard block
 block discarded – undo
973 973
         $aFont = $this->formatNegrito;
974 974
         $this->pTextBox($x, $y + 12, $wa, $h, $texto, $aFont, 'T', 'C', 0, '');
975 975
         if ($this->qrCodCTe !== null) {
976
-            $this->pQRDACTE($y-27);
976
+            $this->pQRDACTE($y - 27);
977 977
             $w = 45;
978 978
             $x += 92.5;
979 979
             $this->pTextBox($x, $y - 34, $w + 0.5, $h + 41.5);
@@ -1072,7 +1072,7 @@  discard block
 block discarded – undo
1072 1072
             $this->pdf->SetTextColor(0, 0, 0);
1073 1073
         }
1074 1074
         //indicar sem valor
1075
-        if ($tpAmb != 1 && $this->preVisualizar=='0') { // caso não seja uma DA de produção
1075
+        if ($tpAmb != 1 && $this->preVisualizar == '0') { // caso não seja uma DA de produção
1076 1076
             $x = 10;
1077 1077
             if ($this->orientacao == 'P') {
1078 1078
                 $y = round($this->hPrint * 2 / 3, 0);
@@ -1095,7 +1095,7 @@  discard block
 block discarded – undo
1095 1095
             $texto = "AMBIENTE DE HOMOLOGAÇÃO";
1096 1096
             $this->pTextBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1097 1097
             $this->pdf->SetTextColor(0, 0, 0);
1098
-        } elseif ($this->preVisualizar=='1') { // caso seja uma DA de Pré-Visualização
1098
+        } elseif ($this->preVisualizar == '1') { // caso seja uma DA de Pré-Visualização
1099 1099
             $h = 5;
1100 1100
             $w = $maxW - (2 * 10);
1101 1101
             $x = 55;
@@ -1113,14 +1113,14 @@  discard block
 block discarded – undo
1113 1113
                 'size' => 41,
1114 1114
                 'style' => 'B');
1115 1115
             $texto = "Sem Validade Jurídica";
1116
-            $this->pTextBox90($x+20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1116
+            $this->pTextBox90($x + 20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1117 1117
             $this->pdf->SetTextColor(90, 90, 90);
1118 1118
             $texto = "SEM VALOR FISCAL";
1119 1119
             $aFont = array(
1120 1120
                 'font' => $this->fontePadrao,
1121 1121
                 'size' => 48,
1122 1122
                 'style' => 'B');
1123
-            $this->pTextBox90($x+40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1123
+            $this->pTextBox90($x + 40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1124 1124
             $this->pdf->SetTextColor(0, 0, 0); // voltar a cor default
1125 1125
         } else {
1126 1126
             $x = 10;
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
             'size' => 6,
1208 1208
             'style' => '');
1209 1209
         $this->pTextBox($x, $y, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
1210
-        $texto = 'Desenvolvido por '.$this->nomeDesenvolvedor . ' - '. $this->siteDesenvolvedor;
1210
+        $texto = 'Desenvolvido por ' . $this->nomeDesenvolvedor . ' - ' . $this->siteDesenvolvedor;
1211 1211
         $aFont = array(
1212 1212
             'font' => $this->fontePadrao,
1213 1213
             'size' => 6,
@@ -1298,7 +1298,7 @@  discard block
 block discarded – undo
1298 1298
         $aFont = $this->formatPadrao;
1299 1299
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1300 1300
         //$texto = $this->zFormatFone($this->rem);
1301
-        $texto = $this->getTagValue($this->rem, "fone")!=""? $this->zFormatFone($this->rem):'';
1301
+        $texto = $this->getTagValue($this->rem, "fone") != "" ? $this->zFormatFone($this->rem) : '';
1302 1302
         $aFont = $this->formatNegrito;
1303 1303
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1304 1304
     }
@@ -1385,7 +1385,7 @@  discard block
 block discarded – undo
1385 1385
         $aFont = $this->formatPadrao;
1386 1386
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1387 1387
         //$texto = $this->zFormatFone($this->dest);
1388
-        $texto = $this->getTagValue($this->dest, "fone")!=""? $this->zFormatFone($this->dest):'';
1388
+        $texto = $this->getTagValue($this->dest, "fone") != "" ? $this->zFormatFone($this->dest) : '';
1389 1389
         $aFont = $this->formatNegrito;
1390 1390
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1391 1391
     }
@@ -1425,8 +1425,7 @@  discard block
 block discarded – undo
1425 1425
             $texto = $this->getTagValue($this->enderExped, "xLgr") . ', ';
1426 1426
             $texto .= $this->getTagValue($this->enderExped, "nro");
1427 1427
             $texto .= $this->getTagValue($this->enderExped, "xCpl") != "" ?
1428
-                ' - ' . $this->getTagValue($this->enderExped, "xCpl") :
1429
-                '';
1428
+                ' - ' . $this->getTagValue($this->enderExped, "xCpl") : '';
1430 1429
         } else {
1431 1430
             $texto = '';
1432 1431
         }
@@ -1481,7 +1480,7 @@  discard block
 block discarded – undo
1481 1480
         $aFont = $this->formatPadrao;
1482 1481
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1483 1482
         if (isset($this->exped)) {
1484
-            $texto = $this->getTagValue($this->exped, "fone")!=""? $this->zFormatFone($this->exped):'';
1483
+            $texto = $this->getTagValue($this->exped, "fone") != "" ? $this->zFormatFone($this->exped) : '';
1485 1484
             $aFont = $this->formatNegrito;
1486 1485
             $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1487 1486
         }
@@ -1522,8 +1521,7 @@  discard block
 block discarded – undo
1522 1521
             $texto = $this->getTagValue($this->enderReceb, "xLgr") . ', ';
1523 1522
             $texto .= $this->getTagValue($this->enderReceb, "nro");
1524 1523
             $texto .= ($this->getTagValue($this->enderReceb, "xCpl") != "") ?
1525
-                ' - ' . $this->getTagValue($this->enderReceb, "xCpl") :
1526
-                '';
1524
+                ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : '';
1527 1525
         } else {
1528 1526
             $texto = '';
1529 1527
         }
@@ -1578,7 +1576,7 @@  discard block
 block discarded – undo
1578 1576
         $aFont = $this->formatPadrao;
1579 1577
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1580 1578
         if (isset($this->receb)) {
1581
-            $texto = $this->getTagValue($this->receb, "fone")!=""? $this->zFormatFone($this->receb):'';
1579
+            $texto = $this->getTagValue($this->receb, "fone") != "" ? $this->zFormatFone($this->receb) : '';
1582 1580
             $aFont = $this->formatNegrito;
1583 1581
             $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1584 1582
         }
@@ -1668,7 +1666,7 @@  discard block
 block discarded – undo
1668 1666
         $texto = 'FONE';
1669 1667
         $aFont = $this->formatPadrao;
1670 1668
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1671
-        $texto = $this->getTagValue($this->toma, "fone")!=""? $this->zFormatFone($this->toma):'';
1669
+        $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->zFormatFone($this->toma) : '';
1672 1670
         $aFont = $this->formatNegrito;
1673 1671
         $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1674 1672
     }
@@ -1736,46 +1734,46 @@  discard block
 block discarded – undo
1736 1734
             'font' => $this->fontePadrao,
1737 1735
             'size' => 5,
1738 1736
             'style' => '');
1739
-        $this->pTextBox($x+8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1737
+        $this->pTextBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1740 1738
         $texto = number_format($qCarga, 3, ",", ".");
1741 1739
         $aFont = array(
1742 1740
             'font' => $this->fontePadrao,
1743 1741
             'size' => 7,
1744 1742
             'style' => 'B');
1745
-        $this->pTextBox($x+2, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1743
+        $this->pTextBox($x + 2, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1746 1744
         $x = $w * 0.12;
1747
-        $this->pdf->Line($x+13.5, $y, $x+13.5, $y + 9);
1745
+        $this->pdf->Line($x + 13.5, $y, $x + 13.5, $y + 9);
1748 1746
         $texto = 'PESO BASE CÁLCULO (KG)';
1749 1747
         $aFont = array(
1750 1748
             'font' => $this->fontePadrao,
1751 1749
             'size' => 5,
1752 1750
             'style' => '');
1753
-        $this->pTextBox($x+20, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1751
+        $this->pTextBox($x + 20, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1754 1752
         $texto = number_format($qCarga, 3, ",", ".");
1755 1753
         $aFont = array(
1756 1754
             'font' => $this->fontePadrao,
1757 1755
             'size' => 7,
1758 1756
             'style' => 'B');
1759
-        $this->pTextBox($x+17, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1757
+        $this->pTextBox($x + 17, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1760 1758
         $x = $w * 0.24;
1761
-        $this->pdf->Line($x+25, $y, $x+25, $y + 9);
1759
+        $this->pdf->Line($x + 25, $y, $x + 25, $y + 9);
1762 1760
         $texto = 'PESO AFERIDO (KG)';
1763 1761
         $aFont = array(
1764 1762
             'font' => $this->fontePadrao,
1765 1763
             'size' => 5,
1766 1764
             'style' => '');
1767
-        $this->pTextBox($x+35, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1765
+        $this->pTextBox($x + 35, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1768 1766
         $texto = number_format($qCarga, 3, ",", ".");
1769 1767
         $aFont = array(
1770 1768
             'font' => $this->fontePadrao,
1771 1769
             'size' => 7,
1772 1770
             'style' => 'B');
1773
-        $this->pTextBox($x+28, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1771
+        $this->pTextBox($x + 28, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1774 1772
         $x = $w * 0.36;
1775
-        $this->pdf->Line($x+41.3, $y, $x+41.3, $y + 9);
1773
+        $this->pdf->Line($x + 41.3, $y, $x + 41.3, $y + 9);
1776 1774
         $texto = 'CUBAGEM(M3)';
1777 1775
         $aFont = $this->formatPadrao;
1778
-        $this->pTextBox($x+60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1776
+        $this->pTextBox($x + 60, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1779 1777
         $qCarga = '';
1780 1778
         foreach ($this->infQ as $infQ) {
1781 1779
             if ($this->getTagValue($infQ, "cUnid") == '00') {
@@ -1787,12 +1785,12 @@  discard block
 block discarded – undo
1787 1785
             'font' => $this->fontePadrao,
1788 1786
             'size' => 7,
1789 1787
             'style' => 'B');
1790
-        $this->pTextBox($x+50, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1788
+        $this->pTextBox($x + 50, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1791 1789
         $x = $w * 0.45;
1792 1790
         //$this->pdf->Line($x+37, $y, $x+37, $y + 9);
1793 1791
         $texto = 'QTDE(VOL)';
1794 1792
         $aFont = $this->formatPadrao;
1795
-        $this->pTextBox($x+85, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1793
+        $this->pTextBox($x + 85, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1796 1794
         $qCarga = '';
1797 1795
         foreach ($this->infQ as $infQ) {
1798 1796
             if ($this->getTagValue($infQ, "cUnid") == '03') {
@@ -1804,9 +1802,9 @@  discard block
 block discarded – undo
1804 1802
             'font' => $this->fontePadrao,
1805 1803
             'size' => 7,
1806 1804
             'style' => 'B');
1807
-        $this->pTextBox($x+85, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1805
+        $this->pTextBox($x + 85, $y + 3, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1808 1806
         $x = $w * 0.53;
1809
-        $this->pdf->Line($x+56, $y, $x+56, $y + 9);
1807
+        $this->pdf->Line($x + 56, $y, $x + 56, $y + 9);
1810 1808
         /*$texto = 'NOME DA SEGURADORA';
1811 1809
         $aFont = $this->formatPadrao;
1812 1810
         $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ -1982,7 +1980,7 @@  discard block
 block discarded – undo
1982 1980
         $texto = 'BASE DE CALCULO';
1983 1981
         $aFont = $this->formatPadrao;
1984 1982
         $this->pTextBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1985
-        $wCol02=0.15;
1983
+        $wCol02 = 0.15;
1986 1984
         $x += $w * $wCol02;
1987 1985
         $this->pdf->Line($x, $y, $x, $y + 9.5);
1988 1986
         $texto = 'ALÍQ ICMS';
@@ -2284,7 +2282,7 @@  discard block
 block discarded – undo
2284 2282
             $this->arrayNFe[] = $chaveNFe;
2285 2283
         }
2286 2284
         $qtdeNFe = 1;
2287
-        if (count($this->arrayNFe) >15) {
2285
+        if (count($this->arrayNFe) > 15) {
2288 2286
             $this->flagDocOrigContinuacao = 1;
2289 2287
             $qtdeNFe = count($this->arrayNFe);
2290 2288
         }
@@ -2462,9 +2460,9 @@  discard block
 block discarded – undo
2462 2460
             //$h = 6 + 3; // de altura do texto (primeira linha
2463 2461
             //$h = 9 + 3.5 ;// segunda linha
2464 2462
             //$h = 9 + 3.5+ 3.5 ;// segunda linha
2465
-            $h = (( ( count($this->arrayNFe)/2 ) - 9) * 3.5)+9;
2466
-            if (count($this->arrayNFe)%2 !=0) {
2467
-                $h = $h+3.5;
2463
+            $h = (((count($this->arrayNFe) / 2) - 9) * 3.5) + 9;
2464
+            if (count($this->arrayNFe) % 2 != 0) {
2465
+                $h = $h + 3.5;
2468 2466
             } // Caso tenha apenas 1 registro na ultima linha
2469 2467
             $texto = 'DOCUMENTOS ORIGINÁRIOS - CONTINUACÃO';
2470 2468
             $aFont = $this->formatPadrao;
@@ -2514,7 +2512,7 @@  discard block
 block discarded – undo
2514 2512
             $auxX = $oldX;
2515 2513
             $yIniDados += 3;
2516 2514
             while ($contador < (count($this->arrayNFe))) {
2517
-                if ($contador%(116*($i-1)) == 0) {
2515
+                if ($contador % (116 * ($i - 1)) == 0) {
2518 2516
 //                    $contador++;
2519 2517
                     break;
2520 2518
                 }
@@ -2655,14 +2653,14 @@  discard block
 block discarded – undo
2655 2653
             $texto .= $xObs;
2656 2654
         }
2657 2655
         $textoObs = explode("Motorista:", $texto);
2658
-        $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: '';
2656
+        $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : '';
2659 2657
         $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n");
2660 2658
         $aFont = array(
2661 2659
             'font' => $this->fontePadrao,
2662 2660
             'size' => 7.5,
2663 2661
             'style' => '');
2664 2662
         $this->pTextBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false);
2665
-        $this->pTextBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
2663
+        $this->pTextBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
2666 2664
     }
2667 2665
 
2668 2666
     /**
@@ -2700,10 +2698,10 @@  discard block
 block discarded – undo
2700 2698
         $aFont = $this->formatNegrito;
2701 2699
         $this->pTextBox($x, $y + 3, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2702 2700
         $x += $w * 0.23;
2703
-        $this->pdf->Line($x-20, $y, $x-20, $y + 6); // LINHA A FRENTE DA RNTRC DA EMPRESA
2701
+        $this->pdf->Line($x - 20, $y, $x - 20, $y + 6); // LINHA A FRENTE DA RNTRC DA EMPRESA
2704 2702
         $texto = 'ESTE CONHECIMENTO DE TRANSPORTE ATENDE À LEGISLAÇÃO DE TRANSPORTE RODOVIÁRIO EM VIGOR';
2705 2703
         $aFont = $this->formatPadrao;
2706
-        $this->pTextBox($x-20, $y + 3, $w * 0.50, $h, $texto, $aFont, 'T', 'C', 0, '');
2704
+        $this->pTextBox($x - 20, $y + 3, $w * 0.50, $h, $texto, $aFont, 'T', 'C', 0, '');
2707 2705
     }
2708 2706
 
2709 2707
     /**
@@ -2736,13 +2734,13 @@  discard block
 block discarded – undo
2736 2734
         $this->pTextBox($x, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2737 2735
         $texto = 'CLASSE DA TARIFA';
2738 2736
         $aFont = $this->formatPadrao;
2739
-        $this->pTextBox($x+50, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2737
+        $this->pTextBox($x + 50, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2740 2738
         $texto = 'CÓDIGO DA TARIFA';
2741 2739
         $aFont = $this->formatPadrao;
2742
-        $this->pTextBox($x+80, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2740
+        $this->pTextBox($x + 80, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2743 2741
         $texto = 'VALOR DA TARIFA';
2744 2742
         $aFont = $this->formatPadrao;
2745
-        $this->pTextBox($x+110, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2743
+        $this->pTextBox($x + 110, $y, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
2746 2744
         $texto = $this->getTagValue($this->aereo, "nOCA");
2747 2745
         $aFont = $this->formatNegrito;
2748 2746
         $this->pTextBox($x, $y + 3, $w * 0.23, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ -3255,7 +3253,7 @@  discard block
 block discarded – undo
3255 3253
         $this->pTextBox($x, $y, $w * 0.25, $h - 3.4, $texto, $aFont, 'B', 'C', 0, '');
3256 3254
         $x += $w * 0.25;
3257 3255
         $this->pdf->Line($x, $y, $x, $y + 16.5);
3258
-        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n";
3256
+        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n";
3259 3257
         $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA';
3260 3258
         $aFont = array(
3261 3259
             'font' => $this->fontePadrao,
@@ -3264,13 +3262,13 @@  discard block
 block discarded – undo
3264 3262
         $this->pTextBox($x + 10, $y, $w * 0.25, $h - 3.4, $texto, $aFont, 'T', 'C', 0, '');
3265 3263
         $x = $oldX;
3266 3264
         $y = $y + 5;
3267
-        $this->pdf->Line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
3265
+        $this->pdf->Line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
3268 3266
         $texto = 'RG';
3269 3267
         $aFont = array(
3270 3268
             'font' => $this->fontePadrao,
3271 3269
             'size' => 6,
3272 3270
             'style' => '');
3273
-        $this->pTextBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
3271
+        $this->pTextBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
3274 3272
         $x += $w * 0.85;
3275 3273
         $this->pdf->Line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E
3276 3274
         $texto = "CT-E";
Please login to merge, or discard this patch.