Passed
Push — master ( 42a567...1ac832 )
by Roberto
01:02 queued 12s
created
src/MDFe/Damdfe.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     protected $xml; // string XML NFe
31 31
     protected $logomarca = ''; // path para logomarca em jpg
32 32
     protected $errMsg = ''; // mesagens de erro
33
-    protected $errStatus = false;// status de erro TRUE um erro ocorreu false sem erros
33
+    protected $errStatus = false; // status de erro TRUE um erro ocorreu false sem erros
34 34
     protected $orientacao = 'P'; //orientação da DANFE P-Retrato ou L-Paisagem
35 35
     protected $papel = 'A4'; //formato do papel
36 36
     //destivo do arquivo pdf I-borwser, S-retorna o arquivo, D-força download, F-salva em arquivo local
Please login to merge, or discard this patch.
Braces   +24 added lines, -8 removed lines patch added patch discarded remove patch
@@ -673,10 +673,18 @@  discard block
 block discarded – undo
673 673
         $x2 = $maxW;
674 674
         $y += 13;
675 675
         $this->pTextBox($x1, $y, $x2, 43);
676
-        if ($this->rodo) $texto = 'Modal Rodoviário de Carga';
677
-        if ($this->aereo) $texto = 'Modal Aéreo de Carga';
678
-        if ($this->aquav) $texto = 'Modal Aquaviário de Carga';
679
-        if ($this->ferrov) $texto = 'Modal Ferroviário de Carga';
676
+        if ($this->rodo) {
677
+            $texto = 'Modal Rodoviário de Carga';
678
+        }
679
+        if ($this->aereo) {
680
+            $texto = 'Modal Aéreo de Carga';
681
+        }
682
+        if ($this->aquav) {
683
+            $texto = 'Modal Aquaviário de Carga';
684
+        }
685
+        if ($this->ferrov) {
686
+            $texto = 'Modal Ferroviário de Carga';
687
+        }
680 688
         $aFont = array('font' => $this->fontePadrao, 'size' => 12, 'style' => 'B');
681 689
         $this->pTextBox($x1, $y + 1, $x2 / 2, 8, $texto, $aFont, 'T', 'L', 0, '', false);
682 690
         $texto = 'CONTROLE DO FISCO';
@@ -948,7 +956,9 @@  discard block
 block discarded – undo
948 956
                     $initialA += 2;
949 957
                 }
950 958
             }
951
-            if ($this->aquav->getElementsByTagName('infTermCarreg')->item(0) != null) $this->pTextBox($x1, $initial + 6, ($x2 / 2), $initialA - $y);
959
+            if ($this->aquav->getElementsByTagName('infTermCarreg')->item(0) != null) {
960
+                $this->pTextBox($x1, $initial + 6, ($x2 / 2), $initialA - $y);
961
+            }
952 962
 
953 963
             $texto = 'Descarregamento';
954 964
             $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => 'B');
@@ -968,7 +978,9 @@  discard block
 block discarded – undo
968 978
                     $initialB += 2;
969 979
                 }
970 980
             }
971
-            if ($this->aquav->getElementsByTagName('infTermDescarreg')->item(0) != null) $this->pTextBox(($x1 + ($x2 / 2)), $initial + 6, ($x2 / 2), $initialB - $y);
981
+            if ($this->aquav->getElementsByTagName('infTermDescarreg')->item(0) != null) {
982
+                $this->pTextBox(($x1 + ($x2 / 2)), $initial + 6, ($x2 / 2), $initialB - $y);
983
+            }
972 984
 
973 985
             $altura = $initialA > $initialB ? $initialA : $initialB;
974 986
             $altura += 6;
@@ -1002,7 +1014,9 @@  discard block
 block discarded – undo
1002 1014
                     $initialA += 2;
1003 1015
                 }
1004 1016
             }
1005
-            if ($this->aquav->getElementsByTagName('infUnidCargaVazia')->item(0) != null) $this->pTextBox($x1, $initial + 6, ($x2 / 2), $initialA - $y);
1017
+            if ($this->aquav->getElementsByTagName('infUnidCargaVazia')->item(0) != null) {
1018
+                $this->pTextBox($x1, $initial + 6, ($x2 / 2), $initialA - $y);
1019
+            }
1006 1020
 
1007 1021
             $texto = 'Unidade de Transporte';
1008 1022
             $aFont = array('font' => $this->fontePadrao, 'size' => 8, 'style' => 'B');
@@ -1027,7 +1041,9 @@  discard block
 block discarded – undo
1027 1041
                     $initialB += 2;
1028 1042
                 }
1029 1043
             }
1030
-            if ($this->aquav->getElementsByTagName('infUnidTranspVazia')->item(0) != null) $this->pTextBox(($x1 + ($x2 / 2)), $initial + 6, ($x2 / 2), $initialB - $y);
1044
+            if ($this->aquav->getElementsByTagName('infUnidTranspVazia')->item(0) != null) {
1045
+                $this->pTextBox(($x1 + ($x2 / 2)), $initial + 6, ($x2 / 2), $initialB - $y);
1046
+            }
1031 1047
 
1032 1048
             $altura = $initialA > $initialB ? $initialA : $initialB;
1033 1049
             $altura += 6;
Please login to merge, or discard this patch.