Completed
Push — master ( e40ab2...2d4eb1 )
by Roberto
05:08 queued 12s
created
src/NFe/Daevento.php 1 patch
Spacing   +16 added lines, -18 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $this->retEvento = $this->dom->getElementsByTagName("retEvento")->item(0);
116 116
         $this->rinfEvento = $this->retEvento->getElementsByTagName("infEvento")->item(0);
117 117
         $this->tpEvento = $this->infEvento->getElementsByTagName("tpEvento")->item(0)->nodeValue;
118
-        if (!in_array($this->tpEvento, ['110110','110111'])) {
118
+        if (!in_array($this->tpEvento, ['110110', '110111'])) {
119 119
             $this->errMsg = 'Evento não implementado ' . $tpEvento . ' !!';
120 120
             $this->errStatus = true;
121 121
             return false;
@@ -135,11 +135,9 @@  discard block
 block discarded – undo
135 135
         $this->cStat = $this->rinfEvento->getElementsByTagName("cStat")->item(0)->nodeValue;
136 136
         $this->xMotivo = $this->rinfEvento->getElementsByTagName("xMotivo")->item(0)->nodeValue;
137 137
         $this->CNPJDest = !empty($this->rinfEvento->getElementsByTagName("CNPJDest")->item(0)->nodeValue) ?
138
-            $this->rinfEvento->getElementsByTagName("CNPJDest")->item(0)->nodeValue :
139
-            '';
138
+            $this->rinfEvento->getElementsByTagName("CNPJDest")->item(0)->nodeValue : '';
140 139
         $this->CPFDest = !empty($this->rinfEvento->getElementsByTagName("CPFDest")->item(0)->nodeValue) ?
141
-            $this->rinfEvento->getElementsByTagName("CPFDest")->item(0)->nodeValue :
142
-            '';
140
+            $this->rinfEvento->getElementsByTagName("CPFDest")->item(0)->nodeValue : '';
143 141
         $this->dhRegEvento = $this->rinfEvento->getElementsByTagName("dhRegEvento")->item(0)->nodeValue;
144 142
         $this->nProt = $this->rinfEvento->getElementsByTagName("nProt")->item(0)->nodeValue;
145 143
     }
@@ -234,9 +232,9 @@  discard block
 block discarded – undo
234 232
         // coluna esquerda identificação do emitente
235 233
         $w = round($maxW * 0.41, 0); // 80;
236 234
         if ($this->orientacao == 'P') {
237
-            $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => 'I'];
235
+            $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'];
238 236
         } else {
239
-            $aFont = ['font' => $this->fontePadrao,'size' => 8,'style' => 'B'];
237
+            $aFont = ['font' => $this->fontePadrao, 'size' => 8, 'style' => 'B'];
240 238
         }
241 239
         $w1 = $w;
242 240
         $h = 32;
@@ -389,7 +387,7 @@  discard block
 block discarded – undo
389 387
                 . 'abaixo referenciada, está cancelada, solicitamos que sejam '
390 388
                 . 'aplicadas essas correções ao executar seus lançamentos fiscais.';
391 389
         }
392
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => ''];
390
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => ''];
393 391
         $this->pdf->textBox($x + 5, $y1, $maxW - 5, 20, $texto, $aFont, 'T', 'L', 0, '', false);
394 392
         // ############################################
395 393
         $x = $oldX;
@@ -400,7 +398,7 @@  discard block
 block discarded – undo
400 398
         if ($this->CPFDest != '') {
401 399
             $texto = 'CPF do Destinatário: ' . $this->formatField($this->CPFDest, "###.###.###-##");
402 400
         }
403
-        $aFont = ['font' => $this->fontePadrao,'size' => 12,'style' => 'B'];
401
+        $aFont = ['font' => $this->fontePadrao, 'size' => 12, 'style' => 'B'];
404 402
         $this->pdf->textBox($x + 2, $y + 13, $w2, 8, $texto, $aFont, 'T', 'L', 0, '');
405 403
         $numNF = substr($this->chNFe, 25, 9);
406 404
         $serie = substr($this->chNFe, 22, 3);
@@ -416,7 +414,7 @@  discard block
 block discarded – undo
416 414
         $this->pdf->code128($x + (($w - $bW) / 2), $y + 2, $this->chNFe, $bW, $bH);
417 415
         $this->pdf->setFillColor(255, 255, 255);
418 416
         $y1 = $y + 2 + $bH;
419
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => ''];
417
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => ''];
420 418
         $texto = $this->formatField($this->chNFe, $this->formatoChave);
421 419
         $this->pdf->textBox($x, $y1, $w - 2, $h, $texto, $aFont, 'T', 'C', 0, '');
422 420
         $retVal = $sY + 2;
@@ -424,7 +422,7 @@  discard block
 block discarded – undo
424 422
             $x = $oldX;
425 423
             $this->pdf->textBox($x, $sY, $maxW, 15);
426 424
             $texto = $this->xCondUso;
427
-            $aFont = ['font' => $this->fontePadrao,'size' => 8,'style' => 'I'];
425
+            $aFont = ['font' => $this->fontePadrao, 'size' => 8, 'style' => 'I'];
428 426
             $this->pdf->textBox($x + 2, $sY + 2, $maxW - 2, 15, $texto, $aFont, 'T', 'L', 0, '', false);
429 427
             $retVal = $sY + 2;
430 428
         }
@@ -440,9 +438,9 @@  discard block
 block discarded – undo
440 438
             $w = $maxW - (2 * $x);
441 439
             $this->pdf->setTextColor(90, 90, 90);
442 440
             $texto = "SEM VALOR FISCAL";
443
-            $aFont = ['font' => $this->fontePadrao,'size' => 48,'style' => 'B'];
441
+            $aFont = ['font' => $this->fontePadrao, 'size' => 48, 'style' => 'B'];
444 442
             $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
445
-            $aFont = ['font' => $this->fontePadrao,'size' => 30,'style' => 'B'];
443
+            $aFont = ['font' => $this->fontePadrao, 'size' => 30, 'style' => 'B'];
446 444
             $texto = "AMBIENTE DE HOMOLOGAÇÃO";
447 445
             $this->pdf->textBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
448 446
             $this->pdf->setTextColor(0, 0, 0);
@@ -464,7 +462,7 @@  discard block
 block discarded – undo
464 462
         } else {
465 463
             $texto = 'JUSTIFICATIVA DO CANCELAMENTO';
466 464
         }
467
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => 'B'];
465
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'B'];
468 466
         $this->pdf->textBox($x, $y, $maxW, 5, $texto, $aFont, 'T', 'L', 0, '', false);
469 467
         $y += 5;
470 468
         $this->pdf->textBox($x, $y, $maxW, 190);
@@ -473,7 +471,7 @@  discard block
 block discarded – undo
473 471
         } elseif ($this->tpEvento == '110111') {
474 472
             $texto = $this->xJust;
475 473
         }
476
-        $aFont = ['font' => $this->fontePadrao,'size' => 12,'style' => 'B'];
474
+        $aFont = ['font' => $this->fontePadrao, 'size' => 12, 'style' => 'B'];
477 475
         $this->pdf->textBox($x + 2, $y + 2, $maxW - 2, 150, $texto, $aFont, 'T', 'L', 0, '', false);
478 476
     }
479 477
 
@@ -498,15 +496,15 @@  discard block
 block discarded – undo
498 496
                 . "eletrônico XML e pode ser consultada através dos Portais "
499 497
                 . "das SEFAZ.";
500 498
         }
501
-        $aFont = ['font' => $this->fontePadrao,'size' => 10,'style' => 'I'];
499
+        $aFont = ['font' => $this->fontePadrao, 'size' => 10, 'style' => 'I'];
502 500
         $this->pdf->textBox($x, $y, $w, 20, $texto, $aFont, 'T', 'C', 0, '', false);
503 501
         $y = $this->hPrint - 4;
504 502
         $texto = "Impresso em  " . date('d/m/Y   H:i:s') . ' ' . $this->creditos;
505 503
         $w = $this->wPrint - 4;
506
-        $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => 'I'];
504
+        $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'];
507 505
         $this->pdf->textBox($x, $y, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
508 506
         $texto = $this->powered ? "Powered by NFePHP®" : '';
509
-        $aFont = ['font' => $this->fontePadrao,'size' => 6,'style' => 'I'];
507
+        $aFont = ['font' => $this->fontePadrao, 'size' => 6, 'style' => 'I'];
510 508
         $this->pdf->textBox($x, $y, $w, 4, $texto, $aFont, 'T', 'R', 0, 'http://www.nfephp.org');
511 509
     }
512 510
 }
Please login to merge, or discard this patch.
src/BPe/Dabpe.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -379,12 +379,12 @@  discard block
 block discarded – undo
379 379
         $this->pdf->setTextColor(0, 0, 0);
380 380
         $this->pdf->textBox(0, 0, $maxW, $maxH); // POR QUE PRECISO DESA LINHA?
381 381
         
382
-        $hcabecalho = 16;//para cabeçalho (dados emitente mais logomarca)  (FIXO)
382
+        $hcabecalho = 16; //para cabeçalho (dados emitente mais logomarca)  (FIXO)
383 383
         if (strlen($this->getTagValue($this->emit, "xNome")) > 40) {
384 384
             $hcabecalho += 2;
385 385
             $tamPapelVert += 2;
386 386
         };
387
-        $hcabecalhoSecundario = 18;//para cabeçalho secundário (cabeçalho sefaz) (FIXO)
387
+        $hcabecalhoSecundario = 18; //para cabeçalho secundário (cabeçalho sefaz) (FIXO)
388 388
         $hagencia = 0;
389 389
         if (!empty($this->agencia)) {
390 390
             if (strlen($this->getTagValue($this->agencia, "xNome")) > 39) {
@@ -394,9 +394,9 @@  discard block
 block discarded – undo
394 394
             $hagencia += 20;
395 395
             $tamPapelVert += 18;
396 396
         }
397
-        $hprodutos = $hLinha + ($qtdItens * $hLinha);//box poduto
397
+        $hprodutos = $hLinha + ($qtdItens * $hLinha); //box poduto
398 398
         $hTotal = 12; //box total (FIXO)
399
-        $hpagamentos = (2 * $hLinha) + ($qtdPgto * $hLinha);//para pagamentos
399
+        $hpagamentos = (2 * $hLinha) + ($qtdPgto * $hLinha); //para pagamentos
400 400
         if (!empty($this->vTroco)) {
401 401
             $hpagamentos += $hLinha;
402 402
         }
@@ -446,10 +446,10 @@  discard block
 block discarded – undo
446 446
         }
447 447
         //creditos do integrador
448 448
         $aFont = array('font' => $this->fontePadrao, 'size' => 6, 'style' => 'I');
449
-        $this->pdf->textBox($x, $this->hPrint-1, $this->wPrint, 3, $this->creditos, $aFont, 'T', 'L', false, '', false);
449
+        $this->pdf->textBox($x, $this->hPrint - 1, $this->wPrint, 3, $this->creditos, $aFont, 'T', 'L', false, '', false);
450 450
         $texto = '';
451 451
         $texto = $this->powered ? "Powered by NFePHP®" : '';
452
-        $this->pdf->textBox($x, $this->hPrint-1, $this->wPrint, 0, $texto, $aFont, 'T', 'R', false, '');
452
+        $this->pdf->textBox($x, $this->hPrint - 1, $this->wPrint, 0, $texto, $aFont, 'T', 'R', false, '');
453 453
     }
454 454
 
455 455
     /**
@@ -550,13 +550,13 @@  discard block
 block discarded – undo
550 550
         if (!empty($this->logomarca)) {
551 551
             $xImg = $margemInterna;
552 552
             $logoInfo = getimagesize($this->logomarca);
553
-            $logoWmm = ($logoInfo[0]/72)*25.4;
554
-            $logoHmm = ($logoInfo[1]/72)*25.4;
555
-            $nImgW = $this->paperwidth/2 - ($this->paperwidth/10 + 4);
556
-            $nImgH = round($logoHmm * ($nImgW/$logoWmm), 0);
553
+            $logoWmm = ($logoInfo[0] / 72) * 25.4;
554
+            $logoHmm = ($logoInfo[1] / 72) * 25.4;
555
+            $nImgW = $this->paperwidth / 2 - ($this->paperwidth / 10 + 4);
556
+            $nImgH = round($logoHmm * ($nImgW / $logoWmm), 0);
557 557
             if ($nImgH > 18) {
558 558
                 $nImgH = 18;
559
-                $nImgW = round($logoWmm * ($nImgH/$logoHmm), 0);
559
+                $nImgW = round($logoWmm * ($nImgH / $logoHmm), 0);
560 560
             }
561 561
             $yImg = $y;
562 562
             $this->pdf->image($this->logomarca, $xImg, $yImg, $nImgW, $nImgH, 'jpeg');
Please login to merge, or discard this patch.
src/CTe/DacteOS.php 1 patch
Spacing   +20 added lines, -21 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
             $y += 19;
266 266
             $x = $xInic;
267 267
             $r = $this->seguro($x, $y);
268
-            $y = $y-12;
268
+            $y = $y - 12;
269 269
             switch ($this->modal) {
270 270
                 case '1':
271 271
                     $y += 24.9;
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
             'font' => $this->fontePadrao,
436 436
             'size' => 7,
437 437
             'style' => '');
438
-        $fone = $this->getTagValue($this->enderEmit, "fone")!=""? $this->formatFone($this->enderEmit):'';
438
+        $fone = $this->getTagValue($this->enderEmit, "fone") != "" ? $this->formatFone($this->enderEmit) : '';
439 439
         $lgr = $this->getTagValue($this->enderEmit, "xLgr");
440 440
         $nro = $this->getTagValue($this->enderEmit, "nro");
441 441
         $cpl = $this->getTagValue($this->enderEmit, "xCpl");
@@ -708,7 +708,7 @@  discard block
 block discarded – undo
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);
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
             $texto = "AMBIENTE DE HOMOLOGAÇÃO";
856 856
             $this->pdf->textBox($x, $y + 14, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
857 857
             $this->pdf->setTextColor(0, 0, 0);
858
-        } elseif ($this->preVisualizar=='1') { // caso seja uma DA de Pré-Visualização
858
+        } elseif ($this->preVisualizar == '1') { // caso seja uma DA de Pré-Visualização
859 859
             $h = 5;
860 860
             $w = $maxW - (2 * 10);
861 861
             $x = 55;
@@ -873,14 +873,14 @@  discard block
 block discarded – undo
873 873
                 'size' => 41,
874 874
                 'style' => 'B');
875 875
             $texto = "Sem Validade Jurídica";
876
-            $this->pdf->textBox90($x+20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
876
+            $this->pdf->textBox90($x + 20, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
877 877
             $this->pdf->setTextColor(90, 90, 90);
878 878
             $texto = "SEM VALOR FISCAL";
879 879
             $aFont = array(
880 880
                 'font' => $this->fontePadrao,
881 881
                 'size' => 48,
882 882
                 'style' => 'B');
883
-            $this->pdf->textBox90($x+40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
883
+            $this->pdf->textBox90($x + 40, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
884 884
             $this->pdf->setTextColor(0, 0, 0); // voltar a cor default
885 885
         } else {
886 886
             $x = 10;
@@ -960,13 +960,13 @@  discard block
 block discarded – undo
960 960
      */
961 961
     protected function rodape($x, $y)
962 962
     {
963
-        $texto = "Impresso em  " . date('d/m/Y   H:i:s') . ' ' .  $this->creditos;
963
+        $texto = "Impresso em  " . date('d/m/Y   H:i:s') . ' ' . $this->creditos;
964 964
         $w = $this->wPrint - 4;
965 965
         $aFont = array(
966 966
             'font' => $this->fontePadrao,
967 967
             'size' => 6,
968 968
             'style' => '');
969
-        $this->pdf->textBox($x-1, $y+2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
969
+        $this->pdf->textBox($x - 1, $y + 2, $w, 4, $texto, $aFont, 'T', 'L', 0, '');
970 970
         $texto = $this->powered ? "Powered by NFePHP®" : '';
971 971
         $this->pdf->textBox($x, $y, $w, 0, $texto, $aFont, 'T', 'R', false, '');
972 972
     }
@@ -1055,7 +1055,7 @@  discard block
 block discarded – undo
1055 1055
         $texto = 'FONE';
1056 1056
         $aFont = $this->formatPadrao;
1057 1057
         $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1058
-        $texto = $this->getTagValue($this->toma, "fone")!=""? $this->formatFone($this->toma):'';
1058
+        $texto = $this->getTagValue($this->toma, "fone") != "" ? $this->formatFone($this->toma) : '';
1059 1059
         $aFont = $this->formatNegrito;
1060 1060
         $this->pdf->textBox($x + 8, $y, $w, $h, $texto, $aFont, 'T', 'L', 0, '');
1061 1061
     }
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
         $aFont = $this->formatPadrao;
1196 1196
         $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1197 1197
 
1198
-        $wCol02=0.18;
1198
+        $wCol02 = 0.18;
1199 1199
         $x += $w * $wCol02;
1200 1200
         $this->pdf->line($x, $y, $x, $y + 9.5);
1201 1201
         $texto = 'ALÍQ ICMS';
@@ -1271,7 +1271,7 @@  discard block
 block discarded – undo
1271 1271
         $x += $w * $wCol02;
1272 1272
 
1273 1273
         $texto = !empty($this->ICMS->getElementsByTagName("pRedBC")->item(0)->nodeValue) ?
1274
-            number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".").'%' :'';
1274
+            number_format($this->getTagValue($this->ICMS, "pRedBC"), 2, ",", ".") . '%' : '';
1275 1275
         $aFont = $this->formatNegrito;
1276 1276
         $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
1277 1277
 
@@ -1499,14 +1499,14 @@  discard block
 block discarded – undo
1499 1499
             $texto .= $xObs;
1500 1500
         }
1501 1501
         $textoObs = explode("Motorista:", $texto);
1502
-        $textoObs[1] = isset($textoObs[1]) ? "Motorista: ".$textoObs[1]: '';
1502
+        $textoObs[1] = isset($textoObs[1]) ? "Motorista: " . $textoObs[1] : '';
1503 1503
         $texto .= $this->getTagValue($this->imp, "infAdFisco", "\r\n");
1504 1504
         $aFont = array(
1505 1505
             'font' => $this->fontePadrao,
1506 1506
             'size' => 7.5,
1507 1507
             'style' => '');
1508 1508
         $this->pdf->textBox($x, $y, $w, $h, $textoObs[0], $aFont, 'T', 'L', 0, '', false);
1509
-        $this->pdf->textBox($x, $y+11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
1509
+        $this->pdf->textBox($x, $y + 11.5, $w, $h, $textoObs[1], $aFont, 'T', 'L', 0, '', false);
1510 1510
     }
1511 1511
 
1512 1512
     /**
@@ -1544,7 +1544,7 @@  discard block
 block discarded – undo
1544 1544
         $aFont = $this->formatPadrao;
1545 1545
         $this->pdf->textBox($x, $y, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
1546 1546
 
1547
-        $wCol02=0.33;
1547
+        $wCol02 = 0.33;
1548 1548
         $x += $w * $wCol02;
1549 1549
         $this->pdf->line($x, $y, $x, $y + 9.5);
1550 1550
         $texto = 'NÚMERO DA APÓLICE';
@@ -1604,7 +1604,7 @@  discard block
 block discarded – undo
1604 1604
         $aFont = $this->formatPadrao;
1605 1605
         $this->pdf->textBox($x, $y, $w * 0.14, $h, $texto, $aFont, 'T', 'L', 0, '');
1606 1606
 
1607
-        $wCol02=0.18;
1607
+        $wCol02 = 0.18;
1608 1608
         $x += $w * $wCol02;
1609 1609
         $this->pdf->line($x, $y, $x, $y + 9.5);
1610 1610
         $texto = 'PLACA DO VEÍCULO';
@@ -1646,8 +1646,7 @@  discard block
 block discarded – undo
1646 1646
         $x += $w * $wCol02;
1647 1647
 
1648 1648
         $texto = !empty($this->getTagValue($this->veic->item(0), "CPF")) ?
1649
-            $this->getTagValue($this->veic->item(0), "CPF") :
1650
-            (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ?
1649
+            $this->getTagValue($this->veic->item(0), "CPF") : (!empty($this->getTagValue($this->veic->item(0), "CNPJ")) ?
1651 1650
             $this->getTagValue($this->veic->item(0), "CNPJ") : '');
1652 1651
         $aFont = $this->formatNegrito;
1653 1652
         $this->pdf->textBox($x, $y, $w * $wCol02, $h, $texto, $aFont, 'T', 'L', 0, '');
@@ -2116,7 +2115,7 @@  discard block
 block discarded – undo
2116 2115
      */
2117 2116
     protected function canhoto($x = 0, $y = 0)
2118 2117
     {
2119
-        $this->pdf->dashedHLine($x, $y+2, $this->wPrint, 0.1, 80);
2118
+        $this->pdf->dashedHLine($x, $y + 2, $this->wPrint, 0.1, 80);
2120 2119
         $y = $y + 2;
2121 2120
         $oldX = $x;
2122 2121
         $oldY = $y;
@@ -2155,7 +2154,7 @@  discard block
 block discarded – undo
2155 2154
 
2156 2155
         $this->pdf->line($x, $y, $x, $y + 16.5);
2157 2156
 
2158
-        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n". "\r\n";
2157
+        $texto = 'TÉRMINO DA PRESTAÇÃO - DATA/HORA' . "\r\n" . "\r\n" . "\r\n" . "\r\n";
2159 2158
         $texto .= ' INÍCIO DA PRESTAÇÃO - DATA/HORA';
2160 2159
         $aFont = array(
2161 2160
             'font' => $this->fontePadrao,
@@ -2165,14 +2164,14 @@  discard block
 block discarded – undo
2165 2164
         $x = $oldX;
2166 2165
         $y = $y + 5;
2167 2166
 
2168
-        $this->pdf->line($x, $y+3, $w * 0.255, $y+3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
2167
+        $this->pdf->line($x, $y + 3, $w * 0.255, $y + 3); // LINHA HORIZONTAL ACIMA DO RG ABAIXO DO NOME
2169 2168
 
2170 2169
         $texto = 'RG';
2171 2170
         $aFont = array(
2172 2171
             'font' => $this->fontePadrao,
2173 2172
             'size' => 6,
2174 2173
             'style' => '');
2175
-        $this->pdf->textBox($x, $y+3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
2174
+        $this->pdf->textBox($x, $y + 3, $w * 0.33, $h, $texto, $aFont, 'T', 'L', 0, '');
2176 2175
         $x += $w * 0.85;
2177 2176
 
2178 2177
         $this->pdf->line($x, $y + 11.5, $x, $y - 5); // LINHA VERTICAL PROXIMO AO CT-E
Please login to merge, or discard this patch.
src/CTe/Dacte.php 1 patch
Spacing   +8 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1072,7 +1072,7 @@  discard block
 block discarded – undo
1072 1072
      */
1073 1073
     protected function rodape($x, $y)
1074 1074
     {
1075
-        $texto = "Impresso em  " . date('d/m/Y H:i:s') . ' ' . $this->creditos ;
1075
+        $texto = "Impresso em  " . date('d/m/Y H:i:s') . ' ' . $this->creditos;
1076 1076
         $w = $this->wPrint - 4;
1077 1077
         $aFont = array(
1078 1078
             'font' => $this->fontePadrao,
@@ -1113,7 +1113,7 @@  discard block
 block discarded – undo
1113 1113
         $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'T', 'L', true, '');
1114 1114
         $aFont = $this->formatNegrito;
1115 1115
         $texto = $this->getTagValue($this->rem, "xNome");
1116
-        $this->pdf->textBox($x1, $y, $w-18, $h, $texto, $aFont, 'T', 'L', false, '', true);
1116
+        $this->pdf->textBox($x1, $y, $w - 18, $h, $texto, $aFont, 'T', 'L', false, '', true);
1117 1117
         $y += 3;
1118 1118
         $texto = 'ENDEREÇO';
1119 1119
         $aFont = $this->formatPadrao;
@@ -1201,7 +1201,7 @@  discard block
 block discarded – undo
1201 1201
         $this->pdf->textBox($x - 0.5, $y, $w, $h, $texto, $aFont, 'T', 'L', true, '');
1202 1202
         $aFont = $this->formatNegrito;
1203 1203
         $texto = $this->getTagValue($this->dest, "xNome");
1204
-        $this->pdf->textBox($x1, $y, $w-18, $h, $texto, $aFont, 'T', 'L', false, '', true);
1204
+        $this->pdf->textBox($x1, $y, $w - 18, $h, $texto, $aFont, 'T', 'L', false, '', true);
1205 1205
         $y += 3;
1206 1206
         $texto = 'ENDEREÇO';
1207 1207
         $aFont = $this->formatPadrao;
@@ -1298,8 +1298,7 @@  discard block
 block discarded – undo
1298 1298
             $texto = $this->getTagValue($this->enderExped, "xLgr") . ', ';
1299 1299
             $texto .= $this->getTagValue($this->enderExped, "nro");
1300 1300
             $texto .= $this->getTagValue($this->enderExped, "xCpl") != "" ?
1301
-                ' - ' . $this->getTagValue($this->enderExped, "xCpl") :
1302
-                '';
1301
+                ' - ' . $this->getTagValue($this->enderExped, "xCpl") : '';
1303 1302
         } else {
1304 1303
             $texto = '';
1305 1304
         }
@@ -1395,8 +1394,7 @@  discard block
 block discarded – undo
1395 1394
             $texto = $this->getTagValue($this->enderReceb, "xLgr") . ', ';
1396 1395
             $texto .= $this->getTagValue($this->enderReceb, "nro");
1397 1396
             $texto .= ($this->getTagValue($this->enderReceb, "xCpl") != "") ?
1398
-                ' - ' . $this->getTagValue($this->enderReceb, "xCpl") :
1399
-                '';
1397
+                ' - ' . $this->getTagValue($this->enderReceb, "xCpl") : '';
1400 1398
         } else {
1401 1399
             $texto = '';
1402 1400
         }
@@ -1600,7 +1598,7 @@  discard block
 block discarded – undo
1600 1598
         $qCarga = 0;
1601 1599
         foreach ($this->infQ as $infQ) {
1602 1600
             if (in_array($this->getTagValue($infQ, "cUnid"), array('01', '02'))) {
1603
-                $qCarga += (float)$this->getTagValue($infQ, "qCarga");
1601
+                $qCarga += (float) $this->getTagValue($infQ, "qCarga");
1604 1602
             }
1605 1603
         }
1606 1604
         $texto = 'PESO BRUTO (KG)';
@@ -1651,7 +1649,7 @@  discard block
 block discarded – undo
1651 1649
         $qCarga = 0;
1652 1650
         foreach ($this->infQ as $infQ) {
1653 1651
             if ($this->getTagValue($infQ, "cUnid") == '00') {
1654
-                $qCarga += (float)$this->getTagValue($infQ, "qCarga");
1652
+                $qCarga += (float) $this->getTagValue($infQ, "qCarga");
1655 1653
             }
1656 1654
         }
1657 1655
         $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : '';
@@ -1668,7 +1666,7 @@  discard block
 block discarded – undo
1668 1666
         $qCarga = 0;
1669 1667
         foreach ($this->infQ as $infQ) {
1670 1668
             if ($this->getTagValue($infQ, "cUnid") == '03') {
1671
-                $qCarga += (float)$this->getTagValue($infQ, "qCarga");
1669
+                $qCarga += (float) $this->getTagValue($infQ, "qCarga");
1672 1670
             }
1673 1671
         }
1674 1672
         $texto = !empty($qCarga) ? number_format($qCarga, 3, ",", ".") : '';
Please login to merge, or discard this patch.
src/MDFe/Damdfe.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     protected $yDados = 0;
27 27
     protected $xml; // string XML NFe
28 28
     protected $errMsg = ''; // mesagens de erro
29
-    protected $errStatus = false;// status de erro TRUE um erro ocorreu false sem erros
29
+    protected $errStatus = false; // status de erro TRUE um erro ocorreu false sem erros
30 30
     protected $formatoChave = "#### #### #### #### #### #### #### #### #### #### ####";
31 31
     protected $margemInterna = 2;
32 32
     protected $id;
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => '');
1179 1179
         $this->pdf->textBox($x, $y, $x2, 8, $texto, $aFont, 'T', 'L', 0, '', false);
1180 1180
         //$y = $this->hPrint - 4;
1181
-        $y = $this->hPrint+8;
1181
+        $y = $this->hPrint + 8;
1182 1182
         $texto = "Impresso em  " . date('d/m/Y H:i:s') . ' ' . $this->creditos;
1183 1183
         $w = $this->wPrint - 4;
1184 1184
         $aFont = array('font' => $this->fontePadrao, 'size' => 6, 'style' => 'I');
Please login to merge, or discard this patch.