@@ -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); |
@@ -1276,8 +1276,7 @@ discard block |
||
1276 | 1276 | $texto = $this->getTagValue($this->enderExped, "xLgr") . ', '; |
1277 | 1277 | $texto .= $this->getTagValue($this->enderExped, "nro"); |
1278 | 1278 | $texto .= $this->getTagValue($this->enderExped, "xCpl") != "" ? |
1279 | - ' - ' . $this->getTagValue($this->enderExped, "xCpl") : |
|
1280 | - ''; |
|
1279 | + ' - ' . $this->getTagValue($this->enderExped, "xCpl") : ''; |
|
1281 | 1280 | } else { |
1282 | 1281 | $texto = ''; |
1283 | 1282 | } |
@@ -1373,8 +1372,7 @@ discard block |
||
1373 | 1372 | $texto = $this->getTagValue($this->enderReceb, "xLgr") . ', '; |
1374 | 1373 | $texto .= $this->getTagValue($this->enderReceb, "nro"); |
1375 | 1374 | $texto .= ($this->getTagValue($this->enderReceb, "xCpl") != "") ? |
1376 | - ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : |
|
1377 | - ''; |
|
1375 | + ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : ''; |
|
1378 | 1376 | } else { |
1379 | 1377 | $texto = ''; |
1380 | 1378 | } |
@@ -1630,7 +1628,7 @@ discard block |
||
1630 | 1628 | $qCarga = 0; |
1631 | 1629 | foreach ($this->infQ as $infQ) { |
1632 | 1630 | if ($this->getTagValue($infQ, "cUnid") == '00') { |
1633 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
1631 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
1634 | 1632 | } |
1635 | 1633 | } |
1636 | 1634 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -1647,7 +1645,7 @@ discard block |
||
1647 | 1645 | $qCarga = 0; |
1648 | 1646 | foreach ($this->infQ as $infQ) { |
1649 | 1647 | if ($this->getTagValue($infQ, "cUnid") == '03') { |
1650 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
1648 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
1651 | 1649 | } |
1652 | 1650 | } |
1653 | 1651 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -3577,7 +3575,7 @@ discard block |
||
3577 | 3575 | $y = $y + 5; |
3578 | 3576 | $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
3579 | 3577 | $texto = 'RG'; |
3580 | - $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => '']; |
|
3578 | + $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
|
3581 | 3579 | $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
3582 | 3580 | $x += $w * 0.85; |
3583 | 3581 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |
@@ -3719,7 +3717,7 @@ discard block |
||
3719 | 3717 | $field->getElementsByTagName("fone")->item(0)->nodeValue : ''; |
3720 | 3718 | $foneLen = strlen($fone); |
3721 | 3719 | if ($foneLen == 11 && $fone[0] != 0) { |
3722 | - $fone = '('.substr($fone, 0, 2).') '.substr($fone, 2, 5). '-' . substr($fone, 7); |
|
3720 | + $fone = '(' . substr($fone, 0, 2) . ') ' . substr($fone, 2, 5) . '-' . substr($fone, 7); |
|
3723 | 3721 | } else if ($foneLen > 0) { |
3724 | 3722 | $fone2 = substr($fone, 0, $foneLen - 4); |
3725 | 3723 | $fone1 = substr($fone, 0, $foneLen - 8); |