@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $y += 19; |
| 268 | 268 | $x = $xInic; |
| 269 | 269 | $r = $this->seguro($x, $y); |
| 270 | - $y = $y-12; |
|
| 270 | + $y = $y - 12; |
|
| 271 | 271 | switch ($this->modal) { |
| 272 | 272 | case '1': |
| 273 | 273 | $y += 24.9; |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | 'font' => $this->fontePadrao, |
| 438 | 438 | 'size' => 7, |
| 439 | 439 | 'style' => ''); |
| 440 | - $fone = $this->getTagValue($this->enderEmit, "fone")!=""? $this->formatFone($this->enderEmit):''; |
|
| 440 | + $fone = $this->getTagValue($this->enderEmit, "fone") != "" ? $this->formatFone($this->enderEmit) : ''; |
|
| 441 | 441 | $lgr = $this->getTagValue($this->enderEmit, "xLgr"); |
| 442 | 442 | $nro = $this->getTagValue($this->enderEmit, "nro"); |
| 443 | 443 | $cpl = $this->getTagValue($this->enderEmit, "xCpl"); |
@@ -710,7 +710,7 @@ discard block |
||
| 710 | 710 | $this->pdf->textBox($x, $y + 12, $wa, $h, $texto, $aFont, 'T', 'C', 0, ''); |
| 711 | 711 | |
| 712 | 712 | if ($this->qrCodMDFe !== null) { |
| 713 | - $this->qrCodeDacteOs($y-25); |
|
| 713 | + $this->qrCodeDacteOs($y - 25); |
|
| 714 | 714 | $w = 38; |
| 715 | 715 | $x += 79; |
| 716 | 716 | $this->pdf->textBox($x, $y - 34, $w + 0.5, $h + 41.5); |
@@ -792,7 +792,7 @@ discard block |
||
| 792 | 792 | $n = count($resp['message']); |
| 793 | 793 | $alttot = $n * 15; |
| 794 | 794 | $x = 10; |
| 795 | - $y = $this->hPrint/2 - $alttot/2; |
|
| 795 | + $y = $this->hPrint / 2 - $alttot / 2; |
|
| 796 | 796 | $h = 15; |
| 797 | 797 | $w = $maxW - (2 * $x); |
| 798 | 798 | $this->pdf->settextcolor(90, 90, 90); |
@@ -889,13 +889,13 @@ discard block |
||
| 889 | 889 | */ |
| 890 | 890 | protected function rodape($x, $y) |
| 891 | 891 | { |
| 892 | - $texto = "Impresso em " . date('d/m/Y H:i:s') . ' ' . $this->creditos; |
|
| 892 | + $texto = "Impresso em " . date('d/m/Y H:i:s') . ' ' . $this->creditos; |
|
| 893 | 893 | $w = $this->wPrint - 4; |
| 894 | 894 | $aFont = array( |
| 895 | 895 | 'font' => $this->fontePadrao, |
| 896 | 896 | 'size' => 6, |
| 897 | 897 | 'style' => ''); |
| 898 | - $this->pdf->textBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 898 | + $this->pdf->textBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 899 | 899 | $texto = $this->powered ? "Powered by NFePHP®" : ''; |
| 900 | 900 | $this->pdf->textBox($x, $y, $w, 0, $texto, $aFont, 'T', 'R', false, ''); |
| 901 | 901 | } |
@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | $texto = 'FONE'; |
| 985 | 985 | $aFont = $this->formatPadrao; |
| 986 | 986 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 987 | - $texto = $this->getTagValue($this->toma, "fone")!=""? $this->formatFone($this->toma):''; |
|
| 987 | + $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->formatFone($this->toma) : ''; |
|
| 988 | 988 | $aFont = $this->formatNegrito; |
| 989 | 989 | $this->pdf->textBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 990 | 990 | } |
@@ -1124,7 +1124,7 @@ discard block |
||
| 1124 | 1124 | $aFont = $this->formatPadrao; |
| 1125 | 1125 | $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1126 | 1126 | |
| 1127 | - $wCol02=0.18; |
|
| 1127 | + $wCol02 = 0.18; |
|
| 1128 | 1128 | $x += $w * $wCol02; |
| 1129 | 1129 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1130 | 1130 | $texto = 'ALÍQ ICMS'; |
@@ -1200,7 +1200,7 @@ discard block |
||
| 1200 | 1200 | $x += $w * $wCol02; |
| 1201 | 1201 | |
| 1202 | 1202 | $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ? |
| 1203 | - number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :''; |
|
| 1203 | + number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : ''; |
|
| 1204 | 1204 | $aFont = $this->formatNegrito; |
| 1205 | 1205 | $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1206 | 1206 | |
@@ -1428,14 +1428,14 @@ discard block |
||
| 1428 | 1428 | $texto .= $xObs; |
| 1429 | 1429 | } |
| 1430 | 1430 | $textoObs = explode("Motorista:", $texto); |
| 1431 | - $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: ''; |
|
| 1431 | + $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : ''; |
|
| 1432 | 1432 | $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n"); |
| 1433 | 1433 | $aFont = array( |
| 1434 | 1434 | 'font' => $this->fontePadrao, |
| 1435 | 1435 | 'size' => 7.5, |
| 1436 | 1436 | 'style' => ''); |
| 1437 | 1437 | $this->pdf->textBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false); |
| 1438 | - $this->pdf->textBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 1438 | + $this->pdf->textBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 1439 | 1439 | } |
| 1440 | 1440 | |
| 1441 | 1441 | /** |
@@ -1473,7 +1473,7 @@ discard block |
||
| 1473 | 1473 | $aFont = $this->formatPadrao; |
| 1474 | 1474 | $this->pdf->textBox($x, $y, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1475 | 1475 | |
| 1476 | - $wCol02=0.33; |
|
| 1476 | + $wCol02 = 0.33; |
|
| 1477 | 1477 | $x += $w * $wCol02; |
| 1478 | 1478 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1479 | 1479 | $texto = 'NÚMERO DA APÓLICE'; |
@@ -1532,7 +1532,7 @@ discard block |
||
| 1532 | 1532 | $aFont = $this->formatPadrao; |
| 1533 | 1533 | $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1534 | 1534 | |
| 1535 | - $wCol02=0.18; |
|
| 1535 | + $wCol02 = 0.18; |
|
| 1536 | 1536 | $x += $w * $wCol02; |
| 1537 | 1537 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1538 | 1538 | $texto = 'PLACA DO VEÍCULO'; |
@@ -1574,8 +1574,7 @@ discard block |
||
| 1574 | 1574 | $x += $w * $wCol02; |
| 1575 | 1575 | |
| 1576 | 1576 | $texto = !empty($this->getTagValue($this->veic->item(0), "CPF")) ? |
| 1577 | - $this->getTagValue($this->veic->item(0), "CPF") : |
|
| 1578 | - (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ? |
|
| 1577 | + $this->getTagValue($this->veic->item(0), "CPF") : (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ? |
|
| 1579 | 1578 | $this->getTagValue($this->veic->item(0), "CNPJ") : ''); |
| 1580 | 1579 | $aFont = $this->formatNegrito; |
| 1581 | 1580 | $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, ''); |
@@ -2044,7 +2043,7 @@ discard block |
||
| 2044 | 2043 | */ |
| 2045 | 2044 | protected function canhoto($x = 0, $y = 0) |
| 2046 | 2045 | { |
| 2047 | - $this->pdf->dashedHLine($x, $y+2, $this->wPrint, 0.1, 80); |
|
| 2046 | + $this->pdf->dashedHLine($x, $y + 2, $this->wPrint, 0.1, 80); |
|
| 2048 | 2047 | $y = $y + 2; |
| 2049 | 2048 | $oldX = $x; |
| 2050 | 2049 | $oldY = $y; |
@@ -2083,7 +2082,7 @@ discard block |
||
| 2083 | 2082 | |
| 2084 | 2083 | $this->pdf->line($x, $y, $x, $y + 16.5); |
| 2085 | 2084 | |
| 2086 | - $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n"; |
|
| 2085 | + $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n"; |
|
| 2087 | 2086 | $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA'; |
| 2088 | 2087 | $aFont = array( |
| 2089 | 2088 | 'font' => $this->fontePadrao, |
@@ -2093,14 +2092,14 @@ discard block |
||
| 2093 | 2092 | $x = $oldX; |
| 2094 | 2093 | $y = $y + 5; |
| 2095 | 2094 | |
| 2096 | - $this->pdf->line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 2095 | + $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 2097 | 2096 | |
| 2098 | 2097 | $texto = 'RG'; |
| 2099 | 2098 | $aFont = array( |
| 2100 | 2099 | 'font' => $this->fontePadrao, |
| 2101 | 2100 | 'size' => 6, |
| 2102 | 2101 | 'style' => ''); |
| 2103 | - $this->pdf->textBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2102 | + $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2104 | 2103 | $x += $w * 0.85; |
| 2105 | 2104 | |
| 2106 | 2105 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |