@@ -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 | } |
@@ -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( |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | $subSize = 1.5; |
| 41 | 41 | } |
| 42 | 42 | if ($this->tpEmis == 9) { |
| 43 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => '']; |
|
| 44 | - $y += 2*$yPlus; |
|
| 43 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => '']; |
|
| 44 | + $y += 2 * $yPlus; |
|
| 45 | 45 | $y1 = $this->pdf->textBox( |
| 46 | 46 | $this->margem, |
| 47 | 47 | $y, |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | false |
| 57 | 57 | ); |
| 58 | 58 | |
| 59 | - $y1 += 2*$yPlus; |
|
| 59 | + $y1 += 2 * $yPlus; |
|
| 60 | 60 | $num = str_pad($this->getTagValue($this->ide, "nNF"), 9, '0', STR_PAD_LEFT); |
| 61 | 61 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 62 | 62 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'B']; |
| 65 | 65 | $y2 = $this->pdf->textBox( |
| 66 | 66 | $this->margem, |
| 67 | - $y+$y1, |
|
| 67 | + $y + $y1, |
|
| 68 | 68 | $this->wPrint, |
| 69 | 69 | 4, |
| 70 | 70 | $texto, |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $texto = $this->via; |
| 80 | 80 | $y3 = $this->pdf->textBox( |
| 81 | 81 | $this->margem, |
| 82 | - $y+$y1+$y2, |
|
| 82 | + $y + $y1 + $y2, |
|
| 83 | 83 | $this->wPrint, |
| 84 | 84 | 4, |
| 85 | 85 | $texto, |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
| 97 | 97 | $y4 = $this->pdf->textBox( |
| 98 | 98 | $this->margem, |
| 99 | - $y+$y1+$y2+$y3, |
|
| 99 | + $y + $y1 + $y2 + $y3, |
|
| 100 | 100 | $this->wPrint, |
| 101 | 101 | 4, |
| 102 | 102 | $texto, |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I']; |
| 113 | 113 | $y5 = $this->pdf->textBox( |
| 114 | 114 | $this->margem, |
| 115 | - $y+$y1+$y2+$y3+$y4, |
|
| 115 | + $y + $y1 + $y2 + $y3 + $y4, |
|
| 116 | 116 | $this->wPrint, |
| 117 | 117 | 3, |
| 118 | 118 | $texto, |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
| 128 | 128 | $y1 = $this->pdf->textBox( |
| 129 | 129 | $this->margem, |
| 130 | - $y+1, |
|
| 130 | + $y + 1, |
|
| 131 | 131 | $this->wPrint, |
| 132 | 132 | $this->bloco7H, |
| 133 | 133 | $texto, |
@@ -143,10 +143,10 @@ discard block |
||
| 143 | 143 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 144 | 144 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
| 145 | 145 | $texto = "NFCe n. {$num} Série {$serie} {$data}"; |
| 146 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 146 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 147 | 147 | $y2 = $this->pdf->textBox( |
| 148 | 148 | $this->margem, |
| 149 | - $y+1+$y1, |
|
| 149 | + $y + 1 + $y1, |
|
| 150 | 150 | $this->wPrint, |
| 151 | 151 | 4, |
| 152 | 152 | $texto, |
@@ -158,10 +158,10 @@ discard block |
||
| 158 | 158 | true |
| 159 | 159 | ); |
| 160 | 160 | $texto = "DANFE-NFC-e Impresso em contingência - EPEC"; |
| 161 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (10-$subSize), 'style' => 'B']; |
|
| 161 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (10 - $subSize), 'style' => 'B']; |
|
| 162 | 162 | $y2 = $this->pdf->textBox( |
| 163 | 163 | $this->margem, |
| 164 | - $y+1+$y1+3, |
|
| 164 | + $y + 1 + $y1 + 3, |
|
| 165 | 165 | $this->wPrint, |
| 166 | 166 | 4, |
| 167 | 167 | $texto, |
@@ -174,10 +174,10 @@ discard block |
||
| 174 | 174 | ); |
| 175 | 175 | |
| 176 | 176 | $texto = "Regularmente recebido pela administração tributária autorizadora"; |
| 177 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 177 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 178 | 178 | $y2 = $this->pdf->textBox( |
| 179 | 179 | $this->margem, |
| 180 | - $y+1+$y1+$y2+3, |
|
| 180 | + $y + 1 + $y1 + $y2 + 3, |
|
| 181 | 181 | $this->wPrint, |
| 182 | 182 | 4, |
| 183 | 183 | $texto, |
@@ -192,10 +192,10 @@ discard block |
||
| 192 | 192 | $dhCont = $this->dom->getElementsByTagName('dhCont')->item(0)->nodeValue; |
| 193 | 193 | $dt = \DateTime::createFromFormat('Y-m-d\TH:i:sP', $dhCont); |
| 194 | 194 | $texto = "Data de entrada em contingência : " . $dt->format('d/m/Y H:i:s'); |
| 195 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => '']; |
|
| 195 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => '']; |
|
| 196 | 196 | $y2 = $this->pdf->textBox( |
| 197 | 197 | $this->margem, |
| 198 | - $y+1+$y1+$y2+6, |
|
| 198 | + $y + 1 + $y1 + $y2 + 6, |
|
| 199 | 199 | $this->wPrint, |
| 200 | 200 | 4, |
| 201 | 201 | $texto, |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
| 212 | 212 | $y1 = $this->pdf->textBox( |
| 213 | 213 | $this->margem, |
| 214 | - $y+1, |
|
| 214 | + $y + 1, |
|
| 215 | 215 | $this->wPrint, |
| 216 | 216 | $this->bloco7H, |
| 217 | 217 | $texto, |
@@ -227,10 +227,10 @@ discard block |
||
| 227 | 227 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 228 | 228 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
| 229 | 229 | $texto = "NFCe n. {$num} Série {$serie} {$data}"; |
| 230 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => 'B']; |
|
| 230 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => 'B']; |
|
| 231 | 231 | $y2 = $this->pdf->textBox( |
| 232 | 232 | $this->margem, |
| 233 | - $y+1+$y1, |
|
| 233 | + $y + 1 + $y1, |
|
| 234 | 234 | $this->wPrint, |
| 235 | 235 | 4, |
| 236 | 236 | $texto, |
@@ -250,10 +250,10 @@ discard block |
||
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | $texto = "Protocolo de Autorização: {$protocolo}"; |
| 253 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 253 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 254 | 254 | $y3 = $this->pdf->textBox( |
| 255 | 255 | $this->margem, |
| 256 | - $y+1+$y1+$y2, |
|
| 256 | + $y + 1 + $y1 + $y2, |
|
| 257 | 257 | $this->wPrint, |
| 258 | 258 | 4, |
| 259 | 259 | $texto, |
@@ -266,10 +266,10 @@ discard block |
||
| 266 | 266 | ); |
| 267 | 267 | |
| 268 | 268 | $texto = "Data de Autorização: {$data}"; |
| 269 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 269 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 270 | 270 | $y4 = $this->pdf->textBox( |
| 271 | 271 | $this->margem, |
| 272 | - $y+1+$y1+$y2+$y3, |
|
| 272 | + $y + 1 + $y1 + $y2 + $y3, |
|
| 273 | 273 | $this->wPrint, |
| 274 | 274 | 4, |
| 275 | 275 | $texto, |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | true |
| 282 | 282 | ); |
| 283 | 283 | } |
| 284 | - $this->pdf->dashedHLine($this->margem, $this->bloco7H+$y, $this->wPrint, 0.1, 30); |
|
| 284 | + $this->pdf->dashedHLine($this->margem, $this->bloco7H + $y, $this->wPrint, 0.1, 30); |
|
| 285 | 285 | return $this->bloco7H + $y; |
| 286 | 286 | } |
| 287 | 287 | } |