@@ -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 | |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return $this->bloco5H + $y; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param integer $type |
|
| 71 | + */ |
|
| 69 | 72 | protected function pagType($type) |
| 70 | 73 | { |
| 71 | 74 | $lista = [ |
@@ -7,6 +7,9 @@ |
||
| 7 | 7 | */ |
| 8 | 8 | trait TraitBlocoIX |
| 9 | 9 | { |
| 10 | + /** |
|
| 11 | + * @param integer $y |
|
| 12 | + */ |
|
| 10 | 13 | protected function blocoIX($y) |
| 11 | 14 | { |
| 12 | 15 | //$this->bloco9H = 4; |
@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | $subSize = 1.5; |
| 44 | 44 | } |
| 45 | 45 | if ($this->tpEmis == 9) { |
| 46 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => '']; |
|
| 47 | - $y += 2*$yPlus; |
|
| 46 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => '']; |
|
| 47 | + $y += 2 * $yPlus; |
|
| 48 | 48 | $y1 = $this->pdf->textBox( |
| 49 | 49 | $this->margem, |
| 50 | 50 | $y, |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | false |
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | - $y1 += 2*$yPlus; |
|
| 62 | + $y1 += 2 * $yPlus; |
|
| 63 | 63 | $num = str_pad($this->getTagValue($this->ide, "nNF"), 9, '0', STR_PAD_LEFT); |
| 64 | 64 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 65 | 65 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'B']; |
| 68 | 68 | $y2 = $this->pdf->textBox( |
| 69 | 69 | $this->margem, |
| 70 | - $y+$y1, |
|
| 70 | + $y + $y1, |
|
| 71 | 71 | $this->wPrint, |
| 72 | 72 | 4, |
| 73 | 73 | $texto, |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $texto = $this->via; |
| 83 | 83 | $y3 = $this->pdf->textBox( |
| 84 | 84 | $this->margem, |
| 85 | - $y+$y1+$y2, |
|
| 85 | + $y + $y1 + $y2, |
|
| 86 | 86 | $this->wPrint, |
| 87 | 87 | 4, |
| 88 | 88 | $texto, |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
| 100 | 100 | $y4 = $this->pdf->textBox( |
| 101 | 101 | $this->margem, |
| 102 | - $y+$y1+$y2+$y3, |
|
| 102 | + $y + $y1 + $y2 + $y3, |
|
| 103 | 103 | $this->wPrint, |
| 104 | 104 | 4, |
| 105 | 105 | $texto, |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I']; |
| 116 | 116 | $y5 = $this->pdf->textBox( |
| 117 | 117 | $this->margem, |
| 118 | - $y+$y1+$y2+$y3+$y4, |
|
| 118 | + $y + $y1 + $y2 + $y3 + $y4, |
|
| 119 | 119 | $this->wPrint, |
| 120 | 120 | 3, |
| 121 | 121 | $texto, |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
| 131 | 131 | $y1 = $this->pdf->textBox( |
| 132 | 132 | $this->margem, |
| 133 | - $y+1, |
|
| 133 | + $y + 1, |
|
| 134 | 134 | $this->wPrint, |
| 135 | 135 | $this->bloco7H, |
| 136 | 136 | $texto, |
@@ -146,10 +146,10 @@ discard block |
||
| 146 | 146 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 147 | 147 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
| 148 | 148 | $texto = "NFCe n. {$num} Série {$serie} {$data}"; |
| 149 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => 'B']; |
|
| 149 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => 'B']; |
|
| 150 | 150 | $y2 = $this->pdf->textBox( |
| 151 | 151 | $this->margem, |
| 152 | - $y+1+$y1, |
|
| 152 | + $y + 1 + $y1, |
|
| 153 | 153 | $this->wPrint, |
| 154 | 154 | 4, |
| 155 | 155 | $texto, |
@@ -169,10 +169,10 @@ discard block |
||
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $texto = "Protocolo de Autorização: {$protocolo}"; |
| 172 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 172 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 173 | 173 | $y3 = $this->pdf->textBox( |
| 174 | 174 | $this->margem, |
| 175 | - $y+1+$y1+$y2, |
|
| 175 | + $y + 1 + $y1 + $y2, |
|
| 176 | 176 | $this->wPrint, |
| 177 | 177 | 4, |
| 178 | 178 | $texto, |
@@ -185,10 +185,10 @@ discard block |
||
| 185 | 185 | ); |
| 186 | 186 | |
| 187 | 187 | $texto = "Data de Autorização: {$data}"; |
| 188 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 188 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 189 | 189 | $y4 = $this->pdf->textBox( |
| 190 | 190 | $this->margem, |
| 191 | - $y+1+$y1+$y2+$y3, |
|
| 191 | + $y + 1 + $y1 + $y2 + $y3, |
|
| 192 | 192 | $this->wPrint, |
| 193 | 193 | 4, |
| 194 | 194 | $texto, |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | true |
| 201 | 201 | ); |
| 202 | 202 | } |
| 203 | - $this->pdf->dashedHLine($this->margem, $this->bloco7H+$y, $this->wPrint, 0.1, 30); |
|
| 203 | + $this->pdf->dashedHLine($this->margem, $this->bloco7H + $y, $this->wPrint, 0.1, 30); |
|
| 204 | 204 | return $this->bloco7H + $y; |
| 205 | 205 | } |
| 206 | 206 | } |
@@ -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 | } |