@@ -945,7 +945,7 @@ discard block |
||
945 | 945 | $n = count($resp['message']); |
946 | 946 | $alttot = $n * 15; |
947 | 947 | $x = 10; |
948 | - $y = $this->hPrint/2 - $alttot/2; |
|
948 | + $y = $this->hPrint / 2 - $alttot / 2; |
|
949 | 949 | $h = 15; |
950 | 950 | $w = $maxW - (2 * $x); |
951 | 951 | $this->pdf->settextcolor(90, 90, 90); |
@@ -989,10 +989,10 @@ discard block |
||
989 | 989 | $resp['message'][] = 'CTe NÃO PROTOCOLADO'; |
990 | 990 | } elseif ($this->getTagValue($this->ide, "tpAmb") == '2' && $this->preVisualizar == '0') { |
991 | 991 | $resp['status'] = false; |
992 | - $resp['message'][] = "CTe EMITIDO EM HOMOLOGAÇÃO"; |
|
992 | + $resp['message'][] = "CTe EMITIDO EM HOMOLOGAÇÃO"; |
|
993 | 993 | } elseif ($this->preVisualizar == '1') { |
994 | 994 | $resp['status'] = false; |
995 | - $resp['message'][] = "PRÉ-VISUALIZAÇÃO"; |
|
995 | + $resp['message'][] = "PRÉ-VISUALIZAÇÃO"; |
|
996 | 996 | } |
997 | 997 | $retEvento = $this->cteProc->getElementsByTagName('retEventoCTe')->item(0); |
998 | 998 | $cStat = $this->getTagValue($this->cteProc, "cStat"); |
@@ -1013,7 +1013,7 @@ discard block |
||
1013 | 1013 | } elseif (!empty($retEvento)) { |
1014 | 1014 | $infEvento = $retEvento->getElementsByTagName('infEvento')->item(0); |
1015 | 1015 | $cStat = $this->getTagValue($infEvento, "cStat"); |
1016 | - $tpEvento= $this->getTagValue($infEvento, "tpEvento"); |
|
1016 | + $tpEvento = $this->getTagValue($infEvento, "tpEvento"); |
|
1017 | 1017 | $dhEvento = date("d/m/Y H:i:s", $this->toTimestamp($this->getTagValue($infEvento, "dhRegEvento"))); |
1018 | 1018 | $nProt = $this->getTagValue($infEvento, "nProt"); |
1019 | 1019 | if ($tpEvento == '110111' && ($cStat == '101' || $cStat == '151' || $cStat == '135' || $cStat == '155')) { |
@@ -1269,8 +1269,7 @@ discard block |
||
1269 | 1269 | $texto = $this->getTagValue($this->enderExped, "xLgr") . ', '; |
1270 | 1270 | $texto .= $this->getTagValue($this->enderExped, "nro"); |
1271 | 1271 | $texto .= $this->getTagValue($this->enderExped, "xCpl") != "" ? |
1272 | - ' - ' . $this->getTagValue($this->enderExped, "xCpl") : |
|
1273 | - ''; |
|
1272 | + ' - ' . $this->getTagValue($this->enderExped, "xCpl") : ''; |
|
1274 | 1273 | } else { |
1275 | 1274 | $texto = ''; |
1276 | 1275 | } |
@@ -1366,8 +1365,7 @@ discard block |
||
1366 | 1365 | $texto = $this->getTagValue($this->enderReceb, "xLgr") . ', '; |
1367 | 1366 | $texto .= $this->getTagValue($this->enderReceb, "nro"); |
1368 | 1367 | $texto .= ($this->getTagValue($this->enderReceb, "xCpl") != "") ? |
1369 | - ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : |
|
1370 | - ''; |
|
1368 | + ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : ''; |
|
1371 | 1369 | } else { |
1372 | 1370 | $texto = ''; |
1373 | 1371 | } |
@@ -1623,7 +1621,7 @@ discard block |
||
1623 | 1621 | $qCarga = 0; |
1624 | 1622 | foreach ($this->infQ as $infQ) { |
1625 | 1623 | if ($this->getTagValue($infQ, "cUnid") == '00') { |
1626 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
1624 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
1627 | 1625 | } |
1628 | 1626 | } |
1629 | 1627 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -1640,7 +1638,7 @@ discard block |
||
1640 | 1638 | $qCarga = 0; |
1641 | 1639 | foreach ($this->infQ as $infQ) { |
1642 | 1640 | if ($this->getTagValue($infQ, "cUnid") == '03') { |
1643 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
1641 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
1644 | 1642 | } |
1645 | 1643 | } |
1646 | 1644 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -3570,7 +3568,7 @@ discard block |
||
3570 | 3568 | $y = $y + 5; |
3571 | 3569 | $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
3572 | 3570 | $texto = 'RG'; |
3573 | - $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => '']; |
|
3571 | + $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
|
3574 | 3572 | $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
3575 | 3573 | $x += $w * 0.85; |
3576 | 3574 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |