Passed
Push — master ( 027f65...a01f3f )
by Roberto
02:57 queued 12s
created
src/NFe/Traits/TraitBlocoVI.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -7,6 +7,9 @@
 block discarded – undo
7 7
  */
8 8
 trait TraitBlocoVI
9 9
 {
10
+    /**
11
+     * @param double $y
12
+     */
10 13
     protected function blocoVI($y)
11 14
     {
12 15
         //$this->bloco6H = 10;
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoVIII.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
  */
9 9
 trait TraitBlocoVIII
10 10
 {
11
+    /**
12
+     * @param integer $y
13
+     */
11 14
     protected function blocoVIII($y)
12 15
     {
13 16
         //$this->bloco8H = 50;
Please login to merge, or discard this patch.
src/NFe/Danfce.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     protected $paperwidth = 80;
28 28
     protected $descPercent = 0.38;
29 29
     protected $xml; // string XML NFe
30
-    protected $logomarca=''; // path para logomarca em jpg
31
-    protected $formatoChave="#### #### #### #### #### #### #### #### #### #### ####";
30
+    protected $logomarca = ''; // path para logomarca em jpg
31
+    protected $formatoChave = "#### #### #### #### #### #### #### #### #### #### ####";
32 32
     protected $nfeProc;
33 33
     protected $nfe;
34 34
     protected $infNFe;
@@ -191,10 +191,10 @@  discard block
 block discarded – undo
191 191
         //total inicial de paginas
192 192
         $totPag = 1;
193 193
         //largura imprimivel em mm: largura da folha menos as margens esq/direita
194
-        $this->wPrint = $maxW-($margEsq*2);
194
+        $this->wPrint = $maxW - ($margEsq * 2);
195 195
         //comprimento (altura) imprimivel em mm: altura da folha menos as margens
196 196
         //superior e inferior
197
-        $this->hPrint = $maxH-$margSup-$margInf;
197
+        $this->hPrint = $maxH - $margSup - $margInf;
198 198
         // estabelece contagem de paginas
199 199
         $this->pdf->aliasNbPages();
200 200
         $this->pdf->setMargins($margEsq, $margSup); // fixa as margens
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         $y = $this->blocoIX($y); //informações sobre tributos
219 219
         $y = $this->blocoX($y); //creditos
220 220
         
221
-        $ymark = $maxH/4;
221
+        $ymark = $maxH / 4;
222 222
         if ($this->tpAmb == 2) {
223 223
             $this->pdf->setTextColor(120, 120, 120);
224 224
             $texto = "SEM VALOR FISCAL\nEmitida em ambiente de homologacao";
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                 $this->margem,
228 228
                 $ymark,
229 229
                 $this->wPrint,
230
-                $maxH/2,
230
+                $maxH / 2,
231 231
                 $texto,
232 232
                 $aFont,
233 233
                 'T',
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
             $aFont = ['font' => $this->fontePadrao, 'size' => 24, 'style' => 'B'];
245 245
             $this->pdf->textBox(
246 246
                 $this->margem,
247
-                $ymark+4,
247
+                $ymark + 4,
248 248
                 $this->wPrint,
249
-                $maxH/2,
249
+                $maxH / 2,
250 250
                 $texto,
251 251
                 $aFont,
252 252
                 'T',
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoVII.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
             $subSize = 1.5;
44 44
         }
45 45
         if ($this->tpEmis == 9) {
46
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => ''];
47
-            $y += 2*$yPlus;
46
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => ''];
47
+            $y += 2 * $yPlus;
48 48
             $y1 = $this->pdf->textBox(
49 49
                 $this->margem,
50 50
                 $y,
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 false
60 60
             );
61 61
         
62
-            $y1 += 2*$yPlus;
62
+            $y1 += 2 * $yPlus;
63 63
             $num = str_pad($this->getTagValue($this->ide, "nNF"), 9, '0', STR_PAD_LEFT);
64 64
             $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT);
65 65
             $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s');
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'B'];
68 68
             $y2 = $this->pdf->textBox(
69 69
                 $this->margem,
70
-                $y+$y1,
70
+                $y + $y1,
71 71
                 $this->wPrint,
72 72
                 4,
73 73
                 $texto,
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $texto = $this->via;
83 83
             $y3 = $this->pdf->textBox(
84 84
                 $this->margem,
85
-                $y+$y1+$y2,
85
+                $y + $y1 + $y2,
86 86
                 $this->wPrint,
87 87
                 4,
88 88
                 $texto,
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B'];
100 100
             $y4 = $this->pdf->textBox(
101 101
                 $this->margem,
102
-                $y+$y1+$y2+$y3,
102
+                $y + $y1 + $y2 + $y3,
103 103
                 $this->wPrint,
104 104
                 4,
105 105
                 $texto,
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I'];
116 116
             $y5 = $this->pdf->textBox(
117 117
                 $this->margem,
118
-                $y+$y1+$y2+$y3+$y4,
118
+                $y + $y1 + $y2 + $y3 + $y4,
119 119
                 $this->wPrint,
120 120
                 3,
121 121
                 $texto,
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
131 131
             $y1 = $this->pdf->textBox(
132 132
                 $this->margem,
133
-                $y+1,
133
+                $y + 1,
134 134
                 $this->wPrint,
135 135
                 $this->bloco7H,
136 136
                 $texto,
@@ -146,10 +146,10 @@  discard block
 block discarded – undo
146 146
             $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT);
147 147
             $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s');
148 148
             $texto = "NFCe n. {$num} Série {$serie} {$data}";
149
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => 'B'];
149
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => 'B'];
150 150
             $y2 = $this->pdf->textBox(
151 151
                 $this->margem,
152
-                $y+1+$y1,
152
+                $y + 1 + $y1,
153 153
                 $this->wPrint,
154 154
                 4,
155 155
                 $texto,
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
             }
170 170
             
171 171
             $texto = "Protocolo de Autorização:  {$protocolo}";
172
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => ''];
172
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => ''];
173 173
             $y3 = $this->pdf->textBox(
174 174
                 $this->margem,
175
-                $y+1+$y1+$y2,
175
+                $y + 1 + $y1 + $y2,
176 176
                 $this->wPrint,
177 177
                 4,
178 178
                 $texto,
@@ -185,10 +185,10 @@  discard block
 block discarded – undo
185 185
             );
186 186
             
187 187
             $texto = "Data de Autorização:  {$data}";
188
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => ''];
188
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => ''];
189 189
             $y4 = $this->pdf->textBox(
190 190
                 $this->margem,
191
-                $y+1+$y1+$y2+$y3,
191
+                $y + 1 + $y1 + $y2 + $y3,
192 192
                 $this->wPrint,
193 193
                 4,
194 194
                 $texto,
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 true
201 201
             );
202 202
         }
203
-        $this->pdf->dashedHLine($this->margem, $this->bloco7H+$y, $this->wPrint, 0.1, 30);
203
+        $this->pdf->dashedHLine($this->margem, $this->bloco7H + $y, $this->wPrint, 0.1, 30);
204 204
         return $this->bloco7H + $y;
205 205
     }
206 206
 }
Please login to merge, or discard this patch.
src/NFe/Traits/TraitBlocoIII.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 $y2 += $it->height;
132 132
             }
133 133
         }
134
-        $this->pdf->dashedHLine($this->margem, $this->bloco3H+$y, $this->wPrint, 0.1, 30);
134
+        $this->pdf->dashedHLine($this->margem, $this->bloco3H + $y, $this->wPrint, 0.1, 30);
135 135
         return $this->bloco3H + $y;
136 136
     }
137 137
     
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         if ($this->paperwidth < 70) {
145 145
             $fsize = 5;
146 146
         }
147
-        $hfont = (imagefontheight($fsize)/72)*15;
147
+        $hfont = (imagefontheight($fsize) / 72) * 15;
148 148
         $aFont = ['font'=> $this->fontePadrao, 'size' => $fsize, 'style' => ''];
149 149
         $htot = 0;
150 150
         if ($this->det->length == 0) {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                     $p = $xProd;
170 170
                     $n = $tempPDF->wordWrap($p, $descriptionWidth);
171 171
                 }
172
-                $h = ($hfont * $n)+0.5;
172
+                $h = ($hfont * $n) + 0.5;
173 173
                 $this->itens[] = [
174 174
                     "codigo" => $cProd,
175 175
                     "desc" => $xProd,
@@ -182,6 +182,6 @@  discard block
 block discarded – undo
182 182
                 $htot += $h;
183 183
             }
184 184
         }
185
-        return $htot+2;
185
+        return $htot + 2;
186 186
     }
187 187
 }
Please login to merge, or discard this patch.