@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
35 | 35 | $y1 += $this->pdf->textBox( |
36 | 36 | $this->margem, |
37 | - $y+$y1, |
|
37 | + $y + $y1, |
|
38 | 38 | $this->wPrint, |
39 | 39 | 2, |
40 | 40 | $texto, |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
51 | 51 | $y2 = $this->pdf->textBox( |
52 | 52 | $this->margem, |
53 | - $y+$y1, |
|
53 | + $y + $y1, |
|
54 | 54 | $this->wPrint, |
55 | 55 | 4, |
56 | 56 | $texto, |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I']; |
67 | 67 | $this->pdf->textBox( |
68 | 68 | $this->margem, |
69 | - $y+$y1+$y2, |
|
69 | + $y + $y1 + $y2, |
|
70 | 70 | $this->wPrint, |
71 | 71 | 3, |
72 | 72 | $texto, |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
84 | 84 | $y1 = $this->pdf->textBox( |
85 | 85 | $this->margem, |
86 | - $this->bloco1H-2, |
|
86 | + $this->bloco1H - 2, |
|
87 | 87 | $this->wPrint, |
88 | 88 | $this->bloco2H, |
89 | 89 | $texto, |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | true |
96 | 96 | ); |
97 | 97 | } |
98 | - $this->pdf->dashedHLine($this->margem, $this->bloco2H+$y, $this->wPrint, 0.1, 30); |
|
98 | + $this->pdf->dashedHLine($this->margem, $this->bloco2H + $y, $this->wPrint, 0.1, 30); |
|
99 | 99 | return $this->bloco2H + $y; |
100 | 100 | } |
101 | 101 | } |
@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | false |
31 | 31 | ); |
32 | 32 | |
33 | - $texto = $this->urlChave; |
|
33 | + $texto = $this->urlChave; |
|
34 | 34 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
35 | 35 | $y2 = $this->pdf->textBox( |
36 | 36 | $this->margem, |
37 | - $y+$y1, |
|
37 | + $y + $y1, |
|
38 | 38 | $this->wPrint, |
39 | 39 | 2, |
40 | 40 | $texto, |
@@ -46,12 +46,12 @@ discard block |
||
46 | 46 | false |
47 | 47 | ); |
48 | 48 | |
49 | - $chave = str_replace('NFe', '', $this->infNFe->getAttribute("Id")); |
|
49 | + $chave = str_replace('NFe', '', $this->infNFe->getAttribute("Id")); |
|
50 | 50 | $texto = $this->formatField($chave, $this->formatoChave); |
51 | 51 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
52 | 52 | $y3 = $this->pdf->textBox( |
53 | 53 | $this->margem, |
54 | - $y+$y1+$y2+1, |
|
54 | + $y + $y1 + $y2 + 1, |
|
55 | 55 | $this->wPrint, |
56 | 56 | 2, |
57 | 57 | $texto, |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | '', |
63 | 63 | true |
64 | 64 | ); |
65 | - $this->pdf->dashedHLine($this->margem, $this->bloco6H+$y, $this->wPrint, 0.1, 30); |
|
65 | + $this->pdf->dashedHLine($this->margem, $this->bloco6H + $y, $this->wPrint, 0.1, 30); |
|
66 | 66 | return $this->bloco6H + $y; |
67 | 67 | } |
68 | 68 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | */ |
20 | 20 | |
21 | 21 | $maxW = $this->wPrint; |
22 | - $w = ($maxW*1)+4; |
|
22 | + $w = ($maxW * 1) + 4; |
|
23 | 23 | $barcode = new Barcode(); |
24 | 24 | $bobj = $barcode->getBarcodeObj( |
25 | 25 | 'QRCODE,M', |
@@ -33,10 +33,10 @@ discard block |
||
33 | 33 | $wQr = 50; |
34 | 34 | $hQr = 50; |
35 | 35 | $yQr = ($y); |
36 | - $xQr = ($w/2) - ($wQr/2); |
|
36 | + $xQr = ($w / 2) - ($wQr / 2); |
|
37 | 37 | $pic = 'data://text/plain;base64,' . base64_encode($qrcode); |
38 | 38 | $info = getimagesize($pic); |
39 | 39 | $this->pdf->image($pic, $xQr, $yQr, $wQr, $hQr, 'PNG'); |
40 | - return $this->bloco8H+$y; |
|
40 | + return $this->bloco8H + $y; |
|
41 | 41 | } |
42 | 42 | } |
@@ -58,11 +58,11 @@ |
||
58 | 58 | |
59 | 59 | $texto = "Troco R$"; |
60 | 60 | $this->pdf->textBox($this->margem, $z, $this->wPrint, 3, $texto, $aFont, 'T', 'L', false, '', false); |
61 | - $texto = !empty($this->vTroco) ? number_format((float) $this->vTroco, 2, ',', '.') : '0,00'; |
|
61 | + $texto = !empty($this->vTroco) ? number_format((float) $this->vTroco, 2, ',', '.') : '0,00'; |
|
62 | 62 | $y1 = $this->pdf->textBox($this->margem, $z, $this->wPrint, 3, $texto, $aFont, 'T', 'R', false, '', false); |
63 | 63 | |
64 | 64 | |
65 | - $this->pdf->dashedHLine($this->margem, $this->bloco5H+$y, $this->wPrint, 0.1, 30); |
|
65 | + $this->pdf->dashedHLine($this->margem, $this->bloco5H + $y, $this->wPrint, 0.1, 30); |
|
66 | 66 | return $this->bloco5H + $y; |
67 | 67 | } |
68 | 68 |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $y2 += $it->height; |
132 | 132 | } |
133 | 133 | } |
134 | - $this->pdf->dashedHLine($this->margem, $this->bloco3H+$y, $this->wPrint, 0.1, 30); |
|
134 | + $this->pdf->dashedHLine($this->margem, $this->bloco3H + $y, $this->wPrint, 0.1, 30); |
|
135 | 135 | return $this->bloco3H + $y; |
136 | 136 | } |
137 | 137 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | if ($this->paperwidth < 70) { |
145 | 145 | $fsize = 5; |
146 | 146 | } |
147 | - $hfont = (imagefontheight($fsize)/72)*15; |
|
147 | + $hfont = (imagefontheight($fsize) / 72) * 15; |
|
148 | 148 | $aFont = ['font'=> $this->fontePadrao, 'size' => $fsize, 'style' => '']; |
149 | 149 | $htot = 0; |
150 | 150 | if ($this->det->length == 0) { |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $p = $xProd; |
170 | 170 | $n = $tempPDF->wordWrap($p, $descriptionWidth); |
171 | 171 | } |
172 | - $h = ($hfont * $n)+0.5; |
|
172 | + $h = ($hfont * $n) + 0.5; |
|
173 | 173 | $this->itens[] = [ |
174 | 174 | "codigo" => $cProd, |
175 | 175 | "desc" => $xProd, |
@@ -182,6 +182,6 @@ discard block |
||
182 | 182 | $htot += $h; |
183 | 183 | } |
184 | 184 | } |
185 | - return $htot+2; |
|
185 | + return $htot + 2; |
|
186 | 186 | } |
187 | 187 | } |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $c1, |
287 | 287 | 5, |
288 | 288 | "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " . |
289 | - ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'), |
|
289 | + ($this->nfeArray['NFe']['infNFe']['ide']['tpNF'] == 1 ? 'Saida' : 'Entrada'), |
|
290 | 290 | 1, |
291 | 291 | 0, |
292 | 292 | 'C', |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | //que uma impressora de 203dpi consiga imprimir um código legível |
338 | 338 | $this->pdf->code128($this->margesq * 2, $y, $chave, ($this->maxW - $this->margesq * 4), 15); |
339 | 339 | } else { |
340 | - $this->pdf->code128(($c1/2), $y, $chave, ($c1 * 3), 15); |
|
340 | + $this->pdf->code128(($c1 / 2), $y, $chave, ($c1 * 3), 15); |
|
341 | 341 | } |
342 | 342 | $this->pdf->setFillColor(255, 255, 255); |
343 | 343 | $this->pdf->ln(); |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | 1 |
370 | 370 | ); |
371 | 371 | |
372 | - $enderecoEmit = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}" |
|
372 | + $enderecoEmit = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}" |
|
373 | 373 | . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}" |
374 | 374 | . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}"; |
375 | 375 |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $c1, |
306 | 306 | 5, |
307 | 307 | "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " . |
308 | - ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'), |
|
308 | + ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'), |
|
309 | 309 | 1, |
310 | 310 | 0, |
311 | 311 | 'C', |
@@ -396,8 +396,8 @@ discard block |
||
396 | 396 | ); |
397 | 397 | |
398 | 398 | $enderecoEmit = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}" |
399 | - . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}" |
|
400 | - . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}"; |
|
399 | + . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}" |
|
400 | + . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}"; |
|
401 | 401 | |
402 | 402 | // LINHA 9 |
403 | 403 | $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10); |
@@ -443,8 +443,8 @@ discard block |
||
443 | 443 | $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['entrega']['xCpl']} - "; |
444 | 444 | } |
445 | 445 | $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['entrega']['xMun']}" |
446 | - . " / {$this->nfeArray['NFe']['infNFe']['entrega']['UF']}" |
|
447 | - . " - CEP {$this->nfeArray['NFe']['infNFe']['entrega']['CEP']}"; |
|
446 | + . " / {$this->nfeArray['NFe']['infNFe']['entrega']['UF']}" |
|
447 | + . " - CEP {$this->nfeArray['NFe']['infNFe']['entrega']['CEP']}"; |
|
448 | 448 | } else { |
449 | 449 | $enderecoLinha1 = "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xLgr']}"; |
450 | 450 | if (!empty($this->nfeArray['NFe']['infNFe']['dest']['enderDest']['nro'])) { |
@@ -455,8 +455,8 @@ discard block |
||
455 | 455 | $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xCpl']} - "; |
456 | 456 | } |
457 | 457 | $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xMun']}" |
458 | - . " / {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['UF']}" |
|
459 | - . " - CEP {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['CEP']}"; |
|
458 | + . " / {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['UF']}" |
|
459 | + . " - CEP {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['CEP']}"; |
|
460 | 460 | } |
461 | 461 | |
462 | 462 | $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10); |
@@ -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 |
@@ -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); |
@@ -1271,8 +1271,7 @@ discard block |
||
1271 | 1271 | $texto = $this->getTagValue($this->enderExped, "xLgr") . ', '; |
1272 | 1272 | $texto .= $this->getTagValue($this->enderExped, "nro"); |
1273 | 1273 | $texto .= $this->getTagValue($this->enderExped, "xCpl") != "" ? |
1274 | - ' - ' . $this->getTagValue($this->enderExped, "xCpl") : |
|
1275 | - ''; |
|
1274 | + ' - ' . $this->getTagValue($this->enderExped, "xCpl") : ''; |
|
1276 | 1275 | } else { |
1277 | 1276 | $texto = ''; |
1278 | 1277 | } |
@@ -1368,8 +1367,7 @@ discard block |
||
1368 | 1367 | $texto = $this->getTagValue($this->enderReceb, "xLgr") . ', '; |
1369 | 1368 | $texto .= $this->getTagValue($this->enderReceb, "nro"); |
1370 | 1369 | $texto .= ($this->getTagValue($this->enderReceb, "xCpl") != "") ? |
1371 | - ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : |
|
1372 | - ''; |
|
1370 | + ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : ''; |
|
1373 | 1371 | } else { |
1374 | 1372 | $texto = ''; |
1375 | 1373 | } |
@@ -1625,7 +1623,7 @@ discard block |
||
1625 | 1623 | $qCarga = 0; |
1626 | 1624 | foreach ($this->infQ as $infQ) { |
1627 | 1625 | if ($this->getTagValue($infQ, "cUnid") == '00') { |
1628 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
1626 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
1629 | 1627 | } |
1630 | 1628 | } |
1631 | 1629 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -1642,7 +1640,7 @@ discard block |
||
1642 | 1640 | $qCarga = 0; |
1643 | 1641 | foreach ($this->infQ as $infQ) { |
1644 | 1642 | if ($this->getTagValue($infQ, "cUnid") == '03') { |
1645 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
1643 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
1646 | 1644 | } |
1647 | 1645 | } |
1648 | 1646 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -3572,7 +3570,7 @@ discard block |
||
3572 | 3570 | $y = $y + 5; |
3573 | 3571 | $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
3574 | 3572 | $texto = 'RG'; |
3575 | - $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => '']; |
|
3573 | + $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
|
3576 | 3574 | $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
3577 | 3575 | $x += $w * 0.85; |
3578 | 3576 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | protected $descPercent = 0.38; |
29 | 29 | protected $xml; // string XML NFe |
30 | 30 | protected $dom; |
31 | - protected $logomarca=''; // path para logomarca em jpg |
|
32 | - protected $formatoChave="#### #### #### #### #### #### #### #### #### #### ####"; |
|
31 | + protected $logomarca = ''; // path para logomarca em jpg |
|
32 | + protected $formatoChave = "#### #### #### #### #### #### #### #### #### #### ####"; |
|
33 | 33 | protected $nfeProc; |
34 | 34 | protected $nfe; |
35 | 35 | protected $infNFe; |
@@ -222,10 +222,10 @@ discard block |
||
222 | 222 | //total inicial de paginas |
223 | 223 | $totPag = 1; |
224 | 224 | //largura imprimivel em mm: largura da folha menos as margens esq/direita |
225 | - $this->wPrint = $maxW-($margEsq*2); |
|
225 | + $this->wPrint = $maxW - ($margEsq * 2); |
|
226 | 226 | //comprimento (altura) imprimivel em mm: altura da folha menos as margens |
227 | 227 | //superior e inferior |
228 | - $this->hPrint = $maxH-$margSup-$margInf; |
|
228 | + $this->hPrint = $maxH - $margSup - $margInf; |
|
229 | 229 | // estabelece contagem de paginas |
230 | 230 | $this->pdf->aliasNbPages(); |
231 | 231 | $this->pdf->setMargins($margEsq, $margSup); // fixa as margens |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $y = $this->blocoIX($y); //informações complementares e sobre tributos |
250 | 250 | $y = $this->blocoX($y); //creditos |
251 | 251 | |
252 | - $ymark = $maxH/4; |
|
252 | + $ymark = $maxH / 4; |
|
253 | 253 | if ($this->tpAmb == 2) { |
254 | 254 | $this->pdf->setTextColor(120, 120, 120); |
255 | 255 | $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao"; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | $this->margem, |
259 | 259 | $ymark, |
260 | 260 | $this->wPrint, |
261 | - $maxH/2, |
|
261 | + $maxH / 2, |
|
262 | 262 | $texto, |
263 | 263 | $aFont, |
264 | 264 | 'T', |
@@ -275,9 +275,9 @@ discard block |
||
275 | 275 | $aFont = ['font' => $this->fontePadrao, 'size' => 24, 'style' => 'B']; |
276 | 276 | $this->pdf->textBox( |
277 | 277 | $this->margem, |
278 | - $ymark+4, |
|
278 | + $ymark + 4, |
|
279 | 279 | $this->wPrint, |
280 | - $maxH/2, |
|
280 | + $maxH / 2, |
|
281 | 281 | $texto, |
282 | 282 | $aFont, |
283 | 283 | 'T', |
@@ -289,9 +289,9 @@ discard block |
||
289 | 289 | $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
290 | 290 | $this->pdf->textBox( |
291 | 291 | $this->margem, |
292 | - $ymark+14, |
|
292 | + $ymark + 14, |
|
293 | 293 | $this->wPrint, |
294 | - $maxH/2, |
|
294 | + $maxH / 2, |
|
295 | 295 | $this->submessage, |
296 | 296 | $aFont, |
297 | 297 | 'T', |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $y = $this->blocoVIII($y); //QRCODE |
320 | 320 | $y = $this->blocoIX($y); //informações sobre tributos |
321 | 321 | $y = $this->blocoX($y); //creditos |
322 | - $ymark = $maxH/4; |
|
322 | + $ymark = $maxH / 4; |
|
323 | 323 | if ($this->tpAmb == 2) { |
324 | 324 | $this->pdf->setTextColor(120, 120, 120); |
325 | 325 | $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao"; |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | $this->margem, |
329 | 329 | $ymark, |
330 | 330 | $this->wPrint, |
331 | - $maxH/2, |
|
331 | + $maxH / 2, |
|
332 | 332 | $texto, |
333 | 333 | $aFont, |
334 | 334 | 'T', |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | } elseif (!empty($retEvento = $this->nfeProc->getElementsByTagName('retEvento')->item(0))) { |
415 | 415 | $infEvento = $retEvento->getElementsByTagName('infEvento')->item(0); |
416 | 416 | $cStat = $this->getTagValue($infEvento, "cStat"); |
417 | - $tpEvento= $this->getTagValue($infEvento, "tpEvento"); |
|
417 | + $tpEvento = $this->getTagValue($infEvento, "tpEvento"); |
|
418 | 418 | $dhEvento = date( |
419 | 419 | "d/m/Y H:i:s", |
420 | 420 | $this->toTimestamp( |