@@ -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 | } |
@@ -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, |
@@ -117,12 +117,12 @@ discard block |
||
| 117 | 117 | true |
| 118 | 118 | ); |
| 119 | 119 | |
| 120 | - if( empty($protocolo) ) { |
|
| 120 | + if (empty($protocolo)) { |
|
| 121 | 121 | $texto = "Pendente de autorização"; |
| 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,19 +261,19 @@ discard block |
||
| 261 | 261 | ); |
| 262 | 262 | |
| 263 | 263 | $this->blocoVII_prot( |
| 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 blocoVII_prot($y, $subSize, $protocolo, $dhRecbto) { |
| 275 | 275 | $texto = "Protocolo de Autorização: {$protocolo}"; |
| 276 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 276 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 277 | 277 | $y1 = $this->pdf->textBox( |
| 278 | 278 | $this->margem, |
| 279 | 279 | $y, |
@@ -289,10 +289,10 @@ discard block |
||
| 289 | 289 | ); |
| 290 | 290 | |
| 291 | 291 | $texto = "Data de Autorização: {$dhRecbto}"; |
| 292 | - $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => '']; |
|
| 292 | + $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => '']; |
|
| 293 | 293 | return $this->pdf->textBox( |
| 294 | 294 | $this->margem, |
| 295 | - $y+$y1, |
|
| 295 | + $y + $y1, |
|
| 296 | 296 | $this->wPrint, |
| 297 | 297 | 4, |
| 298 | 298 | $texto, |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | $y += 19; |
| 268 | 268 | $x = $xInic; |
| 269 | 269 | $r = $this->seguro($x, $y); |
| 270 | - $y = $y-12; |
|
| 270 | + $y = $y - 12; |
|
| 271 | 271 | switch ($this->modal) { |
| 272 | 272 | case '1': |
| 273 | 273 | $y += 24.9; |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | 'font' => $this->fontePadrao, |
| 438 | 438 | 'size' => 7, |
| 439 | 439 | 'style' => ''); |
| 440 | - $fone = $this->getTagValue($this->enderEmit, "fone")!=""? $this->formatFone($this->enderEmit):''; |
|
| 440 | + $fone = $this->getTagValue($this->enderEmit, "fone") != "" ? $this->formatFone($this->enderEmit) : ''; |
|
| 441 | 441 | $lgr = $this->getTagValue($this->enderEmit, "xLgr"); |
| 442 | 442 | $nro = $this->getTagValue($this->enderEmit, "nro"); |
| 443 | 443 | $cpl = $this->getTagValue($this->enderEmit, "xCpl"); |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | $this->pdf->textBox($x, $y + 12, $wa, $h, $texto, $aFont, 'T', 'C', 0, ''); |
| 709 | 709 | |
| 710 | 710 | if ($this->qrCodMDFe !== null) { |
| 711 | - $this->qrCodeDacteOs($y-25); |
|
| 711 | + $this->qrCodeDacteOs($y - 25); |
|
| 712 | 712 | $w = 38; |
| 713 | 713 | $x += 79; |
| 714 | 714 | $this->pdf->textBox($x, $y - 34, $w + 0.5, $h + 41.5); |
@@ -790,7 +790,7 @@ discard block |
||
| 790 | 790 | $n = count($resp['message']); |
| 791 | 791 | $alttot = $n * 15; |
| 792 | 792 | $x = 10; |
| 793 | - $y = $this->hPrint/2 - $alttot/2; |
|
| 793 | + $y = $this->hPrint / 2 - $alttot / 2; |
|
| 794 | 794 | $h = 15; |
| 795 | 795 | $w = $maxW - (2 * $x); |
| 796 | 796 | $this->pdf->settextcolor(90, 90, 90); |
@@ -893,13 +893,13 @@ discard block |
||
| 893 | 893 | */ |
| 894 | 894 | protected function rodape($x, $y) |
| 895 | 895 | { |
| 896 | - $texto = "Impresso em " . date('d/m/Y H:i:s') . ' ' . $this->creditos; |
|
| 896 | + $texto = "Impresso em " . date('d/m/Y H:i:s') . ' ' . $this->creditos; |
|
| 897 | 897 | $w = $this->wPrint - 4; |
| 898 | 898 | $aFont = array( |
| 899 | 899 | 'font' => $this->fontePadrao, |
| 900 | 900 | 'size' => 6, |
| 901 | 901 | 'style' => ''); |
| 902 | - $this->pdf->textBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 902 | + $this->pdf->textBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 903 | 903 | $texto = $this->powered ? "Powered by NFePHP®" : ''; |
| 904 | 904 | $this->pdf->textBox($x, $y, $w, 0, $texto, $aFont, 'T', 'R', false, ''); |
| 905 | 905 | } |
@@ -988,7 +988,7 @@ discard block |
||
| 988 | 988 | $texto = 'FONE'; |
| 989 | 989 | $aFont = $this->formatPadrao; |
| 990 | 990 | $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 991 | - $texto = $this->getTagValue($this->toma, "fone")!=""? $this->formatFone($this->toma):''; |
|
| 991 | + $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->formatFone($this->toma) : ''; |
|
| 992 | 992 | $aFont = $this->formatNegrito; |
| 993 | 993 | $this->pdf->textBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 994 | 994 | } |
@@ -1128,7 +1128,7 @@ discard block |
||
| 1128 | 1128 | $aFont = $this->formatPadrao; |
| 1129 | 1129 | $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1130 | 1130 | |
| 1131 | - $wCol02=0.18; |
|
| 1131 | + $wCol02 = 0.18; |
|
| 1132 | 1132 | $x += $w * $wCol02; |
| 1133 | 1133 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1134 | 1134 | $texto = 'ALÍQ ICMS'; |
@@ -1204,7 +1204,7 @@ discard block |
||
| 1204 | 1204 | $x += $w * $wCol02; |
| 1205 | 1205 | |
| 1206 | 1206 | $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ? |
| 1207 | - number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :''; |
|
| 1207 | + number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : ''; |
|
| 1208 | 1208 | $aFont = $this->formatNegrito; |
| 1209 | 1209 | $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1210 | 1210 | |
@@ -1432,14 +1432,14 @@ discard block |
||
| 1432 | 1432 | $texto .= $xObs; |
| 1433 | 1433 | } |
| 1434 | 1434 | $textoObs = explode("Motorista:", $texto); |
| 1435 | - $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: ''; |
|
| 1435 | + $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : ''; |
|
| 1436 | 1436 | $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n"); |
| 1437 | 1437 | $aFont = array( |
| 1438 | 1438 | 'font' => $this->fontePadrao, |
| 1439 | 1439 | 'size' => 7.5, |
| 1440 | 1440 | 'style' => ''); |
| 1441 | 1441 | $this->pdf->textBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false); |
| 1442 | - $this->pdf->textBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 1442 | + $this->pdf->textBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false); |
|
| 1443 | 1443 | } |
| 1444 | 1444 | |
| 1445 | 1445 | /** |
@@ -1477,7 +1477,7 @@ discard block |
||
| 1477 | 1477 | $aFont = $this->formatPadrao; |
| 1478 | 1478 | $this->pdf->textBox($x, $y, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1479 | 1479 | |
| 1480 | - $wCol02=0.33; |
|
| 1480 | + $wCol02 = 0.33; |
|
| 1481 | 1481 | $x += $w * $wCol02; |
| 1482 | 1482 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1483 | 1483 | $texto = 'NÚMERO DA APÓLICE'; |
@@ -1536,7 +1536,7 @@ discard block |
||
| 1536 | 1536 | $aFont = $this->formatPadrao; |
| 1537 | 1537 | $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 1538 | 1538 | |
| 1539 | - $wCol02=0.18; |
|
| 1539 | + $wCol02 = 0.18; |
|
| 1540 | 1540 | $x += $w * $wCol02; |
| 1541 | 1541 | $this->pdf->line($x, $y, $x, $y + 9.5); |
| 1542 | 1542 | $texto = 'PLACA DO VEÍCULO'; |
@@ -1578,8 +1578,7 @@ discard block |
||
| 1578 | 1578 | $x += $w * $wCol02; |
| 1579 | 1579 | |
| 1580 | 1580 | $texto = !empty($this->getTagValue($this->veic->item(0), "CPF")) ? |
| 1581 | - $this->getTagValue($this->veic->item(0), "CPF") : |
|
| 1582 | - (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ? |
|
| 1581 | + $this->getTagValue($this->veic->item(0), "CPF") : (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ? |
|
| 1583 | 1582 | $this->getTagValue($this->veic->item(0), "CNPJ") : ''); |
| 1584 | 1583 | $aFont = $this->formatNegrito; |
| 1585 | 1584 | $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, ''); |
@@ -2048,7 +2047,7 @@ discard block |
||
| 2048 | 2047 | */ |
| 2049 | 2048 | protected function canhoto($x = 0, $y = 0) |
| 2050 | 2049 | { |
| 2051 | - $this->pdf->dashedHLine($x, $y+2, $this->wPrint, 0.1, 80); |
|
| 2050 | + $this->pdf->dashedHLine($x, $y + 2, $this->wPrint, 0.1, 80); |
|
| 2052 | 2051 | $y = $y + 2; |
| 2053 | 2052 | $oldX = $x; |
| 2054 | 2053 | $oldY = $y; |
@@ -2087,7 +2086,7 @@ discard block |
||
| 2087 | 2086 | |
| 2088 | 2087 | $this->pdf->line($x, $y, $x, $y + 16.5); |
| 2089 | 2088 | |
| 2090 | - $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n"; |
|
| 2089 | + $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n"; |
|
| 2091 | 2090 | $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA'; |
| 2092 | 2091 | $aFont = array( |
| 2093 | 2092 | 'font' => $this->fontePadrao, |
@@ -2097,14 +2096,14 @@ discard block |
||
| 2097 | 2096 | $x = $oldX; |
| 2098 | 2097 | $y = $y + 5; |
| 2099 | 2098 | |
| 2100 | - $this->pdf->line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 2099 | + $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
|
| 2101 | 2100 | |
| 2102 | 2101 | $texto = 'RG'; |
| 2103 | 2102 | $aFont = array( |
| 2104 | 2103 | 'font' => $this->fontePadrao, |
| 2105 | 2104 | 'size' => 6, |
| 2106 | 2105 | 'style' => ''); |
| 2107 | - $this->pdf->textBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2106 | + $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
|
| 2108 | 2107 | $x += $w * 0.85; |
| 2109 | 2108 | |
| 2110 | 2109 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |
@@ -1610,7 +1610,7 @@ discard block |
||
| 1610 | 1610 | $qCarga = 0; |
| 1611 | 1611 | foreach ($this->infQ as $infQ) { |
| 1612 | 1612 | if ($this->getTagValue($infQ, "cUnid") == '00') { |
| 1613 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
| 1613 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
| 1614 | 1614 | } |
| 1615 | 1615 | } |
| 1616 | 1616 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -1627,7 +1627,7 @@ discard block |
||
| 1627 | 1627 | $qCarga = 0; |
| 1628 | 1628 | foreach ($this->infQ as $infQ) { |
| 1629 | 1629 | if ($this->getTagValue($infQ, "cUnid") == '03') { |
| 1630 | - $qCarga += (float)$this->getTagValue($infQ, "qCarga"); |
|
| 1630 | + $qCarga += (float) $this->getTagValue($infQ, "qCarga"); |
|
| 1631 | 1631 | } |
| 1632 | 1632 | } |
| 1633 | 1633 | $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : ''; |
@@ -3557,7 +3557,7 @@ discard block |
||
| 3557 | 3557 | $y = $y + 5; |
| 3558 | 3558 | $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME |
| 3559 | 3559 | $texto = 'RG'; |
| 3560 | - $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => '']; |
|
| 3560 | + $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => '']; |
|
| 3561 | 3561 | $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, ''); |
| 3562 | 3562 | $x += $w * 0.85; |
| 3563 | 3563 | $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E |