@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | $xImg = $this->margem; |
| 29 | 29 | $yImg = $this->margem + 1; |
| 30 | 30 | $logoInfo = getimagesize($this->logomarca); |
| 31 | - $logoWmm = ($logoInfo[0]/72)*25.4; |
|
| 32 | - $logoHmm = ($logoInfo[1]/72)*25.4; |
|
| 33 | - $nImgW = $this->wPrint/4; |
|
| 34 | - $nImgH = round($logoHmm * ($nImgW/$logoWmm), 0); |
|
| 31 | + $logoWmm = ($logoInfo[0] / 72) * 25.4; |
|
| 32 | + $logoHmm = ($logoInfo[1] / 72) * 25.4; |
|
| 33 | + $nImgW = $this->wPrint / 4; |
|
| 34 | + $nImgH = round($logoHmm * ($nImgW / $logoWmm), 0); |
|
| 35 | 35 | if ($nImgH > $maxHimg) { |
| 36 | 36 | $nImgH = $maxHimg; |
| 37 | - $nImgW = round($logoWmm * ($nImgH/$logoHmm), 0); |
|
| 37 | + $nImgW = round($logoWmm * ($nImgH / $logoHmm), 0); |
|
| 38 | 38 | } |
| 39 | 39 | $xRs = ($nImgW) + $this->margem; |
| 40 | 40 | $wRs = ($this->wPrint - $nImgW); |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | $aFont = ['font'=>$this->fontePadrao, 'size' => 8, 'style' => '']; |
| 50 | 50 | $texto = "{$emitRazao}"; |
| 51 | 51 | $y += $this->pdf->textBox( |
| 52 | - $xRs+2, |
|
| 52 | + $xRs + 2, |
|
| 53 | 53 | $this->margem, |
| 54 | - $wRs-2, |
|
| 55 | - $this->bloco1H-$this->margem-1, |
|
| 54 | + $wRs - 2, |
|
| 55 | + $this->bloco1H - $this->margem - 1, |
|
| 56 | 56 | $texto, |
| 57 | 57 | $aFont, |
| 58 | 58 | 'T', |
@@ -65,13 +65,13 @@ discard block |
||
| 65 | 65 | $aFont = ['font'=>$this->fontePadrao, 'size' => $this->pdf->fontSizePt, 'style' => '']; |
| 66 | 66 | } |
| 67 | 67 | $texto = "CNPJ: {$emitCnpj} IE: {$emitIE}"; |
| 68 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 68 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 69 | 69 | $texto = $emitLgr . ", " . $emitNro; |
| 70 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 70 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 71 | 71 | $texto = $emitBairro; |
| 72 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 72 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 73 | 73 | $texto = $emitMun . "-" . $emitUF; |
| 74 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 74 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 75 | 75 | $this->pdf->dashedHLine($this->margem, $this->bloco1H + ($this->fontePadrao == 'arial' ? 1 : 0), $this->wPrint, 0.1, 30); |
| 76 | 76 | return $this->bloco1H; |
| 77 | 77 | } |