Passed
Pull Request — master (#202)
by Eduardo
02:03
created
src/Make.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
     {
425 425
         $chave = preg_replace('/[^0-9]/', '', $std->Id);
426 426
         $this->infNFe = $this->dom->createElement("infNFe");
427
-        $this->infNFe->setAttribute("Id", 'NFe'.$chave);
427
+        $this->infNFe->setAttribute("Id", 'NFe' . $chave);
428 428
         $this->infNFe->setAttribute(
429 429
             "versao",
430 430
             $std->versao
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     {
632 632
         $num = $this->buildNFref();
633 633
         $refNFe = $this->dom->createElement("refNFe", $std->refNFe);
634
-        $this->dom->appChild($this->aNFref[$num-1], $refNFe);
634
+        $this->dom->appChild($this->aNFref[$num - 1], $refNFe);
635 635
         return $refNFe;
636 636
     }
637 637
 
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
             true,
689 689
             $identificador . "Número do Documento Fiscal"
690 690
         );
691
-        $this->dom->appChild($this->aNFref[$num-1], $refNF);
691
+        $this->dom->appChild($this->aNFref[$num - 1], $refNF);
692 692
         return $refNF;
693 693
     }
694 694
 
@@ -759,7 +759,7 @@  discard block
 block discarded – undo
759 759
             true,
760 760
             $identificador . "Número do Documento Fiscal"
761 761
         );
762
-        $this->dom->appChild($this->aNFref[$num-1], $refNFP);
762
+        $this->dom->appChild($this->aNFref[$num - 1], $refNFP);
763 763
         return $refNFP;
764 764
     }
765 765
 
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
     {
774 774
         $num = $this->buildNFref();
775 775
         $refCTe = $this->dom->createElement("refCTe", $std->refCTe);
776
-        $this->dom->appChild($this->aNFref[$num-1], $refCTe);
776
+        $this->dom->appChild($this->aNFref[$num - 1], $refCTe);
777 777
         return $refCTe;
778 778
     }
779 779
 
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
             true,
810 810
             $identificador . "Número do Contador de Ordem de Operação - COO"
811 811
         );
812
-        $this->dom->appChild($this->aNFref[$num-1], $refECF);
812
+        $this->dom->appChild($this->aNFref[$num - 1], $refECF);
813 813
         return $refECF;
814 814
     }
815 815
 
@@ -990,7 +990,7 @@  discard block
 block discarded – undo
990 990
     public function tagdest($std)
991 991
     {
992 992
         $identificador = 'E01 <dest> - ';
993
-        $flagNome = true;//marca se xNome é ou não obrigatório
993
+        $flagNome = true; //marca se xNome é ou não obrigatório
994 994
         $temIE = $std->IE != '' && $std->IE != 'ISENTO'; // Tem inscrição municipal
995 995
         $this->dest = $this->dom->createElement("dest");
996 996
         if (!$temIE && $std->indIEDest == 1) {
@@ -999,7 +999,7 @@  discard block
 block discarded – undo
999 999
         if ($this->mod == '65') {
1000 1000
             $std->indIEDest = 9;
1001 1001
             if ($std->xNome == '') {
1002
-                $flagNome = false;//marca se xNome é ou não obrigatório
1002
+                $flagNome = false; //marca se xNome é ou não obrigatório
1003 1003
             }
1004 1004
         }
1005 1005
         $xNome = $std->xNome;
@@ -3243,10 +3243,10 @@  discard block
 block discarded – undo
3243 3243
     public function tagICMSSN($std)
3244 3244
     {
3245 3245
         //totalizador
3246
-        $this->stdTot->vBC += (float) !empty($std->vBC) ? : 0;
3247
-        $this->stdTot->vICMS += (float) !empty($std->vICMS) ? : 0;
3248
-        $this->stdTot->vBCST += (float) !empty($std->vBCST) ? : 0;
3249
-        $this->stdTot->vST += (float) !empty($std->vICMSST) ? : 0;
3246
+        $this->stdTot->vBC += (float) !empty($std->vBC) ?: 0;
3247
+        $this->stdTot->vICMS += (float) !empty($std->vICMS) ?: 0;
3248
+        $this->stdTot->vBCST += (float) !empty($std->vBCST) ?: 0;
3249
+        $this->stdTot->vST += (float) !empty($std->vICMSST) ?: 0;
3250 3250
 
3251 3251
         switch ($std->CSOSN) {
3252 3252
             case '101':
@@ -3712,7 +3712,7 @@  discard block
 block discarded – undo
3712 3712
             true,
3713 3713
             "[item $std->item] Código de Enquadramento Legal do IPI"
3714 3714
         );
3715
-        if ($std->CST == '00' || $std->CST == '49'|| $std->CST == '50' || $std->CST == '99') {
3715
+        if ($std->CST == '00' || $std->CST == '49' || $std->CST == '50' || $std->CST == '99') {
3716 3716
             $ipiTrib = $this->dom->createElement('IPITrib');
3717 3717
             $this->dom->addChild(
3718 3718
                 $ipiTrib,
@@ -5098,11 +5098,11 @@  discard block
 block discarded – undo
5098 5098
             $this->dom->appChild($detPag, $card, "Inclusão do node Card");
5099 5099
         }
5100 5100
         $n = count($this->aPag);
5101
-        $node = $this->aPag[$n-1]->getElementsByTagName("vTroco")->item(0);
5101
+        $node = $this->aPag[$n - 1]->getElementsByTagName("vTroco")->item(0);
5102 5102
         if (!empty($node)) {
5103
-            $this->aPag[$n-1]->insertBefore($detPag, $node);
5103
+            $this->aPag[$n - 1]->insertBefore($detPag, $node);
5104 5104
         } else {
5105
-            $this->dom->appChild($this->aPag[$n-1], $detPag, 'Falta tag "Pag"');
5105
+            $this->dom->appChild($this->aPag[$n - 1], $detPag, 'Falta tag "Pag"');
5106 5106
         }
5107 5107
         return $detPag;
5108 5108
     }
@@ -5730,7 +5730,7 @@  discard block
 block discarded – undo
5730 5730
             $prod = $this->aProd[$nItem];
5731 5731
             foreach ($aDI as $child) {
5732 5732
                 $node = $prod->getElementsByTagName("xPed")->item(0);
5733
-                if (! empty($node)) {
5733
+                if (!empty($node)) {
5734 5734
                     $prod->insertBefore($child, $node);
5735 5735
                 } else {
5736 5736
                     $this->dom->appChild($prod, $child, "Inclusão do node DI");
@@ -5767,9 +5767,9 @@  discard block
 block discarded – undo
5767 5767
         //insere combustivel
5768 5768
         foreach ($this->aComb as $nItem => $child) {
5769 5769
             $prod = $this->aProd[$nItem];
5770
-            if (! empty($this->aEncerrante)) {
5770
+            if (!empty($this->aEncerrante)) {
5771 5771
                 $encerrante = $this->aEncerrante[$nItem];
5772
-                if (! empty($encerrante)) {
5772
+                if (!empty($encerrante)) {
5773 5773
                     $this->dom->appChild($child, $encerrante, "inclusão do node encerrante na tag comb");
5774 5774
                 }
5775 5775
             }
Please login to merge, or discard this patch.