Completed
Pull Request — master (#454)
by
unknown
04:11
created
src/NFe/DanfeSimples.php 1 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.