@@ -379,12 +379,12 @@ discard block |
||
| 379 | 379 | $this->pdf->setTextColor(0, 0, 0); |
| 380 | 380 | $this->pdf->textBox(0, 0, $maxW, $maxH); // POR QUE PRECISO DESA LINHA? |
| 381 | 381 | |
| 382 | - $hcabecalho = 16;//para cabeçalho (dados emitente mais logomarca) (FIXO) |
|
| 382 | + $hcabecalho = 16; //para cabeçalho (dados emitente mais logomarca) (FIXO) |
|
| 383 | 383 | if (strlen($this->getTagValue($this->emit, "xNome")) > 40) { |
| 384 | 384 | $hcabecalho += 2; |
| 385 | 385 | $tamPapelVert += 2; |
| 386 | 386 | }; |
| 387 | - $hcabecalhoSecundario = 18;//para cabeçalho secundário (cabeçalho sefaz) (FIXO) |
|
| 387 | + $hcabecalhoSecundario = 18; //para cabeçalho secundário (cabeçalho sefaz) (FIXO) |
|
| 388 | 388 | $hagencia = 0; |
| 389 | 389 | if (!empty($this->agencia)) { |
| 390 | 390 | if (strlen($this->getTagValue($this->agencia, "xNome")) > 39) { |
@@ -394,9 +394,9 @@ discard block |
||
| 394 | 394 | $hagencia += 20; |
| 395 | 395 | $tamPapelVert += 18; |
| 396 | 396 | } |
| 397 | - $hprodutos = $hLinha + ($qtdItens * $hLinha);//box poduto |
|
| 397 | + $hprodutos = $hLinha + ($qtdItens * $hLinha); //box poduto |
|
| 398 | 398 | $hTotal = 12; //box total (FIXO) |
| 399 | - $hpagamentos = (2 * $hLinha) + ($qtdPgto * $hLinha);//para pagamentos |
|
| 399 | + $hpagamentos = (2 * $hLinha) + ($qtdPgto * $hLinha); //para pagamentos |
|
| 400 | 400 | if (!empty($this->vTroco)) { |
| 401 | 401 | $hpagamentos += $hLinha; |
| 402 | 402 | } |
@@ -446,12 +446,12 @@ discard block |
||
| 446 | 446 | } |
| 447 | 447 | //creditos do integrador |
| 448 | 448 | $aFont = array('font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'); |
| 449 | - $this->pdf->textBox($x, $this->hPrint-1, $this->wPrint, 3, $this->creditos, $aFont, 'T', 'L', false, '', false); |
|
| 449 | + $this->pdf->textBox($x, $this->hPrint - 1, $this->wPrint, 3, $this->creditos, $aFont, 'T', 'L', false, '', false); |
|
| 450 | 450 | $texto = ''; |
| 451 | 451 | if ($this->powered) { |
| 452 | 452 | $texto = "Powered by NFePHP®"; |
| 453 | 453 | } |
| 454 | - $this->pdf->textBox($x, $this->hPrint-1, $this->wPrint, 0, $texto, $aFont, 'T', 'R', false, ''); |
|
| 454 | + $this->pdf->textBox($x, $this->hPrint - 1, $this->wPrint, 0, $texto, $aFont, 'T', 'R', false, ''); |
|
| 455 | 455 | } |
| 456 | 456 | |
| 457 | 457 | /** |
@@ -552,13 +552,13 @@ discard block |
||
| 552 | 552 | if (!empty($this->logomarca)) { |
| 553 | 553 | $xImg = $margemInterna; |
| 554 | 554 | $logoInfo = getimagesize($this->logomarca); |
| 555 | - $logoWmm = ($logoInfo[0]/72)*25.4; |
|
| 556 | - $logoHmm = ($logoInfo[1]/72)*25.4; |
|
| 557 | - $nImgW = $this->paperwidth/2 - ($this->paperwidth/10 + 4); |
|
| 558 | - $nImgH = round($logoHmm * ($nImgW/$logoWmm), 0); |
|
| 555 | + $logoWmm = ($logoInfo[0] / 72) * 25.4; |
|
| 556 | + $logoHmm = ($logoInfo[1] / 72) * 25.4; |
|
| 557 | + $nImgW = $this->paperwidth / 2 - ($this->paperwidth / 10 + 4); |
|
| 558 | + $nImgH = round($logoHmm * ($nImgW / $logoWmm), 0); |
|
| 559 | 559 | if ($nImgH > 18) { |
| 560 | 560 | $nImgH = 18; |
| 561 | - $nImgW = round($logoWmm * ($nImgH/$logoHmm), 0); |
|
| 561 | + $nImgW = round($logoWmm * ($nImgH / $logoHmm), 0); |
|
| 562 | 562 | } |
| 563 | 563 | $yImg = $y; |
| 564 | 564 | $this->pdf->image($this->logomarca, $xImg, $yImg, $nImgW, $nImgH, 'jpeg'); |