@@ -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"); |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | $this->pdf->textBox($x, $y + 12, $wa, $h, $texto, $aFont, 'T', 'C', 0, ''); |
| 709 | 709 | |
| 710 | 710 | if ($this->qrCodMDFe !== null) { |
| 711 | - $this->qrCodeDacteOs($y-25); |
|
| 711 | + $this->qrCodeDacteOs($y - 25); |
|
| 712 | 712 | $w = 38; |
| 713 | 713 | $x += 79; |
| 714 | 714 | $this->pdf->textBox($x, $y - 34, $w + 0.5, $h + 41.5); |
@@ -790,7 +790,7 @@ discard block |
||
| 790 | 790 | $n = count($resp['message']); |
| 791 | 791 | $alttot = $n * 15; |
| 792 | 792 | $x = 10; |
| 793 | - $y = $this->hPrint/2 - $alttot/2; |
|
| 793 | + $y = $this->hPrint / 2 - $alttot / 2; |
|
| 794 | 794 | $h = 15; |
| 795 | 795 | $w = $maxW - (2 * $x); |
| 796 | 796 | $this->pdf->settextcolor(90, 90, 90); |
@@ -893,13 +893,13 @@ discard block |
||
| 893 | 893 | */ |
| 894 | 894 | protected function rodape($x, $y) |
| 895 | 895 | { |
| 896 | - $texto = "Impresso em " . date('d/m/Y H:i:s') . ' ' . $this->creditos; |
|
| 896 | + $texto = "Impresso em " . date('d/m/Y H:i:s') . ' ' . $this->creditos; |
|
| 897 | 897 | $w = $this->wPrint - 4; |
| 898 | 898 | $aFont = array( |
| 899 | 899 | 'font' => $this->fontePadrao, |
| 900 | 900 | 'size' => 6, |
| 901 | 901 | 'style' => ''); |
| 902 | - $this->pdf->textBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 902 | + $this->pdf->textBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 903 | 903 | $texto = $this->powered ? "Powered by NFePHP®" : ''; |
| 904 | 904 | $this->pdf->textBox($x, $y, $w, 0, $texto, $aFont, 'T', 'R', false, ''); |
| 905 | 905 | } |
@@ -988,7 +988,7 @@ discard block |
||
| 988 | 988 | $texto = 'FONE'; |
| 989 | 989 | $aFont = $this->formatPadrao; |
| 990 | 990 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 991 | - $texto = $this->getTagValue($this->toma, "fone")!=""? $this->formatFone($this->toma):''; |
|
| 991 | + $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->formatFone($this->toma) : ''; |
|
| 992 | 992 | $aFont = $this->formatNegrito; |
| 993 | 993 | $this->pdf->textBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 994 | 994 | } |
@@ -1128,7 +1128,7 @@ discard block |
||
| 1128 | 1128 | $aFont = $this->formatPadrao; |
| 1129 | 1129 | $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1130 | 1130 | |
| 1131 | - $wCol02=0.18; |
|
| 1131 | + $wCol02 = 0.18; |
|
| 1132 | 1132 | $x += $w * $wCol02; |
| 1133 | 1133 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1134 | 1134 | $texto = 'ALÍQ ICMS'; |
@@ -1204,7 +1204,7 @@ discard block |
||
| 1204 | 1204 | $x += $w * $wCol02; |
| 1205 | 1205 | |
| 1206 | 1206 | $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ? |
| 1207 | - number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :''; |
|
| 1207 | + number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : ''; |
|
| 1208 | 1208 | $aFont = $this->formatNegrito; |
| 1209 | 1209 | $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1210 | 1210 | |
@@ -1432,14 +1432,14 @@ discard block |
||
| 1432 | 1432 | $texto .= $xObs; |
| 1433 | 1433 | } |
| 1434 | 1434 | $textoObs = explode("Motorista:", $texto); |
| 1435 | - $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: ''; |
|
| 1435 | + $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : ''; |
|
| 1436 | 1436 | $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n"); |
| 1437 | 1437 | $aFont = array( |
| 1438 | 1438 | 'font' => $this->fontePadrao, |
| 1439 | 1439 | 'size' => 7.5, |
| 1440 | 1440 | 'style' => ''); |
| 1441 | 1441 | $this->pdf->textBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false); |
| 1442 | - $this->pdf->textBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 1442 | + $this->pdf->textBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 1443 | 1443 | } |
| 1444 | 1444 | |
| 1445 | 1445 | /** |
@@ -1477,7 +1477,7 @@ discard block |
||
| 1477 | 1477 | $aFont = $this->formatPadrao; |
| 1478 | 1478 | $this->pdf->textBox($x, $y, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1479 | 1479 | |
| 1480 | - $wCol02=0.33; |
|
| 1480 | + $wCol02 = 0.33; |
|
| 1481 | 1481 | $x += $w * $wCol02; |
| 1482 | 1482 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1483 | 1483 | $texto = 'NÚMERO DA APÓLICE'; |
@@ -1536,7 +1536,7 @@ discard block |
||
| 1536 | 1536 | $aFont = $this->formatPadrao; |
| 1537 | 1537 | $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1538 | 1538 | |
| 1539 | - $wCol02=0.18; |
|
| 1539 | + $wCol02 = 0.18; |
|
| 1540 | 1540 | $x += $w * $wCol02; |
| 1541 | 1541 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1542 | 1542 | $texto = 'PLACA DO VEÍCULO'; |
@@ -1578,8 +1578,7 @@ discard block |
||
| 1578 | 1578 | $x += $w * $wCol02; |
| 1579 | 1579 | |
| 1580 | 1580 | $texto = !empty($this->getTagValue($this->veic->item(0), "CPF")) ? |
| 1581 | - $this->getTagValue($this->veic->item(0), "CPF") : |
|
| 1582 | - (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ? |
|
| 1581 | + $this->getTagValue($this->veic->item(0), "CPF") : (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ? |
|
| 1583 | 1582 | $this->getTagValue($this->veic->item(0), "CNPJ") : ''); |
| 1584 | 1583 | $aFont = $this->formatNegrito; |
| 1585 | 1584 | $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, ''); |
@@ -2048,7 +2047,7 @@ discard block |
||
| 2048 | 2047 | */ |
| 2049 | 2048 | protected function canhoto($x = 0, $y = 0) |
| 2050 | 2049 | { |
| 2051 | - $this->pdf->dashedHLine($x, $y+2, $this->wPrint, 0.1, 80); |
|
| 2050 | + $this->pdf->dashedHLine($x, $y + 2, $this->wPrint, 0.1, 80); |
|
| 2052 | 2051 | $y = $y + 2; |
| 2053 | 2052 | $oldX = $x; |
| 2054 | 2053 | $oldY = $y; |
@@ -2087,7 +2086,7 @@ discard block |
||
| 2087 | 2086 | |
| 2088 | 2087 | $this->pdf->line($x, $y, $x, $y + 16.5); |
| 2089 | 2088 | |
| 2090 | - $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n"; |
|
| 2089 | + $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n"; |
|
| 2091 | 2090 | $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA'; |
| 2092 | 2091 | $aFont = array( |
| 2093 | 2092 | 'font' => $this->fontePadrao, |
@@ -2097,14 +2096,14 @@ discard block |
||
| 2097 | 2096 | $x = $oldX; |
| 2098 | 2097 | $y = $y + 5; |
| 2099 | 2098 | |
| 2100 | - $this->pdf->line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 2099 | + $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 2101 | 2100 | |
| 2102 | 2101 | $texto = 'RG'; |
| 2103 | 2102 | $aFont = array( |
| 2104 | 2103 | 'font' => $this->fontePadrao, |
| 2105 | 2104 | 'size' => 6, |
| 2106 | 2105 | 'style' => ''); |
| 2107 | - $this->pdf->textBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2106 | + $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2108 | 2107 | $x += $w * 0.85; |
| 2109 | 2108 | |
| 2110 | 2109 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |