Passed
Push — master ( 0dfad0...a96e5f )
by Roberto
04:36 queued 19s
created
src/NFe/Traits/TraitBlocoVII.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             $texto = 'CONSUMIDOR NÃO IDENTIFICADO';
30 30
             $yPlus = 1;
31 31
         }
32
-        if(!empty($rua)) {
32
+        if (!empty($rua)) {
33 33
             $texto .= "\n {$rua}, {$numero} {$complemento} {$bairro} {$mun}-{$uf}";
34 34
         }
35 35
         if ($this->getTagValue($this->nfeProc, "xMsg")) {
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
             $subSize = 1.5;
42 42
         }
43 43
         if ($this->tpEmis == 9) {
44
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => ''];
45
-            $y += 2*$yPlus;
44
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => ''];
45
+            $y += 2 * $yPlus;
46 46
             $y1 = $this->pdf->textBox(
47 47
                 $this->margem,
48 48
                 $y,
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                 false
58 58
             );
59 59
         
60
-            $y1 += 2*$yPlus;
60
+            $y1 += 2 * $yPlus;
61 61
             $num = str_pad($this->getTagValue($this->ide, "nNF"), 9, '0', STR_PAD_LEFT);
62 62
             $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT);
63 63
             $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s');
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'B'];
66 66
             $y2 = $this->pdf->textBox(
67 67
                 $this->margem,
68
-                $y+$y1,
68
+                $y + $y1,
69 69
                 $this->wPrint,
70 70
                 4,
71 71
                 $texto,
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $texto = $this->via;
81 81
             $y3 = $this->pdf->textBox(
82 82
                 $this->margem,
83
-                $y+$y1+$y2,
83
+                $y + $y1 + $y2,
84 84
                 $this->wPrint,
85 85
                 4,
86 86
                 $texto,
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             $aFont = ['font'=> $this->fontePadrao, 'size' => 10, 'style' => 'B'];
98 98
             $y4 = $this->pdf->textBox(
99 99
                 $this->margem,
100
-                $y+$y1+$y2+$y3,
100
+                $y + $y1 + $y2 + $y3,
101 101
                 $this->wPrint,
102 102
                 4,
103 103
                 $texto,
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $aFont = ['font'=> $this->fontePadrao, 'size' => 8, 'style' => 'I'];
114 114
             $y5 = $this->pdf->textBox(
115 115
                 $this->margem,
116
-                $y+$y1+$y2+$y3+$y4,
116
+                $y + $y1 + $y2 + $y3 + $y4,
117 117
                 $this->wPrint,
118 118
                 3,
119 119
                 $texto,
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
129 129
             $y1 = $this->pdf->textBox(
130 130
                 $this->margem,
131
-                $y+1,
131
+                $y + 1,
132 132
                 $this->wPrint,
133 133
                 $this->bloco7H,
134 134
                 $texto,
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
             $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT);
145 145
             $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s');
146 146
             $texto = "NFCe n. {$num} Série {$serie} {$data}";
147
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => ''];
147
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => ''];
148 148
             $y2 = $this->pdf->textBox(
149 149
                 $this->margem,
150
-                $y+1+$y1,
150
+                $y + 1 + $y1,
151 151
                 $this->wPrint,
152 152
                 4,
153 153
                 $texto,
@@ -159,10 +159,10 @@  discard block
 block discarded – undo
159 159
                 true
160 160
             );
161 161
             $texto = "DANFE-NFC-e Impresso em contingência - EPEC";
162
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (10-$subSize), 'style' => 'B'];
162
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (10 - $subSize), 'style' => 'B'];
163 163
             $y2 = $this->pdf->textBox(
164 164
                 $this->margem,
165
-                $y+1+$y1+3,
165
+                $y + 1 + $y1 + 3,
166 166
                 $this->wPrint,
167 167
                 4,
168 168
                 $texto,
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
             );
176 176
             
177 177
             $texto = "Regularmente recebido pela administração tributária autorizadora";
178
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => ''];
178
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => ''];
179 179
             $y2 = $this->pdf->textBox(
180 180
                 $this->margem,
181
-                $y+1+$y1+$y2+3,
181
+                $y + 1 + $y1 + $y2 + 3,
182 182
                 $this->wPrint,
183 183
                 4,
184 184
                 $texto,
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
                 $dhCont = $this->dom->getElementsByTagName('dhCont')->item(0)->nodeValue;
194 194
                 $dt = \DateTime::createFromFormat('Y-m-d\TH:i:sP', $dhCont);
195 195
                 $texto = "Data de entrada em contingência : " . $dt->format('d/m/Y H:i:s');
196
-                $aFont = ['font'=> $this->fontePadrao, 'size' => (7-$subSize), 'style' => ''];
196
+                $aFont = ['font'=> $this->fontePadrao, 'size' => (7 - $subSize), 'style' => ''];
197 197
                 $y2 = $this->pdf->textBox(
198 198
                     $this->margem,
199
-                    $y+1+$y1+$y2+6,
199
+                    $y + 1 + $y1 + $y2 + 6,
200 200
                     $this->wPrint,
201 201
                     4,
202 202
                     $texto,
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             $aFont = ['font'=> $this->fontePadrao, 'size' => 7, 'style' => ''];
213 213
             $y1 = $this->pdf->textBox(
214 214
                 $this->margem,
215
-                $y+1,
215
+                $y + 1,
216 216
                 $this->wPrint,
217 217
                 $this->bloco7H,
218 218
                 $texto,
@@ -228,10 +228,10 @@  discard block
 block discarded – undo
228 228
             $serie = str_pad($this->getTagValue($this->ide, "serie"), 3, '0', STR_PAD_LEFT);
229 229
             $data = (new \DateTime($this->getTagValue($this->ide, "dhEmi")))->format('d/m/Y H:i:s');
230 230
             $texto = "NFCe n. {$num} Série {$serie} {$data}";
231
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => 'B'];
231
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => 'B'];
232 232
             $y2 = $this->pdf->textBox(
233 233
                 $this->margem,
234
-                $y+1+$y1,
234
+                $y + 1 + $y1,
235 235
                 $this->wPrint,
236 236
                 4,
237 237
                 $texto,
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
             }
252 252
             
253 253
             $texto = "Protocolo de Autorização:  {$protocolo}";
254
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => ''];
254
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => ''];
255 255
             $y3 = $this->pdf->textBox(
256 256
                 $this->margem,
257
-                $y+1+$y1+$y2,
257
+                $y + 1 + $y1 + $y2,
258 258
                 $this->wPrint,
259 259
                 4,
260 260
                 $texto,
@@ -267,10 +267,10 @@  discard block
 block discarded – undo
267 267
             );
268 268
             
269 269
             $texto = "Data de Autorização:  {$data}";
270
-            $aFont = ['font'=> $this->fontePadrao, 'size' => (8-$subSize), 'style' => ''];
270
+            $aFont = ['font'=> $this->fontePadrao, 'size' => (8 - $subSize), 'style' => ''];
271 271
             $y4 = $this->pdf->textBox(
272 272
                 $this->margem,
273
-                $y+1+$y1+$y2+$y3,
273
+                $y + 1 + $y1 + $y2 + $y3,
274 274
                 $this->wPrint,
275 275
                 4,
276 276
                 $texto,
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                 true
283 283
             );
284 284
         }
285
-        $this->pdf->dashedHLine($this->margem, $this->bloco7H+$y, $this->wPrint, 0.1, 30);
285
+        $this->pdf->dashedHLine($this->margem, $this->bloco7H + $y, $this->wPrint, 0.1, 30);
286 286
         return $this->bloco7H + $y;
287 287
     }
288 288
 }
Please login to merge, or discard this patch.