@@ -1466,7 +1466,7 @@ discard block |
||
| 1466 | 1466 | * Pessoas autorizadas para o download do XML da NF-e G50 pai A01 |
| 1467 | 1467 | * tag NFe/infNFe/autXML |
| 1468 | 1468 | * |
| 1469 | - * @param stdclass $std |
|
| 1469 | + * @param stdClass $std |
|
| 1470 | 1470 | * |
| 1471 | 1471 | * @return DOMElement |
| 1472 | 1472 | */ |
@@ -5000,6 +5000,7 @@ discard block |
||
| 5000 | 5000 | * Grupo ISSQN U01 pai M01 |
| 5001 | 5001 | * tag NFe/infNFe/det[]/imposto/ISSQN (opcional) |
| 5002 | 5002 | * @param string stdClass $std |
| 5003 | + * @param stdClass $std |
|
| 5003 | 5004 | * @return DOMElement |
| 5004 | 5005 | */ |
| 5005 | 5006 | public function tagISSQN($std) |
@@ -6957,7 +6958,6 @@ discard block |
||
| 6957 | 6958 | /** |
| 6958 | 6959 | * Includes missing or unsupported properties in stdClass |
| 6959 | 6960 | * @param stdClass $std |
| 6960 | - * @param array $required |
|
| 6961 | 6961 | * @return stdClass |
| 6962 | 6962 | */ |
| 6963 | 6963 | protected function equilizeParameters(stdClass $std, array $possible) |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | |
| 428 | 428 | $chave = preg_replace('/[^0-9]/', '', $std->Id); |
| 429 | 429 | $this->infNFe = $this->dom->createElement("infNFe"); |
| 430 | - $this->infNFe->setAttribute("Id", 'NFe'.$chave); |
|
| 430 | + $this->infNFe->setAttribute("Id", 'NFe' . $chave); |
|
| 431 | 431 | $this->infNFe->setAttribute( |
| 432 | 432 | "versao", |
| 433 | 433 | $std->versao |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | |
| 664 | 664 | $num = $this->buildNFref(); |
| 665 | 665 | $refNFe = $this->dom->createElement("refNFe", $std->refNFe); |
| 666 | - $this->dom->appChild($this->aNFref[$num-1], $refNFe); |
|
| 666 | + $this->dom->appChild($this->aNFref[$num - 1], $refNFe); |
|
| 667 | 667 | return $refNFe; |
| 668 | 668 | } |
| 669 | 669 | |
@@ -723,7 +723,7 @@ discard block |
||
| 723 | 723 | true, |
| 724 | 724 | $identificador . "Número do Documento Fiscal" |
| 725 | 725 | ); |
| 726 | - $this->dom->appChild($this->aNFref[$num-1], $refNF); |
|
| 726 | + $this->dom->appChild($this->aNFref[$num - 1], $refNF); |
|
| 727 | 727 | return $refNF; |
| 728 | 728 | } |
| 729 | 729 | |
@@ -804,7 +804,7 @@ discard block |
||
| 804 | 804 | true, |
| 805 | 805 | $identificador . "Número do Documento Fiscal" |
| 806 | 806 | ); |
| 807 | - $this->dom->appChild($this->aNFref[$num-1], $refNFP); |
|
| 807 | + $this->dom->appChild($this->aNFref[$num - 1], $refNFP); |
|
| 808 | 808 | return $refNFP; |
| 809 | 809 | } |
| 810 | 810 | |
@@ -821,7 +821,7 @@ discard block |
||
| 821 | 821 | |
| 822 | 822 | $num = $this->buildNFref(); |
| 823 | 823 | $refCTe = $this->dom->createElement("refCTe", $std->refCTe); |
| 824 | - $this->dom->appChild($this->aNFref[$num-1], $refCTe); |
|
| 824 | + $this->dom->appChild($this->aNFref[$num - 1], $refCTe); |
|
| 825 | 825 | return $refCTe; |
| 826 | 826 | } |
| 827 | 827 | |
@@ -860,7 +860,7 @@ discard block |
||
| 860 | 860 | true, |
| 861 | 861 | $identificador . "Número do Contador de Ordem de Operação - COO" |
| 862 | 862 | ); |
| 863 | - $this->dom->appChild($this->aNFref[$num-1], $refECF); |
|
| 863 | + $this->dom->appChild($this->aNFref[$num - 1], $refECF); |
|
| 864 | 864 | return $refECF; |
| 865 | 865 | } |
| 866 | 866 | |
@@ -1082,7 +1082,7 @@ discard block |
||
| 1082 | 1082 | $std = $this->equilizeParameters($std, $possible); |
| 1083 | 1083 | |
| 1084 | 1084 | $identificador = 'E01 <dest> - '; |
| 1085 | - $flagNome = true;//marca se xNome é ou não obrigatório |
|
| 1085 | + $flagNome = true; //marca se xNome é ou não obrigatório |
|
| 1086 | 1086 | $temIE = $std->IE != '' && $std->IE != 'ISENTO'; // Tem inscrição municipal |
| 1087 | 1087 | $this->dest = $this->dom->createElement("dest"); |
| 1088 | 1088 | if (!$temIE && $std->indIEDest == 1) { |
@@ -1091,7 +1091,7 @@ discard block |
||
| 1091 | 1091 | if ($this->mod == '65') { |
| 1092 | 1092 | $std->indIEDest = 9; |
| 1093 | 1093 | if ($std->xNome == '') { |
| 1094 | - $flagNome = false;//marca se xNome é ou não obrigatório |
|
| 1094 | + $flagNome = false; //marca se xNome é ou não obrigatório |
|
| 1095 | 1095 | } |
| 1096 | 1096 | } |
| 1097 | 1097 | $xNome = $std->xNome; |
@@ -1747,7 +1747,7 @@ discard block |
||
| 1747 | 1747 | */ |
| 1748 | 1748 | public function tagNVE($std) |
| 1749 | 1749 | { |
| 1750 | - $possible = ['item','NVE']; |
|
| 1750 | + $possible = ['item', 'NVE']; |
|
| 1751 | 1751 | $std = $this->equilizeParameters($std, $possible); |
| 1752 | 1752 | |
| 1753 | 1753 | if ($std->NVE == '') { |
@@ -2671,7 +2671,7 @@ discard block |
||
| 2671 | 2671 | */ |
| 2672 | 2672 | public function tagimposto($std) |
| 2673 | 2673 | { |
| 2674 | - $possible = ['item','vTotTrib']; |
|
| 2674 | + $possible = ['item', 'vTotTrib']; |
|
| 2675 | 2675 | $std = $this->equilizeParameters($std, $possible); |
| 2676 | 2676 | |
| 2677 | 2677 | //totalizador dos valores dos itens |
@@ -4487,7 +4487,7 @@ discard block |
||
| 4487 | 4487 | true, |
| 4488 | 4488 | "[item $std->item] Código de Enquadramento Legal do IPI" |
| 4489 | 4489 | ); |
| 4490 | - if ($std->CST == '00' || $std->CST == '49'|| $std->CST == '50' || $std->CST == '99') { |
|
| 4490 | + if ($std->CST == '00' || $std->CST == '49' || $std->CST == '50' || $std->CST == '99') { |
|
| 4491 | 4491 | $ipiTrib = $this->dom->createElement('IPITrib'); |
| 4492 | 4492 | $this->dom->addChild( |
| 4493 | 4493 | $ipiTrib, |
@@ -6052,11 +6052,11 @@ discard block |
||
| 6052 | 6052 | $this->dom->appChild($detPag, $card, "Inclusão do node Card"); |
| 6053 | 6053 | } |
| 6054 | 6054 | $n = count($this->aPag); |
| 6055 | - $node = $this->aPag[$n-1]->getElementsByTagName("vTroco")->item(0); |
|
| 6055 | + $node = $this->aPag[$n - 1]->getElementsByTagName("vTroco")->item(0); |
|
| 6056 | 6056 | if (!empty($node)) { |
| 6057 | - $this->aPag[$n-1]->insertBefore($detPag, $node); |
|
| 6057 | + $this->aPag[$n - 1]->insertBefore($detPag, $node); |
|
| 6058 | 6058 | } else { |
| 6059 | - $this->dom->appChild($this->aPag[$n-1], $detPag, 'Falta tag "Pag"'); |
|
| 6059 | + $this->dom->appChild($this->aPag[$n - 1], $detPag, 'Falta tag "Pag"'); |
|
| 6060 | 6060 | } |
| 6061 | 6061 | return $detPag; |
| 6062 | 6062 | } |
@@ -6735,7 +6735,7 @@ discard block |
||
| 6735 | 6735 | $prod = $this->aProd[$nItem]; |
| 6736 | 6736 | foreach ($aDI as $child) { |
| 6737 | 6737 | $node = $prod->getElementsByTagName("xPed")->item(0); |
| 6738 | - if (! empty($node)) { |
|
| 6738 | + if (!empty($node)) { |
|
| 6739 | 6739 | $prod->insertBefore($child, $node); |
| 6740 | 6740 | } else { |
| 6741 | 6741 | $this->dom->appChild($prod, $child, "Inclusão do node DI"); |
@@ -6772,9 +6772,9 @@ discard block |
||
| 6772 | 6772 | //insere combustivel |
| 6773 | 6773 | foreach ($this->aComb as $nItem => $child) { |
| 6774 | 6774 | $prod = $this->aProd[$nItem]; |
| 6775 | - if (! empty($this->aEncerrante)) { |
|
| 6775 | + if (!empty($this->aEncerrante)) { |
|
| 6776 | 6776 | $encerrante = $this->aEncerrante[$nItem]; |
| 6777 | - if (! empty($encerrante)) { |
|
| 6777 | + if (!empty($encerrante)) { |
|
| 6778 | 6778 | $this->dom->appChild($child, $encerrante, "inclusão do node encerrante na tag comb"); |
| 6779 | 6779 | } |
| 6780 | 6780 | } |