Completed
Push — master ( 0b1d68...e7164a )
by Roberto
12:40 queued 09:51
created
src/NFe/Danfe.php 1 patch
Indentation   +31 added lines, -31 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.
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
         if (isset($this->dup) && $this->dup->length > 0) {
406 406
             $qtdPag = $this->dup->length;
407 407
         } elseif (isset($this->detPag) && $this->detPag->length > 0) {
408
-           $qtdPag = $this->detPag->length;
408
+            $qtdPag = $this->detPag->length;
409 409
         }
410 410
         if (($qtdPag > 0) && ($qtdPag <= 7)) {
411 411
             $linhasDup = 1;
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
                 $this->textoAdic .= ". \r\n";
470 470
             }
471 471
             $this->textoAdic .= "LOCAL DE ENTREGA : ".$txRetCNPJ.'-'.$txRetxLgr.', '.$txRetnro.' '.$txRetxCpl.
472
-               ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n";
472
+                ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n";
473 473
         }
474 474
         //informações adicionais
475 475
         $this->textoAdic .= $this->geraInformacoesDasNotasReferenciadas();
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
         $oldX = $x;
871 871
         $oldY = $y;
872 872
         if ($this->orientacao == 'P') {
873
-              $maxW = $this->wPrint;
873
+                $maxW = $this->wPrint;
874 874
         } else {
875 875
             if ($pag == 1) { // primeira página
876 876
                 $maxW = $this->wPrint - $this->wCanhoto;
@@ -1228,8 +1228,8 @@  discard block
 block discarded – undo
1228 1228
             $w = $maxW-(2*$x);
1229 1229
             $this->pdf->SetTextColor(200, 200, 200);
1230 1230
             $texto = "DANFE impresso em contingência -\n".
1231
-                     "DPEC regularmente recebido pela Receita\n".
1232
-                     "Federal do Brasil";
1231
+                        "DPEC regularmente recebido pela Receita\n".
1232
+                        "Federal do Brasil";
1233 1233
             $aFont = ['font'=>$this->fontePadrao, 'size'=>48, 'style'=>'B'];
1234 1234
             $this->pdf->textBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1235 1235
             $this->pdf->SetTextColor(0, 0, 0);
@@ -1522,13 +1522,13 @@  discard block
 block discarded – undo
1522 1522
         return ($y + $h);
1523 1523
     } //fim da função destinatarioDANFE
1524 1524
 
1525
-     /**
1526
-     * getTextoFatura
1527
-     * Gera a String do Texto da Fatura
1528
-      *
1529
-     * @name   getTextoFatura
1530
-     * @return uma String com o texto ou "";
1531
-     */
1525
+        /**
1526
+         * getTextoFatura
1527
+         * Gera a String do Texto da Fatura
1528
+         *
1529
+         * @name   getTextoFatura
1530
+         * @return uma String com o texto ou "";
1531
+         */
1532 1532
     protected function getTextoFatura()
1533 1533
     {
1534 1534
         if (isset($this->cobr)) {
@@ -1559,13 +1559,13 @@  discard block
 block discarded – undo
1559 1559
         return "";
1560 1560
     }
1561 1561
 
1562
-     /**
1563
-     * sizeExtraTextoFatura
1564
-     * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata.
1565
-      *
1566
-     * @name   sizeExtraTextoFatura
1567
-     * @return integer
1568
-     */
1562
+        /**
1563
+         * sizeExtraTextoFatura
1564
+         * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata.
1565
+         *
1566
+         * @name   sizeExtraTextoFatura
1567
+         * @return integer
1568
+         */
1569 1569
     protected function sizeExtraTextoFatura()
1570 1570
     {
1571 1571
         $textoFatura = $this->getTextoFatura();
@@ -1742,7 +1742,7 @@  discard block
 block discarded – undo
1742 1742
                                     '11'=>'Vale Refeição','12'=>'Vale Presente','13'=>'Vale Combustível',
1743 1743
                                     '14'=>'Duplicata Mercantil','15'=>'Boleto','90'=>'Sem pagamento','99'=>'Outros'];
1744 1744
             $bandeira = ['01'=>'Visa','02'=>'Mastercard','03'=>'American','04'=>'Sorocred','05'=>'Diners',
1745
-                              '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros'];
1745
+                                '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros'];
1746 1746
             foreach ($this->detPag as $k => $d) {
1747 1747
                 $fPag = !empty($this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue)
1748 1748
                     ? $this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue : '0';
@@ -2378,7 +2378,7 @@  discard block
 block discarded – undo
2378 2378
         $w4 = round($w*0.05, 0);
2379 2379
         $texto = 'O/CSOSN';//Regime do Simples CRT = 1 ou CRT = 2
2380 2380
         if ($this->getTagValue($this->emit, 'CRT') == '3') {
2381
-             $texto = 'O/CST';//Regime Normal
2381
+                $texto = 'O/CST';//Regime Normal
2382 2382
         }
2383 2383
         $aFont = ['font'=>$this->fontePadrao, 'size'=>6, 'style'=>''];
2384 2384
         $this->pdf->textBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false);
@@ -2753,7 +2753,7 @@  discard block
 block discarded – undo
2753 2753
         $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, '');
2754 2754
         $yVeic += $h;
2755 2755
         $texto = 'Tipo.................: ' . ($renavamTiposVeiculos[intval($veiculoTipo)] ?? $veiculoTipo);
2756
-         $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, '');
2756
+            $this->pdf->textBox($x, $yVeic, $w1+40, $h, $texto, $aFont, 'T', 'L', 0, '');
2757 2757
         $yVeic = $y + $h;
2758 2758
         $xVeic = $x + 65;
2759 2759
         $texto = 'Nº Motor: .........: ' . $veiculoMotor;
@@ -2887,9 +2887,9 @@  discard block
 block discarded – undo
2887 2887
         //DADOS ADICIONAIS
2888 2888
         $texto = "DADOS ADICIONAIS";
2889 2889
         if ($this->orientacao == 'P') {
2890
-              $w = $this->wPrint;
2890
+                $w = $this->wPrint;
2891 2891
         } else {
2892
-              $w = $this->wPrint-$this->wCanhoto;
2892
+                $w = $this->wPrint-$this->wCanhoto;
2893 2893
         }
2894 2894
         $aFont = ['font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B'];
2895 2895
         $this->pdf->textBox($x, $y, $w, 8, $texto, $aFont, 'T', 'L', 0, '');
@@ -2970,10 +2970,10 @@  discard block
 block discarded – undo
2970 2970
         
2971 2971
         $y = $this->maxH - 4;
2972 2972
         if ($this->orientacao == 'P') {
2973
-              $w = $this->wPrint;
2973
+                $w = $this->wPrint;
2974 2974
         } else {
2975
-              $w = $this->wPrint-$this->wCanhoto;
2976
-              $x = $this->wCanhoto;
2975
+                $w = $this->wPrint-$this->wCanhoto;
2976
+                $x = $this->wCanhoto;
2977 2977
         }
2978 2978
         $aFont = ['font'=>$this->fontePadrao, 'size'=>6, 'style'=>'I'];
2979 2979
         $texto = "Impresso em ". date('d/m/Y') . " as " . date('H:i:s');
Please login to merge, or discard this patch.