Passed
Pull Request — master (#196)
by Eduardo
02:23
created
src/Make.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
      * Pessoas autorizadas para o download do XML da NF-e G50 pai A01
1338 1338
      * tag NFe/infNFe/autXML
1339 1339
      *
1340
-     * @param stdclass $std
1340
+     * @param stdClass $std
1341 1341
      *
1342 1342
      * @return DOMElement
1343 1343
      */
@@ -4168,6 +4168,7 @@  discard block
 block discarded – undo
4168 4168
      * Grupo ISSQN U01 pai M01
4169 4169
      * tag NFe/infNFe/det[]/imposto/ISSQN (opcional)
4170 4170
      * @param  string stdClass $std
4171
+     * @param stdClass $std
4171 4172
      * @return DOMElement
4172 4173
      */
4173 4174
     public function tagISSQN($std)
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * @var array
36 36
      */
37
-    public $aTotICMSUFDest = ['vICMSUFDest' => null, 'vFCPUFDest' => null, 'vICMSUFRemet' => null,];
37
+    public $aTotICMSUFDest = ['vICMSUFDest' => null, 'vFCPUFDest' => null, 'vICMSUFRemet' => null, ];
38 38
     /**
39 39
      * @var string
40 40
      */
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
     {
429 429
         $chave = preg_replace('/[^0-9]/', '', $std->Id);
430 430
         $this->infNFe = $this->dom->createElement("infNFe");
431
-        $this->infNFe->setAttribute("Id", 'NFe'.$chave);
431
+        $this->infNFe->setAttribute("Id", 'NFe' . $chave);
432 432
         $this->infNFe->setAttribute(
433 433
             "versao",
434 434
             $std->versao
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
     {
636 636
         $num = $this->buildNFref();
637 637
         $refNFe = $this->dom->createElement("refNFe", $std->refNFe);
638
-        $this->dom->appChild($this->aNFref[$num-1], $refNFe);
638
+        $this->dom->appChild($this->aNFref[$num - 1], $refNFe);
639 639
         return $refNFe;
640 640
     }
641 641
 
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
             true,
693 693
             $identificador . "Número do Documento Fiscal"
694 694
         );
695
-        $this->dom->appChild($this->aNFref[$num-1], $refNF);
695
+        $this->dom->appChild($this->aNFref[$num - 1], $refNF);
696 696
         return $refNF;
697 697
     }
698 698
     
@@ -763,7 +763,7 @@  discard block
 block discarded – undo
763 763
             true,
764 764
             $identificador . "Número do Documento Fiscal"
765 765
         );
766
-        $this->dom->appChild($this->aNFref[$num-1], $refNFP);
766
+        $this->dom->appChild($this->aNFref[$num - 1], $refNFP);
767 767
         return $refNFP;
768 768
     }
769 769
 
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
     {
778 778
         $num = $this->buildNFref();
779 779
         $refCTe = $this->dom->createElement("refCTe", $std->refCTe);
780
-        $this->dom->appChild($this->aNFref[$num-1], $refCTe);
780
+        $this->dom->appChild($this->aNFref[$num - 1], $refCTe);
781 781
         return $refCTe;
782 782
     }
783 783
 
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
             true,
814 814
             $identificador . "Número do Contador de Ordem de Operação - COO"
815 815
         );
816
-        $this->dom->appChild($this->aNFref[$num-1], $refECF);
816
+        $this->dom->appChild($this->aNFref[$num - 1], $refECF);
817 817
         return $refECF;
818 818
     }
819 819
 
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
     public function tagdest($std)
995 995
     {
996 996
         $identificador = 'E01 <dest> - ';
997
-        $flagNome = true;//marca se xNome é ou não obrigatório
997
+        $flagNome = true; //marca se xNome é ou não obrigatório
998 998
         $temIE = $std->IE != '' && $std->IE != 'ISENTO'; // Tem inscrição municipal
999 999
         $this->dest = $this->dom->createElement("dest");
1000 1000
         if (!$temIE && $std->indIEDest == 1) {
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
         if ($this->mod == '65') {
1004 1004
             $std->indIEDest = 9;
1005 1005
             if ($std->xNome == '') {
1006
-                $flagNome = false;//marca se xNome é ou não obrigatório
1006
+                $flagNome = false; //marca se xNome é ou não obrigatório
1007 1007
             }
1008 1008
         }
1009 1009
         $xNome = $std->xNome;
@@ -3237,10 +3237,10 @@  discard block
 block discarded – undo
3237 3237
     public function tagICMSSN($std)
3238 3238
     {
3239 3239
         //totalizador
3240
-        $this->stdTot->vBC += (float) !empty($std->vBC) ? : 0;
3241
-        $this->stdTot->vICMS += (float) !empty($std->vICMS) ? : 0;
3242
-        $this->stdTot->vBCST += (float) !empty($std->vBCST) ? : 0;
3243
-        $this->stdTot->vST += (float) !empty($std->vICMSST) ? : 0;
3240
+        $this->stdTot->vBC += (float) !empty($std->vBC) ?: 0;
3241
+        $this->stdTot->vICMS += (float) !empty($std->vICMS) ?: 0;
3242
+        $this->stdTot->vBCST += (float) !empty($std->vBCST) ?: 0;
3243
+        $this->stdTot->vST += (float) !empty($std->vICMSST) ?: 0;
3244 3244
         
3245 3245
         switch ($std->CSOSN) {
3246 3246
             case '101':
@@ -3706,7 +3706,7 @@  discard block
 block discarded – undo
3706 3706
             true,
3707 3707
             "[item $std->item] Código de Enquadramento Legal do IPI"
3708 3708
         );
3709
-        if ($std->CST == '00' || $std->CST == '49'|| $std->CST == '50' || $std->CST == '99') {
3709
+        if ($std->CST == '00' || $std->CST == '49' || $std->CST == '50' || $std->CST == '99') {
3710 3710
             $ipiTrib = $this->dom->createElement('IPITrib');
3711 3711
             $this->dom->addChild(
3712 3712
                 $ipiTrib,
@@ -5092,11 +5092,11 @@  discard block
 block discarded – undo
5092 5092
             $this->dom->appChild($detPag, $card, "Inclusão do node Card");
5093 5093
         }
5094 5094
         $n = count($this->aPag);
5095
-        $node = $this->aPag[$n-1]->getElementsByTagName("vTroco")->item(0);
5095
+        $node = $this->aPag[$n - 1]->getElementsByTagName("vTroco")->item(0);
5096 5096
         if (!empty($node)) {
5097
-            $this->aPag[$n-1]->insertBefore($detPag, $node);
5097
+            $this->aPag[$n - 1]->insertBefore($detPag, $node);
5098 5098
         } else {
5099
-            $this->dom->appChild($this->aPag[$n-1], $detPag, 'Falta tag "Pag"');
5099
+            $this->dom->appChild($this->aPag[$n - 1], $detPag, 'Falta tag "Pag"');
5100 5100
         }
5101 5101
         return $detPag;
5102 5102
     }
@@ -5724,7 +5724,7 @@  discard block
 block discarded – undo
5724 5724
             $prod = $this->aProd[$nItem];
5725 5725
             foreach ($aDI as $child) {
5726 5726
                 $node = $prod->getElementsByTagName("xPed")->item(0);
5727
-                if (! empty($node)) {
5727
+                if (!empty($node)) {
5728 5728
                     $prod->insertBefore($child, $node);
5729 5729
                 } else {
5730 5730
                     $this->dom->appChild($prod, $child, "Inclusão do node DI");
@@ -5759,9 +5759,9 @@  discard block
 block discarded – undo
5759 5759
         //insere combustivel
5760 5760
         foreach ($this->aComb as $nItem => $child) {
5761 5761
             $prod = $this->aProd[$nItem];
5762
-            if (! empty($this->aEncerrante)) {
5762
+            if (!empty($this->aEncerrante)) {
5763 5763
                 $encerrante = $this->aEncerrante[$nItem];
5764
-                if (! empty($encerrante)) {
5764
+                if (!empty($encerrante)) {
5765 5765
                     $this->dom->appChild($child, $encerrante, "inclusão do node encerrante na tag comb");
5766 5766
                 }
5767 5767
             }
Please login to merge, or discard this patch.