Completed
Push — master ( e7164a...9a4b24 )
by Roberto
16:40 queued 13:43
created
src/NFe/Danfe.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
      * @var string
28 28
      */
29 29
     protected $numero_registro_dpec = '';
30
-     /**
31
-     * Parâmetro para exibir ou ocultar os valores do PIS/COFINS.
32
-     * @var boolean
33
-     */
30
+        /**
31
+         * Parâmetro para exibir ou ocultar os valores do PIS/COFINS.
32
+         * @var boolean
33
+         */
34 34
     protected $exibirPIS = true;
35 35
     /**
36 36
      * Parâmetro para exibir ou ocultar os valores do ICMS Interestadual e Valor Total dos Impostos.
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
                 $this->textoAdic .= ". \r\n";
465 465
             }
466 466
             $this->textoAdic .= "LOCAL DE ENTREGA : ".$txRetCNPJ.'-'.$txRetxLgr.', '.$txRetnro.' '.$txRetxCpl.
467
-               ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n";
467
+                ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n";
468 468
         }
469 469
         //informações adicionais
470 470
         $this->textoAdic .= $this->geraInformacoesDasNotasReferenciadas();
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
         $oldX = $x;
866 866
         $oldY = $y;
867 867
         if ($this->orientacao == 'P') {
868
-              $maxW = $this->wPrint;
868
+                $maxW = $this->wPrint;
869 869
         } else {
870 870
             if ($pag == 1) { // primeira página
871 871
                 $maxW = $this->wPrint - $this->wCanhoto;
@@ -1223,8 +1223,8 @@  discard block
 block discarded – undo
1223 1223
             $w = $maxW-(2*$x);
1224 1224
             $this->pdf->SetTextColor(200, 200, 200);
1225 1225
             $texto = "DANFE impresso em contingência -\n".
1226
-                     "DPEC regularmente recebido pela Receita\n".
1227
-                     "Federal do Brasil";
1226
+                        "DPEC regularmente recebido pela Receita\n".
1227
+                        "Federal do Brasil";
1228 1228
             $aFont = ['font'=>$this->fontePadrao, 'size'=>48, 'style'=>'B'];
1229 1229
             $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1230 1230
             $this->pdf->SetTextColor(0, 0, 0);
@@ -1517,13 +1517,13 @@  discard block
 block discarded – undo
1517 1517
         return ($y + $h);
1518 1518
     } //fim da função destinatarioDANFE
1519 1519
 
1520
-     /**
1521
-     * getTextoFatura
1522
-     * Gera a String do Texto da Fatura
1523
-      *
1524
-     * @name   getTextoFatura
1525
-     * @return uma String com o texto ou "";
1526
-     */
1520
+        /**
1521
+         * getTextoFatura
1522
+         * Gera a String do Texto da Fatura
1523
+         *
1524
+         * @name   getTextoFatura
1525
+         * @return uma String com o texto ou "";
1526
+         */
1527 1527
     protected function getTextoFatura()
1528 1528
     {
1529 1529
         if (isset($this->cobr)) {
@@ -1554,13 +1554,13 @@  discard block
 block discarded – undo
1554 1554
         return "";
1555 1555
     }
1556 1556
 
1557
-     /**
1558
-     * sizeExtraTextoFatura
1559
-     * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata.
1560
-      *
1561
-     * @name   sizeExtraTextoFatura
1562
-     * @return integer
1563
-     */
1557
+        /**
1558
+         * sizeExtraTextoFatura
1559
+         * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata.
1560
+         *
1561
+         * @name   sizeExtraTextoFatura
1562
+         * @return integer
1563
+         */
1564 1564
     protected function sizeExtraTextoFatura()
1565 1565
     {
1566 1566
         $textoFatura = $this->getTextoFatura();
@@ -1737,7 +1737,7 @@  discard block
 block discarded – undo
1737 1737
                                     '11'=>'Vale Refeição','12'=>'Vale Presente','13'=>'Vale Combustível',
1738 1738
                                     '14'=>'Duplicata Mercantil','15'=>'Boleto','90'=>'Sem pagamento','99'=>'Outros'];
1739 1739
             $bandeira = ['01'=>'Visa','02'=>'Mastercard','03'=>'American','04'=>'Sorocred','05'=>'Diners',
1740
-                              '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros'];
1740
+                                '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros'];
1741 1741
             foreach ($this->detPag as $k => $d) {
1742 1742
                 $fPag = !empty($this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue)
1743 1743
                     ? $this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue : '0';
@@ -2373,7 +2373,7 @@  discard block
 block discarded – undo
2373 2373
         $w4 = round($w*0.05, 0);
2374 2374
         $texto = 'O/CSOSN';//Regime do Simples CRT = 1 ou CRT = 2
2375 2375
         if ($this->getTagValue($this->emit, 'CRT') == '3') {
2376
-             $texto = 'O/CST';//Regime Normal
2376
+                $texto = 'O/CST';//Regime Normal
2377 2377
         }
2378 2378
         $aFont = ['font'=>$this->fontePadrao, 'size'=>6, 'style'=>''];
2379 2379
         $this->pdf->textBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false);
@@ -2748,7 +2748,7 @@  discard block
 block discarded – undo
2748 2748
         $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, '');
2749 2749
         $yVeic += $h;
2750 2750
         $texto = 'Tipo.................: ' . ($renavamTiposVeiculos[intval($veiculoTipo)] ?? $veiculoTipo);
2751
-         $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, '');
2751
+            $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, '');
2752 2752
         $yVeic = $y + $h;
2753 2753
         $xVeic = $x + 65;
2754 2754
         $texto = 'Nº Motor: .........: ' . $veiculoMotor;
@@ -2882,9 +2882,9 @@  discard block
 block discarded – undo
2882 2882
         //DADOS ADICIONAIS
2883 2883
         $texto = "DADOS ADICIONAIS";
2884 2884
         if ($this->orientacao == 'P') {
2885
-              $w = $this->wPrint;
2885
+                $w = $this->wPrint;
2886 2886
         } else {
2887
-              $w = $this->wPrint-$this->wCanhoto;
2887
+                $w = $this->wPrint-$this->wCanhoto;
2888 2888
         }
2889 2889
         $aFont = ['font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B'];
2890 2890
         $this->pdf->textBox($x, $y, $w, 8, $texto, $aFont, 'T', 'L', 0, '');
@@ -2965,10 +2965,10 @@  discard block
 block discarded – undo
2965 2965
         
2966 2966
         $y = $this->maxH - 4;
2967 2967
         if ($this->orientacao == 'P') {
2968
-              $w = $this->wPrint;
2968
+                $w = $this->wPrint;
2969 2969
         } else {
2970
-              $w = $this->wPrint-$this->wCanhoto;
2971
-              $x = $this->wCanhoto;
2970
+                $w = $this->wPrint-$this->wCanhoto;
2971
+                $x = $this->wCanhoto;
2972 2972
         }
2973 2973
         $aFont = ['font'=>$this->fontePadrao, 'size'=>6, 'style'=>'I'];
2974 2974
         $texto = "Impresso em ". date('d/m/Y') . " as " . date('H:i:s');
Please login to merge, or discard this patch.