Completed
Pull Request — master (#454)
by
unknown
04:11
created
src/NFe/DanfeSimples.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
             $c1,
306 306
             5,
307 307
             "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " .
308
-                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
308
+                                    ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
309 309
             1,
310 310
             0,
311 311
             'C',
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
         );
397 397
 
398 398
         $enderecoEmit  = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
399
-                       . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
400
-                       . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
399
+                        . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
400
+                        . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
401 401
 
402 402
         // LINHA 9
403 403
         $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10);
@@ -443,8 +443,8 @@  discard block
 block discarded – undo
443 443
                 $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['entrega']['xCpl']} - ";
444 444
             }
445 445
             $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['entrega']['xMun']}"
446
-                             . " / {$this->nfeArray['NFe']['infNFe']['entrega']['UF']}"
447
-                             . " - CEP {$this->nfeArray['NFe']['infNFe']['entrega']['CEP']}";
446
+                                . " / {$this->nfeArray['NFe']['infNFe']['entrega']['UF']}"
447
+                                . " - CEP {$this->nfeArray['NFe']['infNFe']['entrega']['CEP']}";
448 448
         } else {
449 449
             $enderecoLinha1 = "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xLgr']}";
450 450
             if (!empty($this->nfeArray['NFe']['infNFe']['dest']['enderDest']['nro'])) {
@@ -455,8 +455,8 @@  discard block
 block discarded – undo
455 455
                 $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xCpl']} - ";
456 456
             }
457 457
             $enderecoLinha2 .= "{$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['xMun']}"
458
-                             . " / {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['UF']}"
459
-                             . " - CEP {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['CEP']}";
458
+                                . " / {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['UF']}"
459
+                                . " - CEP {$this->nfeArray['NFe']['infNFe']['dest']['enderDest']['CEP']}";
460 460
         }
461 461
 
462 462
         $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
         $totalVolumes = 0;
270 270
         
271 271
         // Normalizar o array de volumes quando tem apenas 1 volumes
272
-        if (!isset($this->nfeArray['NFe']['infNFe']['transp']['vol'][0])){
272
+        if (!isset($this->nfeArray['NFe']['infNFe']['transp']['vol'][0])) {
273 273
             $this->nfeArray['NFe']['infNFe']['transp']['vol'] = [
274 274
                 $this->nfeArray['NFe']['infNFe']['transp']['vol']
275 275
             ];
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
             $c1,
306 306
             5,
307 307
             "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " .
308
-                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
308
+                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF'] == 1 ? 'Saida' : 'Entrada'),
309 309
             1,
310 310
             0,
311 311
             'C',
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
             //que uma impressora de 203dpi consiga imprimir um código legível
357 357
             $this->pdf->code128($this->margesq * 2, $y, $chave, ($this->maxW - $this->margesq * 4), 15);
358 358
         } else {
359
-            $this->pdf->code128(($c1/2), $y, $chave, ($c1 * 3), 15);
359
+            $this->pdf->code128(($c1 / 2), $y, $chave, ($c1 * 3), 15);
360 360
         }
361 361
         $this->pdf->setFillColor(255, 255, 255);
362 362
         $this->pdf->ln();
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
             1
396 396
         );
397 397
 
398
-        $enderecoEmit  = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
398
+        $enderecoEmit = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
399 399
                        . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
400 400
                        . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
401 401
 
@@ -478,8 +478,8 @@  discard block
 block discarded – undo
478 478
             1
479 479
         );
480 480
         
481
-        if ($totalVolumes > 0){
482
-            foreach ($volumes as $esp => $qVol){
481
+        if ($totalVolumes > 0) {
482
+            foreach ($volumes as $esp => $qVol) {
483 483
                 $this->pdf->cell(
484 484
                     ($c1 * 4),
485 485
                     $pequeno ? 5 : 6,
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -276,7 +276,9 @@
 block discarded – undo
276 276
         }
277 277
         
278 278
         foreach ($this->nfeArray['NFe']['infNFe']['transp']['vol'] as $vol) {
279
-            if (!isset($volumes[$vol['esp']])) $volumes[$vol['esp']] = 0;
279
+            if (!isset($volumes[$vol['esp']])) {
280
+                $volumes[$vol['esp']] = 0;
281
+            }
280 282
             $volumes[$vol['esp']] += $vol['qVol'];
281 283
             $totalVolumes += $vol['qVol'];
282 284
             $pesoB += $vol['pesoB'];
Please login to merge, or discard this patch.