Passed
Pull Request — master (#224)
by Eduardo
02:48
created
src/CTe/Dacanc.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -56,18 +56,18 @@
 block discarded – undo
56 56
     private $infCanc;
57 57
     private $retCancCte;
58 58
     
59
-   /**
60
-    *__construct
61
-    * @param string $docXML Arquivo XML da cce
62
-    * @param string $sOrientacao (Opcional) Orientação da impressão P-retrato L-Paisagem
63
-    * @param string $sPapel Tamanho do papel (Ex. A4)
64
-    * @param string $sPathLogo Caminho para o arquivo do logo
65
-    * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S-
66
-    * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF
67
-    * @param string $fonteDACTE Nome da fonte alternativa do DActe
68
-    * @param array $aEnd array com o endereço do emitente
69
-    * @param number $mododebug 1-SIM e 0-Não (0 default)
70
-    */
59
+    /**
60
+     *__construct
61
+     * @param string $docXML Arquivo XML da cce
62
+     * @param string $sOrientacao (Opcional) Orientação da impressão P-retrato L-Paisagem
63
+     * @param string $sPapel Tamanho do papel (Ex. A4)
64
+     * @param string $sPathLogo Caminho para o arquivo do logo
65
+     * @param string $sDestino Estabelece a direção do envio do documento PDF I-browser D-browser com download S-
66
+     * @param string $sDirPDF Caminho para o diretorio de armazenamento dos arquivos PDF
67
+     * @param string $fonteDACTE Nome da fonte alternativa do DActe
68
+     * @param array $aEnd array com o endereço do emitente
69
+     * @param number $mododebug 1-SIM e 0-Não (0 default)
70
+     */
71 71
     public function __construct(
72 72
         $docXML = '',
73 73
         $sOrientacao = '',
Please login to merge, or discard this patch.
src/NFe/Danfce.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,8 +223,8 @@
 block discarded – undo
223 223
         //retorna o ID na NFe
224 224
         if ($classPdf!==false) {
225 225
             $aR = [
226
-             'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")),
227
-             'classe_PDF'=>$this->pdf
226
+                'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")),
227
+                'classe_PDF'=>$this->pdf
228 228
             ];
229 229
             return $aR;
230 230
         } else {
Please login to merge, or discard this patch.
src/Legacy/Pdf.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -795,15 +795,15 @@
 block discarded – undo
795 795
         $this->setDrawColor(0);
796 796
     }
797 797
 
798
-   /**
799
-    * Desenha uma linha vertical tracejada com o FPDF
800
-    * @param   number $x      Posição horizontal inicial, em mm
801
-    * @param   number $y      Posição vertical inicial, em mm
802
-    * @param   number $w      Comprimento da linha, em mm
803
-    * @param   number $yfinal Espessura da linha, em mm
804
-    * @param   number $n      Numero de traços na seção da linha com o comprimento $w
805
-    * @return  none
806
-    */
798
+    /**
799
+     * Desenha uma linha vertical tracejada com o FPDF
800
+     * @param   number $x      Posição horizontal inicial, em mm
801
+     * @param   number $y      Posição vertical inicial, em mm
802
+     * @param   number $w      Comprimento da linha, em mm
803
+     * @param   number $yfinal Espessura da linha, em mm
804
+     * @param   number $n      Numero de traços na seção da linha com o comprimento $w
805
+     * @return  none
806
+     */
807 807
     public function dashedVLine($x, $y, $w, $yfinal, $n)
808 808
     {
809 809
         $this->setLineWidth($w);
Please login to merge, or discard this patch.
src/NFe/Danfe.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
                 $this->textoAdic .= ". \r\n";
596 596
             }
597 597
             $this->textoAdic .= "LOCAL DE ENTREGA : ".$txRetCNPJ.'-'.$txRetxLgr.', '.$txRetnro.' '.$txRetxCpl.
598
-               ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n";
598
+                ' - '.$txRetxBairro.' '.$txRetxMun.' - '.$txRetUF."\r\n";
599 599
         }
600 600
         //informações adicionais
601 601
         $this->textoAdic .= $this->pGeraInformacoesDasNotasReferenciadas();
@@ -791,8 +791,8 @@  discard block
 block discarded – undo
791 791
         //retorna o ID na NFe
792 792
         if ($classPdf!==false) {
793 793
             $aR = array(
794
-             'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")),
795
-             'classe_PDF'=>$this->pdf);
794
+                'id'=>str_replace('NFe', '', $this->infNFe->getAttribute("Id")),
795
+                'classe_PDF'=>$this->pdf);
796 796
             return $aR;
797 797
         } else {
798 798
             return str_replace('NFe', '', $this->infNFe->getAttribute("Id"));
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
         $oldX = $x;
1004 1004
         $oldY = $y;
1005 1005
         if ($this->orientacao == 'P') {
1006
-              $maxW = $this->wPrint;
1006
+                $maxW = $this->wPrint;
1007 1007
         } else {
1008 1008
             if ($pag == 1) { // primeira página
1009 1009
                 $maxW = $this->wPrint - $this->wCanhoto;
@@ -1339,8 +1339,8 @@  discard block
 block discarded – undo
1339 1339
             $w = $maxW-(2*$x);
1340 1340
             $this->pdf->SetTextColor(200, 200, 200);
1341 1341
             $texto = "DANFE impresso em contingência -\n".
1342
-                     "DPEC regularmente recebido pela Receita\n".
1343
-                     "Federal do Brasil";
1342
+                        "DPEC regularmente recebido pela Receita\n".
1343
+                        "Federal do Brasil";
1344 1344
             $aFont = array('font'=>$this->fontePadrao, 'size'=>48, 'style'=>'B');
1345 1345
             $this->pTextBox($x, $y, $w, $h, $texto, $aFont, 'C', 'C', 0, '');
1346 1346
             $this->pdf->SetTextColor(0, 0, 0);
@@ -1627,13 +1627,13 @@  discard block
 block discarded – undo
1627 1627
         return ($y + $h);
1628 1628
     } //fim da função destinatarioDANFE
1629 1629
 
1630
-     /**
1631
-     * pGetTextoFatura
1632
-     * Gera a String do Texto da Fatura
1633
-      *
1634
-     * @name   getTextoFatura
1635
-     * @return uma String com o texto ou "";
1636
-     */
1630
+        /**
1631
+         * pGetTextoFatura
1632
+         * Gera a String do Texto da Fatura
1633
+         *
1634
+         * @name   getTextoFatura
1635
+         * @return uma String com o texto ou "";
1636
+         */
1637 1637
     protected function pGetTextoFatura()
1638 1638
     {
1639 1639
         if (isset($this->cobr)) {
@@ -1664,13 +1664,13 @@  discard block
 block discarded – undo
1664 1664
         return "";
1665 1665
     } //fim getTextoFatura
1666 1666
 
1667
-     /**
1668
-     * pSizeExtraTextoFatura
1669
-     * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata.
1670
-      *
1671
-     * @name   pSizeExtraTextoFatura
1672
-     * @return integer
1673
-     */
1667
+        /**
1668
+         * pSizeExtraTextoFatura
1669
+         * Calcula o espaço ocupado pelo texto da fatura. Este espaço só é utilizado quando não houver duplicata.
1670
+         *
1671
+         * @name   pSizeExtraTextoFatura
1672
+         * @return integer
1673
+         */
1674 1674
     protected function pSizeExtraTextoFatura()
1675 1675
     {
1676 1676
         $textoFatura = $this->pGetTextoFatura();
@@ -1835,7 +1835,7 @@  discard block
 block discarded – undo
1835 1835
                                     '11'=>'Vale Refeição','12'=>'Vale Presente','13'=>'Vale Combustível',
1836 1836
                                     '14'=>'Duplicata Mercantil','15'=>'Boleto','90'=>'Sem pagamento','99'=>'Outros');
1837 1837
             $bandeira = array('01'=>'Visa','02'=>'Mastercard','03'=>'American','04'=>'Sorocred','05'=>'Diners',
1838
-                              '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros');
1838
+                                '06'=>'Elo','07'=>'Hipercard','08'=>'Aura','09'=>'Cabal','99'=>'Outros');
1839 1839
             foreach ($this->detPag as $k => $d) {
1840 1840
                 $fPag = !empty($this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue)
1841 1841
                     ? $this->detPag->item($k)->getElementsByTagName('tPag')->item(0)->nodeValue : '0';
@@ -2463,7 +2463,7 @@  discard block
 block discarded – undo
2463 2463
         $w4 = round($w*0.05, 0);
2464 2464
         $texto = 'O/CSOSN';//Regime do Simples CRT = 1 ou CRT = 2
2465 2465
         if ($this->getTagValue($this->emit, 'CRT') == '3') {
2466
-             $texto = 'O/CST';//Regime Normal
2466
+                $texto = 'O/CST';//Regime Normal
2467 2467
         }
2468 2468
         $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>'');
2469 2469
         $this->pTextBox($x, $y, $w4, $h, $texto, $aFont, 'C', 'C', 0, '', false);
@@ -2971,9 +2971,9 @@  discard block
 block discarded – undo
2971 2971
         //DADOS ADICIONAIS
2972 2972
         $texto = "DADOS ADICIONAIS";
2973 2973
         if ($this->orientacao == 'P') {
2974
-              $w = $this->wPrint;
2974
+                $w = $this->wPrint;
2975 2975
         } else {
2976
-              $w = $this->wPrint-$this->wCanhoto;
2976
+                $w = $this->wPrint-$this->wCanhoto;
2977 2977
         }
2978 2978
         $aFont = array('font'=>$this->fontePadrao, 'size'=>7, 'style'=>'B');
2979 2979
         $this->pTextBox($x, $y, $w, 8, $texto, $aFont, 'T', 'L', 0, '');
@@ -3053,10 +3053,10 @@  discard block
 block discarded – undo
3053 3053
     protected function pRodape($x, $y)
3054 3054
     {
3055 3055
         if ($this->orientacao == 'P') {
3056
-              $w = $this->wPrint;
3056
+                $w = $this->wPrint;
3057 3057
         } else {
3058
-              $w = $this->wPrint-$this->wCanhoto;
3059
-              $x = $this->wCanhoto;
3058
+                $w = $this->wPrint-$this->wCanhoto;
3059
+                $x = $this->wCanhoto;
3060 3060
         }
3061 3061
         $aFont = array('font'=>$this->fontePadrao, 'size'=>6, 'style'=>'I');
3062 3062
         $texto = "Impresso em ". date('d/m/Y') . " as " . date('H:i:s');
Please login to merge, or discard this patch.