@@ -19,7 +19,6 @@ |
||
19 | 19 | use NFePHP\Common\Strings; |
20 | 20 | use NFePHP\Common\Signer; |
21 | 21 | use NFePHP\Common\UFList; |
22 | -use NFePHP\CTe\Factories\Events; |
|
23 | 22 | use NFePHP\CTe\Common\Tools as ToolsCommon; |
24 | 23 | use RuntimeException; |
25 | 24 | use InvalidArgumentException; |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | . ((strlen($this->config->cnpj)==14) ? |
380 | 380 | "<CNPJ>".$this->config->cnpj."</CNPJ>" : |
381 | 381 | "<CPF>".$this->config->cnpj."</CPF>" |
382 | - ) |
|
382 | + ) |
|
383 | 383 | . $tagNSU."</distDFeInt>"; |
384 | 384 | //valida o xml da requisição |
385 | 385 | $this->isValid($this->urlVersion, $consulta, 'distDFeInt'); |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | . ((strlen($this->config->cnpj)==14) ? |
726 | 726 | "<CNPJ>".$this->config->cnpj."</CNPJ>" : |
727 | 727 | "<CPF>".$this->config->cnpj."</CPF>" |
728 | - ) |
|
728 | + ) |
|
729 | 729 | ."</distDFeInt>"; |
730 | 730 | //valida o xml da requisição |
731 | 731 | $this->isValid($this->urlVersion, $consulta, 'distDFeInt'); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if ($compactar) { |
82 | 82 | $gzdata = base64_encode(gzencode($request, 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 | } |
@@ -374,13 +374,12 @@ discard block |
||
374 | 374 | } |
375 | 375 | //monta a consulta |
376 | 376 | $consulta = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
377 | - . "<tpAmb>".$this->tpAmb."</tpAmb>" |
|
377 | + . "<tpAmb>" . $this->tpAmb . "</tpAmb>" |
|
378 | 378 | . "<cUFAutor>$cUF</cUFAutor>" |
379 | - . ((strlen($this->config->cnpj)==14) ? |
|
380 | - "<CNPJ>".$this->config->cnpj."</CNPJ>" : |
|
381 | - "<CPF>".$this->config->cnpj."</CPF>" |
|
379 | + . ((strlen($this->config->cnpj) == 14) ? |
|
380 | + "<CNPJ>" . $this->config->cnpj . "</CNPJ>" : "<CPF>" . $this->config->cnpj . "</CPF>" |
|
382 | 381 | ) |
383 | - . $tagNSU."</distDFeInt>"; |
|
382 | + . $tagNSU . "</distDFeInt>"; |
|
384 | 383 | //valida o xml da requisição |
385 | 384 | $this->isValid($this->urlVersion, $consulta, 'distDFeInt'); |
386 | 385 | $this->lastRequest = $consulta; |
@@ -666,7 +665,7 @@ discard block |
||
666 | 665 | $dt = new \DateTime('now', new \DateTimeZone($this->timezone)); |
667 | 666 | $dhEvento = $dt->format('Y-m-d\TH:i:sP'); |
668 | 667 | $sSeqEvento = str_pad($nSeqEvento, 2, "0", STR_PAD_LEFT); |
669 | - $eventId = "ID".$tpEvento.$chave.$sSeqEvento; |
|
668 | + $eventId = "ID" . $tpEvento . $chave . $sSeqEvento; |
|
670 | 669 | $cOrgao = UFList::getCodeByUF($uf); |
671 | 670 | |
672 | 671 | $request = "<eventoCTe xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
@@ -722,9 +721,8 @@ discard block |
||
722 | 721 | ); |
723 | 722 | //monta a consulta |
724 | 723 | $consulta = "<consChNFe><chNFe>$chave</chNFe></consChNFe>" |
725 | - . ((strlen($this->config->cnpj)==14) ? |
|
726 | - "<CNPJ>".$this->config->cnpj."</CNPJ>" : |
|
727 | - "<CPF>".$this->config->cnpj."</CPF>" |
|
724 | + . ((strlen($this->config->cnpj) == 14) ? |
|
725 | + "<CNPJ>" . $this->config->cnpj . "</CNPJ>" : "<CPF>" . $this->config->cnpj . "</CPF>" |
|
728 | 726 | ) |
729 | 727 | ."</distDFeInt>"; |
730 | 728 | //valida o xml da requisição |
@@ -778,8 +776,8 @@ discard block |
||
778 | 776 | . "<indOp>$indOp</indOp>" |
779 | 777 | . "<raizCNPJ>$raizCNPJ</raizCNPJ>" |
780 | 778 | . "<dadosCsc>" |
781 | - . "<idCsc>".$this->config->CSCid."</idCsc>" |
|
782 | - . "<codigoCsc>".$this->config->CSC."</codigoCsc>" |
|
779 | + . "<idCsc>" . $this->config->CSCid . "</idCsc>" |
|
780 | + . "<codigoCsc>" . $this->config->CSC . "</codigoCsc>" |
|
783 | 781 | . "</dadosCsc>" |
784 | 782 | . "</admCscNFCe>"; |
785 | 783 | } |
@@ -810,7 +808,7 @@ discard block |
||
810 | 808 | $dom->loadXML($cte); |
811 | 809 | //verifica a validade no webservice da SEFAZ |
812 | 810 | $tpAmb = $dom->getElementsByTagName('tpAmb')->item(0)->nodeValue; |
813 | - $infCTe = $dom->getElementsByTagName('infCte')->item(0); |
|
811 | + $infCTe = $dom->getElementsByTagName('infCte')->item(0); |
|
814 | 812 | $chCTe = preg_replace('/[^0-9]/', '', $infCTe->getAttribute("Id")); |
815 | 813 | $protocol = $dom->getElementsByTagName('nProt')->item(0)->nodeValue; |
816 | 814 | $digval = $dom->getElementsByTagName('DigestValue')->item(0)->nodeValue; |
@@ -48,9 +48,9 @@ |
||
48 | 48 | */ |
49 | 49 | protected static function validInputData(stdClass $data) |
50 | 50 | { |
51 | - $filejsonschema = __DIR__. "/../../storage/config_json.schema"; |
|
51 | + $filejsonschema = __DIR__ . "/../../storage/config_json.schema"; |
|
52 | 52 | $validator = new JsonValid(); |
53 | - $validator->check($data, (object)['$ref' => 'file://' . $filejsonschema]); |
|
53 | + $validator->check($data, (object) ['$ref' => 'file://' . $filejsonschema]); |
|
54 | 54 | if (!$validator->isValid()) { |
55 | 55 | $msg = ""; |
56 | 56 | foreach ($validator->getErrors() as $error) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | $path = realpath(__DIR__ . "/../../storage"); |
32 | 32 | $json = file_get_contents( |
33 | - $path . '/txtstructure' . ($version*100) . '.json' |
|
33 | + $path . '/txtstructure' . ($version * 100) . '.json' |
|
34 | 34 | ); |
35 | 35 | self::$entities = json_decode($json, true); |
36 | 36 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if ($default != $count) { |
82 | 82 | self::$errors[] = "ERRO: O número de parâmetros na linha " |
83 | 83 | . "está errado (esperado #$default) -> (encontrado #$count). [ $row ] Esperado [ " |
84 | - . self::$entities[$ref]." ]"; |
|
84 | + . self::$entities[$ref] . " ]"; |
|
85 | 85 | } |
86 | 86 | foreach ($fields as $field) { |
87 | 87 | if ($field != trim($field)) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $dtEmi = new DateTime($ide->getElementsByTagName('dhEmi')->item(0)->nodeValue); |
37 | 37 | $ano = $dtEmi->format('y'); |
38 | 38 | $mes = $dtEmi->format('m'); |
39 | - $tpEmis = (string)$contingency->tpEmis; |
|
39 | + $tpEmis = (string) $contingency->tpEmis; |
|
40 | 40 | $emit = $dom->getElementsByTagName('emit')->item(0); |
41 | 41 | $cnpj = $emit->getElementsByTagName('CNPJ')->item(0)->nodeValue; |
42 | 42 |
@@ -114,7 +114,7 @@ |
||
114 | 114 | $type = strtoupper(str_replace('-', '', $type)); |
115 | 115 | |
116 | 116 | if (empty($type)) { |
117 | - $type = (string)$list[$acronym]; |
|
117 | + $type = (string) $list[$acronym]; |
|
118 | 118 | } |
119 | 119 | $this->config = $this->configBuild($dt->getTimestamp(), $motive, $type); |
120 | 120 | return $this->__toString(); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | throw DocumentsException::wrongDocument(3, "<protCTe>"); |
130 | 130 | } |
131 | 131 | $infProt = $ret->getElementsByTagName('infProt')->item(0); |
132 | - $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
132 | + $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
133 | 133 | $xMotivo = $infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue; |
134 | 134 | $dig = $infProt->getElementsByTagName("digVal")->item(0); |
135 | 135 | $digProt = '000'; |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | throw DocumentsException::wrongDocument(3, "<protCTe>"); |
187 | 187 | } |
188 | 188 | $infProt = $ret->getElementsByTagName('infProt')->item(0); |
189 | - $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
189 | + $cStat = $infProt->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
190 | 190 | $xMotivo = $infProt->getElementsByTagName('xMotivo')->item(0)->nodeValue; |
191 | 191 | $dig = $infProt->getElementsByTagName("digVal")->item(0); |
192 | 192 | $digProt = '000'; |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | // $resLote = $ret->getElementsByTagName('idLote')->item(0)->nodeValue; |
240 | 240 | //extrai a rag retEvento da resposta (retorno da SEFAZ) |
241 | 241 | $retEv = $ret->getElementsByTagName('retEventoCTe')->item(0); |
242 | - $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
242 | + $cStat = $retEv->getElementsByTagName('cStat')->item(0)->nodeValue; |
|
243 | 243 | $xMotivo = $retEv->getElementsByTagName('xMotivo')->item(0)->nodeValue; |
244 | 244 | $tpEvento = $retEv->getElementsByTagName('tpEvento')->item(0)->nodeValue; |
245 | 245 | $cStatValids = ['135', '136']; |
@@ -389,8 +389,7 @@ |
||
389 | 389 | } |
390 | 390 | |
391 | 391 | /** |
392 | - * @param string $Dom CTe xml content |
|
393 | - * @param string $xml CTe xml content |
|
392 | + * @param string $modal |
|
394 | 393 | * @return string|bool |
395 | 394 | * @todo |
396 | 395 | * Retorna o xml do modal especifico |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | $signed = $this->addQRCode($dom); |
359 | 359 | } |
360 | 360 | $this->isValid($this->versao, $signed, $method); |
361 | - $modal = (int)$dom->getElementsByTagName('modal')->item(0)->nodeValue; |
|
361 | + $modal = (int) $dom->getElementsByTagName('modal')->item(0)->nodeValue; |
|
362 | 362 | if ($modelo != 67) { |
363 | 363 | switch ($modal) { |
364 | 364 | case 1: |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | protected function sendRequest($request, array $parameters = []) |
599 | 599 | { |
600 | 600 | $this->checkSoap(); |
601 | - return (string)$this->soap->send( |
|
601 | + return (string) $this->soap->send( |
|
602 | 602 | $this->urlService, |
603 | 603 | $this->urlMethod, |
604 | 604 | $this->urlAction, |
@@ -1286,7 +1286,6 @@ discard block |
||
1286 | 1286 | * e adiciona ao grupo ide |
1287 | 1287 | * #35 |
1288 | 1288 | * Nível: 2 |
1289 | - * @param string $toma Tomador do Serviço |
|
1290 | 1289 | * @param stdClass $std |
1291 | 1290 | * @return \DOMElement |
1292 | 1291 | */ |
@@ -4452,7 +4451,6 @@ discard block |
||
4452 | 4451 | * Gera as tags para o elemento: "infModal" (Informações do modal) |
4453 | 4452 | * #366 |
4454 | 4453 | * Nível: 2 |
4455 | - * @param string $versaoModal |
|
4456 | 4454 | * @return DOMElement|\DOMNode |
4457 | 4455 | */ |
4458 | 4456 | public function taginfModal($std) |
@@ -5292,7 +5290,6 @@ discard block |
||
5292 | 5290 | |
5293 | 5291 | /** |
5294 | 5292 | * CT-e de substituição - tomaICMS |
5295 | - * @param type $std |
|
5296 | 5293 | * @return type |
5297 | 5294 | */ |
5298 | 5295 | public function tagtomaICMS() |
@@ -5469,7 +5466,7 @@ discard block |
||
5469 | 5466 | /** |
5470 | 5467 | * Informações do CT-e Globalizado |
5471 | 5468 | * @param type $std |
5472 | - * @return type |
|
5469 | + * @return DOMElement |
|
5473 | 5470 | */ |
5474 | 5471 | public function taginfGlobalizado($std) |
5475 | 5472 | { |
@@ -6049,7 +6046,7 @@ discard block |
||
6049 | 6046 | * Replace all unsuported chars |
6050 | 6047 | * |
6051 | 6048 | * @param stdClass $std |
6052 | - * @param array $possible |
|
6049 | + * @param string[] $possible |
|
6053 | 6050 | * @return stdClass |
6054 | 6051 | */ |
6055 | 6052 | private function equilizeParameters(stdClass $std, $possible) |
@@ -1278,7 +1278,7 @@ discard block |
||
1278 | 1278 | $std = $this->equilizeParameters($std, $possible); |
1279 | 1279 | $identificador = '#4 <infPercurso> - '; |
1280 | 1280 | $this->infPercurso[] = $this->dom->createElement('infPercurso'); |
1281 | - $posicao = (int)count($this->infPercurso) - 1; |
|
1281 | + $posicao = (int) count($this->infPercurso) - 1; |
|
1282 | 1282 | $this->dom->addChild( |
1283 | 1283 | $this->infPercurso[$posicao], |
1284 | 1284 | 'UFPer', |
@@ -1898,7 +1898,7 @@ discard block |
||
1898 | 1898 | $std = $this->equilizeParameters($std, $possible); |
1899 | 1899 | $identificador = '#65 <pass> - '; |
1900 | 1900 | $this->pass[] = $this->dom->createElement('pass'); |
1901 | - $posicao = (int)count($this->pass) - 1; |
|
1901 | + $posicao = (int) count($this->pass) - 1; |
|
1902 | 1902 | $this->dom->addChild( |
1903 | 1903 | $this->pass[$posicao], |
1904 | 1904 | 'xPass', |
@@ -2132,7 +2132,7 @@ discard block |
||
2132 | 2132 | $identificador = '#91 <ObsCont> - '; |
2133 | 2133 | if (count($this->obsCont) <= 10) { |
2134 | 2134 | $this->obsCont[] = $this->dom->createElement('ObsCont'); |
2135 | - $posicao = (int)count($this->obsCont) - 1; |
|
2135 | + $posicao = (int) count($this->obsCont) - 1; |
|
2136 | 2136 | $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo); |
2137 | 2137 | $this->dom->addChild( |
2138 | 2138 | $this->obsCont[$posicao], |
@@ -2144,9 +2144,9 @@ discard block |
||
2144 | 2144 | return true; |
2145 | 2145 | } |
2146 | 2146 | $this->errors[] = array( |
2147 | - 'tag' => (string)'<ObsCont>', |
|
2148 | - 'desc' => (string)'Campo de uso livre do contribuinte', |
|
2149 | - 'erro' => (string)'Tag deve aparecer de 0 a 10 vezes' |
|
2147 | + 'tag' => (string) '<ObsCont>', |
|
2148 | + 'desc' => (string) 'Campo de uso livre do contribuinte', |
|
2149 | + 'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes' |
|
2150 | 2150 | ); |
2151 | 2151 | return false; |
2152 | 2152 | } |
@@ -2170,7 +2170,7 @@ discard block |
||
2170 | 2170 | $identificador = '#94 <ObsFisco> - '; |
2171 | 2171 | if (count($this->obsFisco) <= 10) { |
2172 | 2172 | $this->obsFisco[] = $this->dom->createElement('ObsFisco'); |
2173 | - $posicao = (int)count($this->obsFisco) - 1; |
|
2173 | + $posicao = (int) count($this->obsFisco) - 1; |
|
2174 | 2174 | $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo); |
2175 | 2175 | $this->dom->addChild( |
2176 | 2176 | $this->obsFisco[$posicao], |
@@ -2182,9 +2182,9 @@ discard block |
||
2182 | 2182 | return true; |
2183 | 2183 | } |
2184 | 2184 | $this->errors[] = array( |
2185 | - 'tag' => (string)'<ObsFisco>', |
|
2186 | - 'desc' => (string)'Campo de uso livre do contribuinte', |
|
2187 | - 'erro' => (string)'Tag deve aparecer de 0 a 10 vezes' |
|
2185 | + 'tag' => (string) '<ObsFisco>', |
|
2186 | + 'desc' => (string) 'Campo de uso livre do contribuinte', |
|
2187 | + 'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes' |
|
2188 | 2188 | ); |
2189 | 2189 | return false; |
2190 | 2190 | } |
@@ -3176,7 +3176,7 @@ discard block |
||
3176 | 3176 | $std = $this->equilizeParameters($std, $possible); |
3177 | 3177 | $identificador = '#65 <pass> - '; |
3178 | 3178 | $this->comp[] = $this->dom->createElement('Comp'); |
3179 | - $posicao = (int)count($this->comp) - 1; |
|
3179 | + $posicao = (int) count($this->comp) - 1; |
|
3180 | 3180 | $this->dom->addChild( |
3181 | 3181 | $this->comp[$posicao], |
3182 | 3182 | 'xNome', |
@@ -3765,7 +3765,7 @@ discard block |
||
3765 | 3765 | $std = $this->equilizeParameters($std, $possible); |
3766 | 3766 | $identificador = '#257 <infQ> - '; |
3767 | 3767 | $this->infQ[] = $this->dom->createElement('infQ'); |
3768 | - $posicao = (int)count($this->infQ) - 1; |
|
3768 | + $posicao = (int) count($this->infQ) - 1; |
|
3769 | 3769 | $this->dom->addChild( |
3770 | 3770 | $this->infQ[$posicao], |
3771 | 3771 | 'cUnid', |
@@ -4255,7 +4255,7 @@ discard block |
||
4255 | 4255 | $std = $this->equilizeParameters($std, $possible); |
4256 | 4256 | $ident = '#319 <infDocRef> - '; |
4257 | 4257 | $this->infDocRef[] = $this->dom->createElement('infDocRef'); |
4258 | - $posicao = (int)count($this->infDocRef) - 1; |
|
4258 | + $posicao = (int) count($this->infDocRef) - 1; |
|
4259 | 4259 | $this->dom->addChild( |
4260 | 4260 | $this->infDocRef[$posicao], |
4261 | 4261 | 'nDoc', |
@@ -4312,7 +4312,7 @@ discard block |
||
4312 | 4312 | $std = $this->equilizeParameters($std, $possible); |
4313 | 4313 | $identificador = '#345 <emiDocAnt> - '; |
4314 | 4314 | $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt'); |
4315 | - $posicao = (int)count($this->emiDocAnt) - 1; |
|
4315 | + $posicao = (int) count($this->emiDocAnt) - 1; |
|
4316 | 4316 | if ($std->CNPJ != '') { |
4317 | 4317 | $this->dom->addChild( |
4318 | 4318 | $this->emiDocAnt[$posicao], |
@@ -4368,7 +4368,7 @@ discard block |
||
4368 | 4368 | $std = $this->equilizeParameters($std, $possible); |
4369 | 4369 | $identificador = '#358 <idDocAntEle> - '; |
4370 | 4370 | $this->idDocAntEle[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntEle'); |
4371 | - $posicao = (int)count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1; |
|
4371 | + $posicao = (int) count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1; |
|
4372 | 4372 | $this->dom->addChild( |
4373 | 4373 | $this->idDocAntEle[count($this->emiDocAnt) - 1][$posicao], |
4374 | 4374 | 'chCTe', |
@@ -4396,7 +4396,7 @@ discard block |
||
4396 | 4396 | $std = $this->equilizeParameters($std, $possible); |
4397 | 4397 | $identificador = '#360 <seg> - '; |
4398 | 4398 | $this->seg[] = $this->dom->createElement('seg'); |
4399 | - $posicao = (int)count($this->seg) - 1; |
|
4399 | + $posicao = (int) count($this->seg) - 1; |
|
4400 | 4400 | $this->dom->addChild( |
4401 | 4401 | $this->seg[$posicao], |
4402 | 4402 | 'respSeg', |
@@ -4439,7 +4439,7 @@ discard block |
||
4439 | 4439 | $std = $this->equilizeParameters($std, $possible); |
4440 | 4440 | $identificador = '#358 <idDocAntPap> - '; |
4441 | 4441 | $this->idDocAntPap[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntPap'); |
4442 | - $posicao = (int)count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1; |
|
4442 | + $posicao = (int) count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1; |
|
4443 | 4443 | $this->dom->addChild( |
4444 | 4444 | $this->idDocAntPap[count($this->emiDocAnt) - 1][$posicao], |
4445 | 4445 | 'tpDoc', |
@@ -4705,7 +4705,7 @@ discard block |
||
4705 | 4705 | $std = $this->equilizeParameters($std, $possible); |
4706 | 4706 | $identificador = '#12 <detCont> - '; |
4707 | 4707 | $this->lacre[count($this->detCont) - 1][] = $this->dom->createElement('lacre'); |
4708 | - $posicao = (int)count($this->lacre[count($this->detCont) - 1]) - 1; |
|
4708 | + $posicao = (int) count($this->lacre[count($this->detCont) - 1]) - 1; |
|
4709 | 4709 | $this->dom->addChild( |
4710 | 4710 | $this->lacre[count($this->detCont) - 1][$posicao], |
4711 | 4711 | 'nLacre', |
@@ -4732,7 +4732,7 @@ discard block |
||
4732 | 4732 | $std = $this->equilizeParameters($std, $possible); |
4733 | 4733 | $identificador = '#15 <detCont> <infNF> - '; |
4734 | 4734 | $this->infNFCont[count($this->detCont) - 1][] = $this->dom->createElement('infNF'); |
4735 | - $posicao = (int)count($this->infNFCont[count($this->detCont) - 1]) - 1; |
|
4735 | + $posicao = (int) count($this->infNFCont[count($this->detCont) - 1]) - 1; |
|
4736 | 4736 | $this->dom->addChild( |
4737 | 4737 | $this->infNFCont[count($this->detCont) - 1][$posicao], |
4738 | 4738 | 'serie', |
@@ -4769,7 +4769,7 @@ discard block |
||
4769 | 4769 | $std = $this->equilizeParameters($std, $possible); |
4770 | 4770 | $identificador = '#19 <infNFe> - '; |
4771 | 4771 | $this->infNFeCont[count($this->detCont) - 1][] = $this->dom->createElement('infNFe'); |
4772 | - $posicao = (int)count($this->infNFeCont[count($this->detCont) - 1]) - 1; |
|
4772 | + $posicao = (int) count($this->infNFeCont[count($this->detCont) - 1]) - 1; |
|
4773 | 4773 | $this->dom->addChild( |
4774 | 4774 | $this->infNFeCont[count($this->detCont) - 1][$posicao], |
4775 | 4775 | 'chave', |