@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $emitUF = $this->getTagValue($this->enderEmit, "UF"); |
| 25 | 25 | |
| 26 | 26 | $emitFone = $this->getTagValue($this->enderEmit, "fone"); |
| 27 | - if (strlen($emitFone)>0) { |
|
| 27 | + if (strlen($emitFone) > 0) { |
|
| 28 | 28 | if (strlen($emitFone) == 11) { |
| 29 | 29 | $emitFone = $this->formatField($emitFone, "(##)#####-####"); |
| 30 | 30 | } else { |
@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | $xImg = $this->margem; |
| 39 | 39 | $yImg = $this->margem + 1; |
| 40 | 40 | $logoInfo = getimagesize($this->logomarca); |
| 41 | - $logoWmm = ($logoInfo[0]/72)*25.4; |
|
| 42 | - $logoHmm = ($logoInfo[1]/72)*25.4; |
|
| 43 | - $nImgW = $this->wPrint/4; |
|
| 44 | - $nImgH = round($logoHmm * ($nImgW/$logoWmm), 0); |
|
| 41 | + $logoWmm = ($logoInfo[0] / 72) * 25.4; |
|
| 42 | + $logoHmm = ($logoInfo[1] / 72) * 25.4; |
|
| 43 | + $nImgW = $this->wPrint / 4; |
|
| 44 | + $nImgH = round($logoHmm * ($nImgW / $logoWmm), 0); |
|
| 45 | 45 | if ($nImgH > $maxHimg) { |
| 46 | 46 | $nImgH = $maxHimg; |
| 47 | - $nImgW = round($logoWmm * ($nImgH/$logoHmm), 0); |
|
| 47 | + $nImgW = round($logoWmm * ($nImgH / $logoHmm), 0); |
|
| 48 | 48 | } |
| 49 | 49 | $xRs = ($nImgW) + $this->margem; |
| 50 | 50 | $wRs = ($this->wPrint - $nImgW); |
@@ -59,10 +59,10 @@ discard block |
||
| 59 | 59 | $aFont = ['font'=>$this->fontePadrao, 'size' => 8, 'style' => '']; |
| 60 | 60 | $texto = "{$emitRazao}"; |
| 61 | 61 | $y += $this->pdf->textBox( |
| 62 | - $xRs+2, |
|
| 62 | + $xRs + 2, |
|
| 63 | 63 | $this->margem, |
| 64 | - $wRs-2, |
|
| 65 | - $this->bloco1H-$this->margem-1, |
|
| 64 | + $wRs - 2, |
|
| 65 | + $this->bloco1H - $this->margem - 1, |
|
| 66 | 66 | $texto, |
| 67 | 67 | $aFont, |
| 68 | 68 | 'T', |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | $aFont = ['font'=>$this->fontePadrao, 'size' => $this->pdf->fontSizePt, 'style' => '']; |
| 76 | 76 | } |
| 77 | 77 | $texto = "CNPJ: {$emitCnpj} IE: {$emitIE}"; |
| 78 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 78 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 79 | 79 | $texto = $emitLgr . ", " . $emitNro; |
| 80 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 80 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 81 | 81 | $texto = $emitBairro; |
| 82 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 83 | - $texto = $emitMun . "-" . $emitUF . ($emitFone ? " Fone: ".$emitFone : ""); |
|
| 84 | - $y += $this->pdf->textBox($xRs+2, $y, $wRs-2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 82 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 83 | + $texto = $emitMun . "-" . $emitUF . ($emitFone ? " Fone: " . $emitFone : ""); |
|
| 84 | + $y += $this->pdf->textBox($xRs + 2, $y, $wRs - 2, 3, $texto, $aFont, 'T', $alignH, false, '', true); |
|
| 85 | 85 | $this->pdf->dashedHLine($this->margem, $this->bloco1H, $this->wPrint, 0.1, 30); |
| 86 | 86 | return $this->bloco1H; |
| 87 | 87 | } |