@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | protected $paperwidth = 80; |
28 | 28 | protected $descPercent = 0.38; |
29 | 29 | protected $xml; // string XML NFe |
30 | - protected $logomarca=''; // path para logomarca em jpg |
|
31 | - protected $formatoChave="#### #### #### #### #### #### #### #### #### #### ####"; |
|
30 | + protected $logomarca = ''; // path para logomarca em jpg |
|
31 | + protected $formatoChave = "#### #### #### #### #### #### #### #### #### #### ####"; |
|
32 | 32 | protected $nfeProc; |
33 | 33 | protected $nfe; |
34 | 34 | protected $infNFe; |
@@ -219,10 +219,10 @@ discard block |
||
219 | 219 | //total inicial de paginas |
220 | 220 | $totPag = 1; |
221 | 221 | //largura imprimivel em mm: largura da folha menos as margens esq/direita |
222 | - $this->wPrint = $maxW-($margEsq*2); |
|
222 | + $this->wPrint = $maxW - ($margEsq * 2); |
|
223 | 223 | //comprimento (altura) imprimivel em mm: altura da folha menos as margens |
224 | 224 | //superior e inferior |
225 | - $this->hPrint = $maxH-$margSup-$margInf; |
|
225 | + $this->hPrint = $maxH - $margSup - $margInf; |
|
226 | 226 | // estabelece contagem de paginas |
227 | 227 | $this->pdf->aliasNbPages(); |
228 | 228 | $this->pdf->setMargins($margEsq, $margSup); // fixa as margens |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $y = $this->blocoIX($y); //informações sobre tributos |
247 | 247 | $y = $this->blocoX($y); //creditos |
248 | 248 | |
249 | - $ymark = $maxH/4; |
|
249 | + $ymark = $maxH / 4; |
|
250 | 250 | if ($this->tpAmb == 2) { |
251 | 251 | $this->pdf->setTextColor(120, 120, 120); |
252 | 252 | $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao"; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | $this->margem, |
256 | 256 | $ymark, |
257 | 257 | $this->wPrint, |
258 | - $maxH/2, |
|
258 | + $maxH / 2, |
|
259 | 259 | $texto, |
260 | 260 | $aFont, |
261 | 261 | 'T', |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | $aFont = ['font' => $this->fontePadrao, 'size' => 24, 'style' => 'B']; |
273 | 273 | $this->pdf->textBox( |
274 | 274 | $this->margem, |
275 | - $ymark+4, |
|
275 | + $ymark + 4, |
|
276 | 276 | $this->wPrint, |
277 | - $maxH/2, |
|
277 | + $maxH / 2, |
|
278 | 278 | $texto, |
279 | 279 | $aFont, |
280 | 280 | 'T', |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $y = $this->blocoVIII($y); //QRCODE |
303 | 303 | $y = $this->blocoIX($y); //informações sobre tributos |
304 | 304 | $y = $this->blocoX($y); //creditos |
305 | - $ymark = $maxH/4; |
|
305 | + $ymark = $maxH / 4; |
|
306 | 306 | if ($this->tpAmb == 2) { |
307 | 307 | $this->pdf->setTextColor(120, 120, 120); |
308 | 308 | $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao"; |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | $this->margem, |
312 | 312 | $ymark, |
313 | 313 | $this->wPrint, |
314 | - $maxH/2, |
|
314 | + $maxH / 2, |
|
315 | 315 | $texto, |
316 | 316 | $aFont, |
317 | 317 | 'T', |