@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if ($compactar) { |
82 | 82 | $gzdata = base64_encode(gzencode($cons, 9, FORCE_GZIP)); |
83 | 83 | $body = "<cteDadosMsgZip xmlns=\"$this->urlNamespace\">$gzdata</cteDadosMsgZip>"; |
84 | - $method = $this->urlMethod."Zip"; |
|
84 | + $method = $this->urlMethod . "Zip"; |
|
85 | 85 | $parameters = ['cteDadosMsgZip' => $gzdata]; |
86 | 86 | $body = "<cteDadosMsgZip xmlns=\"$this->urlNamespace\">$gzdata</cteDadosMsgZip>"; |
87 | 87 | } |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | } |
380 | 380 | //monta a consulta |
381 | 381 | $consulta = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
382 | - . "<tpAmb>".$this->tpAmb."</tpAmb>" |
|
382 | + . "<tpAmb>" . $this->tpAmb . "</tpAmb>" |
|
383 | 383 | . "<cUFAutor>$cUF</cUFAutor>"; |
384 | 384 | if ($this->typePerson === 'J') { |
385 | 385 | $consulta .= "<CNPJ>$cnpj</CNPJ>"; |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | $dt = new \DateTime(); |
673 | 673 | $dhEvento = $dt->format('Y-m-d\TH:i:sP'); |
674 | 674 | $sSeqEvento = str_pad($nSeqEvento, 2, "0", STR_PAD_LEFT); |
675 | - $eventId = "ID".$tpEvento.$chave.$sSeqEvento; |
|
675 | + $eventId = "ID" . $tpEvento . $chave . $sSeqEvento; |
|
676 | 676 | $cOrgao = UFList::getCodeByUF($uf); |
677 | 677 | $request = "<eventoCTe xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
678 | 678 | . "<infEvento Id=\"$eventId\">" |
@@ -734,7 +734,7 @@ discard block |
||
734 | 734 | $cnpj = $this->config->cnpj; |
735 | 735 | //monta a consulta |
736 | 736 | $consulta = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
737 | - . "<tpAmb>".$this->tpAmb."</tpAmb>" |
|
737 | + . "<tpAmb>" . $this->tpAmb . "</tpAmb>" |
|
738 | 738 | . "<cUFAutor>$cUF</cUFAutor>"; |
739 | 739 | if ($this->typePerson === 'J') { |
740 | 740 | $consulta .= "<CNPJ>$cnpj</CNPJ>"; |
@@ -793,8 +793,8 @@ discard block |
||
793 | 793 | . "<indOp>$indOp</indOp>" |
794 | 794 | . "<raizCNPJ>$raizCNPJ</raizCNPJ>" |
795 | 795 | . "<dadosCsc>" |
796 | - . "<idCsc>".$this->config->CSCid."</idCsc>" |
|
797 | - . "<codigoCsc>".$this->config->CSC."</codigoCsc>" |
|
796 | + . "<idCsc>" . $this->config->CSCid . "</idCsc>" |
|
797 | + . "<codigoCsc>" . $this->config->CSC . "</codigoCsc>" |
|
798 | 798 | . "</dadosCsc>" |
799 | 799 | . "</admCscNFCe>"; |
800 | 800 | } |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | $dom->loadXML($cte); |
826 | 826 | //verifica a validade no webservice da SEFAZ |
827 | 827 | $tpAmb = $dom->getElementsByTagName('tpAmb')->item(0)->nodeValue; |
828 | - $infCTe = $dom->getElementsByTagName('infCte')->item(0); |
|
828 | + $infCTe = $dom->getElementsByTagName('infCte')->item(0); |
|
829 | 829 | $chCTe = preg_replace('/[^0-9]/', '', $infCTe->getAttribute("Id")); |
830 | 830 | $protocol = $dom->getElementsByTagName('nProt')->item(0)->nodeValue; |
831 | 831 | $digval = $dom->getElementsByTagName('DigestValue')->item(0)->nodeValue; |