Passed
Push — master ( 818a1c...adf275 )
by Roberto
03:33 queued 02:01
created
src/NFe/DanfeSimples.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
         }
277 277
 
278 278
         foreach ($this->nfeArray['NFe']['infNFe']['transp']['vol'] as $vol) {
279
-            if(!isset($vol['esp'])){ // Espécie não especificada na transportadora (por erro de preenchimento do XML)
279
+            if (!isset($vol['esp'])) { // Espécie não especificada na transportadora (por erro de preenchimento do XML)
280 280
                 continue;
281 281
             }
282 282
             if (!isset($volumes[$vol['esp']])) {
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
             $c1,
311 311
             5,
312 312
             "{$this->nfeArray['NFe']['infNFe']['ide']['tpNF']} - " .
313
-                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF']==1 ? 'Saida':'Entrada'),
313
+                                  ($this->nfeArray['NFe']['infNFe']['ide']['tpNF'] == 1 ? 'Saida' : 'Entrada'),
314 314
             1,
315 315
             0,
316 316
             'C',
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
             //que uma impressora de 203dpi consiga imprimir um código legível
362 362
             $this->pdf->code128($this->margesq * 2, $y, $chave, ($this->maxW - $this->margesq * 4), 15);
363 363
         } else {
364
-            $this->pdf->code128(($c1/2), $y, $chave, ($c1 * 3), 15);
364
+            $this->pdf->code128(($c1 / 2), $y, $chave, ($c1 * 3), 15);
365 365
         }
366 366
         $this->pdf->setFillColor(255, 255, 255);
367 367
         $this->pdf->ln();
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
             1
401 401
         );
402 402
 
403
-        $enderecoEmit  = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
403
+        $enderecoEmit = "{$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['xMun']}"
404 404
                        . " / {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['UF']}"
405 405
                        . " - CEP {$this->nfeArray['NFe']['infNFe']['emit']['enderEmit']['CEP']}";
406 406
 
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
         $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10);
471 471
         $this->pdf->cell(($c1 * 4), $pequeno ? 4 : 5, "{$enderecoLinha2}", 1, 1, 'C', 1);
472 472
 
473
-        if($this->nfeArray['NFe']['infNFe']['transp']['modFrete'] != 9){
473
+        if ($this->nfeArray['NFe']['infNFe']['transp']['modFrete'] != 9) {
474 474
             $this->pdf->setFont('Arial', 'B', $pequeno ? 10 : 12);
475 475
             $this->pdf->cell(($c1 * 4), $pequeno ? 5 : 6, "TRANSPORTADORA", 1, 1, 'C', 1);
476 476
             $this->pdf->setFont('Arial', '', $pequeno ? 9 : 10);
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
         $vNF = number_format($this->nfeArray['NFe']['infNFe']['total']['ICMSTot']['vNF'], 2, ',', '.');
519 519
         $this->pdf->cell(($c1 * 2), $pequeno ? 5 : 6, "R$ {$vNF}", 1, 1, 'C', 1);
520 520
 
521
-        if(isset($this->nfeArray['NFe']['infNFe']['infAdic'])){
521
+        if (isset($this->nfeArray['NFe']['infNFe']['infAdic'])) {
522 522
             $this->pdf->setFont('Arial', 'B', $pequeno ? 10 : 12);
523 523
             $this->pdf->cell(($c1 * 4), $pequeno ? 5 : 6, "DADOS ADICIONAIS", 1, 1, 'C', 1);
524 524
             $this->pdf->setFont('Arial', '', $pequeno ? 8 : 10);
Please login to merge, or discard this patch.