@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if ($this->tpEmis == 9) { |
| 52 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => '']; |
|
| 53 | - $y += 2*$yPlus; |
|
| 52 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => '']; |
|
| 53 | + $y += 2 * $yPlus; |
|
| 54 | 54 | $y1 = $this->pdf->textBox( |
| 55 | 55 | $this->margem, |
| 56 | 56 | $y, |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | false |
| 66 | 66 | ); |
| 67 | 67 | |
| 68 | - $y1 += 2*$yPlus; |
|
| 68 | + $y1 += 2 * $yPlus; |
|
| 69 | 69 | $num = str_pad($this->getTagValue($this->ide, "nNF"), 9, '0', STR_PAD_LEFT); |
| 70 | 70 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 71 | 71 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'B']; |
| 74 | 74 | $y2 = $this->pdf->textBox( |
| 75 | 75 | $this->margem, |
| 76 | - $y+$y1, |
|
| 76 | + $y + $y1, |
|
| 77 | 77 | $this->wPrint, |
| 78 | 78 | 4, |
| 79 | 79 | $texto, |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $texto = $this->via; |
| 89 | 89 | $y3 = $this->pdf->textBox( |
| 90 | 90 | $this->margem, |
| 91 | - $y+$y1+$y2, |
|
| 91 | + $y + $y1 + $y2, |
|
| 92 | 92 | $this->wPrint, |
| 93 | 93 | 4, |
| 94 | 94 | $texto, |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B']; |
| 106 | 106 | $y4 = $this->pdf->textBox( |
| 107 | 107 | $this->margem, |
| 108 | - $y+$y1+$y2+$y3, |
|
| 108 | + $y + $y1 + $y2 + $y3, |
|
| 109 | 109 | $this->wPrint, |
| 110 | 110 | 4, |
| 111 | 111 | $texto, |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I']; |
| 123 | 123 | $y5 = $this->pdf->textBox( |
| 124 | 124 | $this->margem, |
| 125 | - $y+$y1+$y2+$y3+$y4, |
|
| 125 | + $y + $y1 + $y2 + $y3 + $y4, |
|
| 126 | 126 | $this->wPrint, |
| 127 | 127 | 3, |
| 128 | 128 | $texto, |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | ); |
| 136 | 136 | } else { |
| 137 | 137 | $this->blocoVII_prot( |
| 138 | - $y+$y1+$y2+$y3+$y4, |
|
| 138 | + $y + $y1 + $y2 + $y3 + $y4, |
|
| 139 | 139 | $subSize, |
| 140 | 140 | $protocolo, |
| 141 | 141 | $dhRecbto |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
| 146 | 146 | $y1 = $this->pdf->textBox( |
| 147 | 147 | $this->margem, |
| 148 | - $y+1, |
|
| 148 | + $y + 1, |
|
| 149 | 149 | $this->wPrint, |
| 150 | 150 | $this->bloco7H, |
| 151 | 151 | $texto, |
@@ -161,10 +161,10 @@ discard block |
||
| 161 | 161 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 162 | 162 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
| 163 | 163 | $texto = "NFCe n. {$num} Série {$serie} {$data}"; |
| 164 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 164 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 165 | 165 | $y2 = $this->pdf->textBox( |
| 166 | 166 | $this->margem, |
| 167 | - $y+1+$y1, |
|
| 167 | + $y + 1 + $y1, |
|
| 168 | 168 | $this->wPrint, |
| 169 | 169 | 4, |
| 170 | 170 | $texto, |
@@ -176,10 +176,10 @@ discard block |
||
| 176 | 176 | true |
| 177 | 177 | ); |
| 178 | 178 | $texto = "DANFE-NFC-e Impresso em contingência - EPEC"; |
| 179 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (10-$subSize), 'style' => 'B']; |
|
| 179 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (10 - $subSize), 'style' => 'B']; |
|
| 180 | 180 | $y2 = $this->pdf->textBox( |
| 181 | 181 | $this->margem, |
| 182 | - $y+1+$y1+3, |
|
| 182 | + $y + 1 + $y1 + 3, |
|
| 183 | 183 | $this->wPrint, |
| 184 | 184 | 4, |
| 185 | 185 | $texto, |
@@ -192,10 +192,10 @@ discard block |
||
| 192 | 192 | ); |
| 193 | 193 | |
| 194 | 194 | $texto = "Regularmente recebido pela administração tributária autorizadora"; |
| 195 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 195 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 196 | 196 | $y2 = $this->pdf->textBox( |
| 197 | 197 | $this->margem, |
| 198 | - $y+1+$y1+$y2+3, |
|
| 198 | + $y + 1 + $y1 + $y2 + 3, |
|
| 199 | 199 | $this->wPrint, |
| 200 | 200 | 4, |
| 201 | 201 | $texto, |
@@ -210,10 +210,10 @@ discard block |
||
| 210 | 210 | $dhCont = $this->dom->getElementsByTagName('dhCont')->item(0)->nodeValue; |
| 211 | 211 | $dt = \DateTime::createFromFormat('Y-m-d\TH:i:sP', $dhCont); |
| 212 | 212 | $texto = "Data de entrada em contingência : " . $dt->format('d/m/Y H:i:s'); |
| 213 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => '']; |
|
| 213 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => '']; |
|
| 214 | 214 | $y2 = $this->pdf->textBox( |
| 215 | 215 | $this->margem, |
| 216 | - $y+1+$y1+$y2+6, |
|
| 216 | + $y + 1 + $y1 + $y2 + 6, |
|
| 217 | 217 | $this->wPrint, |
| 218 | 218 | 4, |
| 219 | 219 | $texto, |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => '']; |
| 230 | 230 | $y1 = $this->pdf->textBox( |
| 231 | 231 | $this->margem, |
| 232 | - $y+1, |
|
| 232 | + $y + 1, |
|
| 233 | 233 | $this->wPrint, |
| 234 | 234 | $this->bloco7H, |
| 235 | 235 | $texto, |
@@ -245,10 +245,10 @@ discard block |
||
| 245 | 245 | $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT); |
| 246 | 246 | $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s'); |
| 247 | 247 | $texto = "NFCe n. {$num} Série {$serie} {$data}"; |
| 248 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => 'B']; |
|
| 248 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => 'B']; |
|
| 249 | 249 | $y2 = $this->pdf->textBox( |
| 250 | 250 | $this->margem, |
| 251 | - $y+1+$y1, |
|
| 251 | + $y + 1 + $y1, |
|
| 252 | 252 | $this->wPrint, |
| 253 | 253 | 4, |
| 254 | 254 | $texto, |
@@ -261,20 +261,20 @@ discard block |
||
| 261 | 261 | ); |
| 262 | 262 | |
| 263 | 263 | $this->blocoVIIProt( |
| 264 | - $y+1+$y1+$y2, |
|
| 264 | + $y + 1 + $y1 + $y2, |
|
| 265 | 265 | $subSize, |
| 266 | 266 | $protocolo, |
| 267 | 267 | $dhRecbto |
| 268 | 268 | ); |
| 269 | 269 | } |
| 270 | - $this->pdf->dashedHLine($this->margem, $this->bloco7H+$y, $this->wPrint, 0.1, 30); |
|
| 270 | + $this->pdf->dashedHLine($this->margem, $this->bloco7H + $y, $this->wPrint, 0.1, 30); |
|
| 271 | 271 | return $this->bloco7H + $y; |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | protected function blocoVIIProt($y, $subSize, $protocolo, $dhRecbto) |
| 275 | 275 | { |
| 276 | 276 | $texto = "Protocolo de Autorização: {$protocolo}"; |
| 277 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 277 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 278 | 278 | $y1 = $this->pdf->textBox( |
| 279 | 279 | $this->margem, |
| 280 | 280 | $y, |
@@ -290,10 +290,10 @@ discard block |
||
| 290 | 290 | ); |
| 291 | 291 | |
| 292 | 292 | $texto = "Data de Autorização: {$dhRecbto}"; |
| 293 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 293 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 294 | 294 | return $this->pdf->textBox( |
| 295 | 295 | $this->margem, |
| 296 | - $y+$y1, |
|
| 296 | + $y + $y1, |
|
| 297 | 297 | $this->wPrint, |
| 298 | 298 | 4, |
| 299 | 299 | $texto, |