Passed
Pull Request — master (#472)
by
unknown
01:34
created
src/MDFe/Damdfe.php 1 patch
Spacing   +15 added lines, -15 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;
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $UF = 'UF: ' . $this->UF;
316 316
         $mun = 'Municipio: ' . $this->xMun;
317 317
 
318
-        $texto = $cpfcnpj . ' - ' . $ie . $rntrc ."\n";
318
+        $texto = $cpfcnpj . ' - ' . $ie . $rntrc . "\n";
319 319
         $texto .= $lgr . ' - ' . $nro . "\n";
320 320
         $texto .= $bairro . "\n";
321 321
         $texto .= $UF . ' - ' . $mun . ' - ' . $CEP;
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
             $n = count($resp['message']);
570 570
             $alttot = $n * 15;
571 571
             $x = 10;
572
-            $y = $this->hPrint/2 - $alttot/2;
572
+            $y = $this->hPrint / 2 - $alttot / 2;
573 573
             $h = 15;
574 574
             $w = $maxW - (2 * $x);
575 575
             $this->pdf->settextcolor(90, 90, 90);
@@ -659,14 +659,14 @@  discard block
 block discarded – undo
659 659
         } else {
660 660
             $x3 = $x2 + 3;
661 661
         }
662
-        $this->pdf->textBox($x1, $y, $x3 -1, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
662
+        $this->pdf->textBox($x1, $y, $x3 - 1, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
663 663
         $texto = 'Data e Hora de Emissão';
664 664
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => '');
665
-        $this->pdf->textBox($x1, $y, $x3-1, 8, $texto, $aFont, 'T', 'L', 0, '', false);
665
+        $this->pdf->textBox($x1, $y, $x3 - 1, 8, $texto, $aFont, 'T', 'L', 0, '', false);
666 666
         $data = explode('T', $this->dhEmi);
667 667
         $texto = $this->ymdTodmy($data[0]) . ' - ' . $data[1];
668 668
         $aFont = array('font' => $this->fontePadrao, 'size' => 10, 'style' => 'B');
669
-        $this->pdf->textBox($x1, $y + 4, $x3-1, 4, $texto, $aFont, 'T', 'L', 0, '', false);
669
+        $this->pdf->textBox($x1, $y + 4, $x3 - 1, 4, $texto, $aFont, 'T', 'L', 0, '', false);
670 670
         $x1 += $x3;
671 671
 
672 672
         $this->pdf->textBox($x1, $y, $x2 - 16, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
@@ -730,21 +730,21 @@  discard block
 block discarded – undo
730 730
         $x2 = ($maxW / 6);
731 731
         $y += 6;
732 732
         $this->pdf->setFillColor(235, 236, 238);
733
-        $this->pdf->textBox($x1, $y, $x2-1, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
733
+        $this->pdf->textBox($x1, $y, $x2 - 1, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
734 734
         $texto = 'Qtd. CT-e';
735 735
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => '');
736
-        $this->pdf->textBox($x1, $y, $x2-1, 10, $texto, $aFont, 'T', 'L', 0, '', false);
736
+        $this->pdf->textBox($x1, $y, $x2 - 1, 10, $texto, $aFont, 'T', 'L', 0, '', false);
737 737
         $texto = str_pad($this->qCTe, 3, '0', STR_PAD_LEFT);
738 738
         $aFont = array('font' => $this->fontePadrao, 'size' => 10, 'style' => 'B');
739
-        $this->pdf->textBox($x1, $y + 4, $x2-2, 4, $texto, $aFont, 'T', 'L', 0, '', false);
739
+        $this->pdf->textBox($x1, $y + 4, $x2 - 2, 4, $texto, $aFont, 'T', 'L', 0, '', false);
740 740
         $x1 += $x2;
741
-        $this->pdf->textBox($x1, $y, $x2-1, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
741
+        $this->pdf->textBox($x1, $y, $x2 - 1, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
742 742
         $texto = 'Qtd. NF-e';
743 743
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => '');
744
-        $this->pdf->textBox($x1, $y, $x2-1, 8, $texto, $aFont, 'T', 'L', 0, '', false);
744
+        $this->pdf->textBox($x1, $y, $x2 - 1, 8, $texto, $aFont, 'T', 'L', 0, '', false);
745 745
         $texto = str_pad($this->qNFe, 3, '0', STR_PAD_LEFT);
746 746
         $aFont = array('font' => $this->fontePadrao, 'size' => 10, 'style' => 'B');
747
-        $this->pdf->textBox($x1, $y + 4, $x2-1, 4, $texto, $aFont, 'T', 'L', 0, '', false);
747
+        $this->pdf->textBox($x1, $y + 4, $x2 - 1, 4, $texto, $aFont, 'T', 'L', 0, '', false);
748 748
         $x1 += $x2;
749 749
         $this->pdf->textBox($x1, $y, $x2, 10, '', $this->baseFont, 'T', 'L', 0, '', 0, 0, 0, 1);
750 750
 
@@ -815,11 +815,11 @@  discard block
 block discarded – undo
815 815
         $y -= 4;
816 816
 
817 817
         // chave de acesso
818
-        $this->pdf->textBox($x + $maxW / 2, $y +4, $maxW / 2, 17, '', $this->baseFont, 'T', 'L', 0);
818
+        $this->pdf->textBox($x + $maxW / 2, $y + 4, $maxW / 2, 17, '', $this->baseFont, 'T', 'L', 0);
819 819
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => 'B');
820 820
         $tsHora = $this->toTimestamp($this->dhEvento);
821 821
         $texto = 'Chave de Acesso';
822
-        $this->pdf->textBox($x + $maxW / 2, $y +4, $maxW / 2, 6, $texto, $aFont, 'T', 'L', 0, '');
822
+        $this->pdf->textBox($x + $maxW / 2, $y + 4, $maxW / 2, 6, $texto, $aFont, 'T', 'L', 0, '');
823 823
         $aFont = array('font' => $this->fontePadrao, 'size' => 10, 'style' => '');
824 824
         $texto = $this->formatField($this->chMDFe, $this->formatoChave);
825 825
         $this->pdf->textBox($x + $maxW / 2, $y + 8, $maxW / 2, 6, $texto, $aFont, 'T', 'L', 0, '');
@@ -1248,7 +1248,7 @@  discard block
 block discarded – undo
1248 1248
         $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => '');
1249 1249
         $this->pdf->textBox($x, $y, $x2, 8, $texto, $aFont, 'T', 'L', 0, '', false);
1250 1250
         //$y = $this->hPrint - 4;
1251
-        $y = $this->hPrint+8;
1251
+        $y = $this->hPrint + 8;
1252 1252
         $texto = "Impresso em  " . date('d/m/Y H:i:s') . ' ' . $this->creditos;
1253 1253
         $w = $this->wPrint - 4;
1254 1254
         $aFont = array('font' => $this->fontePadrao, 'size' => 6, 'style' => 'I');
Please login to merge, or discard this patch.