@@ -777,7 +777,6 @@ |
||
| 777 | 777 | |
| 778 | 778 | /** |
| 779 | 779 | * Create tag comb [LA] |
| 780 | - * @param stdClass $std |
|
| 781 | 780 | * @return void |
| 782 | 781 | */ |
| 783 | 782 | protected function buildLAEntity() |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | * @link http://github.com/nfephp-org/sped-nfe for the canonical source repository |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | -use NFePHP\Common\Strings; |
|
| 20 | 19 | use NFePHP\CTe\Make; |
| 21 | 20 | use NFePHP\CTe\Exception\DocumentsException; |
| 22 | 21 | use stdClass; |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | public function __construct($version = '3.10') |
| 108 | 108 | { |
| 109 | 109 | $ver = str_replace('.', '', $version); |
| 110 | - $path = realpath(__DIR__."/../../storage/txtstructure$ver.json"); |
|
| 110 | + $path = realpath(__DIR__ . "/../../storage/txtstructure$ver.json"); |
|
| 111 | 111 | $this->structure = json_decode(file_get_contents($path), true); |
| 112 | 112 | $this->make = new Make(); |
| 113 | 113 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | if (empty($fields)) { |
| 139 | 139 | continue; |
| 140 | 140 | } |
| 141 | - $metodo = strtolower(str_replace(' ', '', $fields[0])).'Entity'; |
|
| 141 | + $metodo = strtolower(str_replace(' ', '', $fields[0])) . 'Entity'; |
|
| 142 | 142 | if (!method_exists(__CLASS__, $metodo)) { |
| 143 | 143 | //campo não definido |
| 144 | 144 | throw DocumentsException::wrongDocument(16, $lin); |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | protected static function fieldsToStd($dfls, $struct) |
| 159 | 159 | { |
| 160 | 160 | $sfls = explode('|', $struct); |
| 161 | - $len = count($sfls)-1; |
|
| 161 | + $len = count($sfls) - 1; |
|
| 162 | 162 | $std = new \stdClass(); |
| 163 | 163 | for ($i = 1; $i < $len; $i++) { |
| 164 | 164 | $name = $sfls[$i]; |
@@ -1231,7 +1231,7 @@ discard block |
||
| 1231 | 1231 | $this->stdPIS->CST = $std->CST; |
| 1232 | 1232 | $this->stdPIS->vPIS = $std->vPIS; |
| 1233 | 1233 | $this->stdPIS->qBCProd = $std->qBCProd; |
| 1234 | - $this->stdPIS->vAliqProd = $std->vAliqProd; |
|
| 1234 | + $this->stdPIS->vAliqProd = $std->vAliqProd; |
|
| 1235 | 1235 | $this->buildQEntity(); |
| 1236 | 1236 | } |
| 1237 | 1237 | |
@@ -1282,7 +1282,7 @@ discard block |
||
| 1282 | 1282 | protected function q10Entity($std) |
| 1283 | 1283 | { |
| 1284 | 1284 | $this->stdPIS->qBCProd = $std->qBCProd; |
| 1285 | - $this->stdPIS->vAliqProd = $std->vAliqProd; |
|
| 1285 | + $this->stdPIS->vAliqProd = $std->vAliqProd; |
|
| 1286 | 1286 | $this->buildQEntity(); |
| 1287 | 1287 | } |
| 1288 | 1288 | |
@@ -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; |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * Request authorization to issue CTe OS with one document only |
| 94 | 94 | * @param type $xml |
| 95 | - * @return type |
|
| 95 | + * @return string |
|
| 96 | 96 | */ |
| 97 | 97 | public function sefazEnviaCTeOS($xml) |
| 98 | 98 | { |
@@ -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 | } |
@@ -374,9 +374,9 @@ 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 | - . "<CNPJ>".$this->config->cnpj."</CNPJ>$tagNSU</distDFeInt>"; |
|
| 379 | + . "<CNPJ>" . $this->config->cnpj . "</CNPJ>$tagNSU</distDFeInt>"; |
|
| 380 | 380 | //valida o xml da requisição |
| 381 | 381 | $this->isValid($this->urlVersion, $consulta, 'distDFeInt'); |
| 382 | 382 | $this->lastRequest = $consulta; |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | $dt = new \DateTime(); |
| 667 | 667 | $dhEvento = $dt->format('Y-m-d\TH:i:sP'); |
| 668 | 668 | $sSeqEvento = str_pad($nSeqEvento, 2, "0", STR_PAD_LEFT); |
| 669 | - $eventId = "ID".$tpEvento.$chave.$sSeqEvento; |
|
| 669 | + $eventId = "ID" . $tpEvento . $chave . $sSeqEvento; |
|
| 670 | 670 | $cOrgao = UFList::getCodeByUF($uf); |
| 671 | 671 | |
| 672 | 672 | $request = "<eventoCTe xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
@@ -731,9 +731,9 @@ discard block |
||
| 731 | 731 | $tagChave = "<consChNFe><chNFe>$chave</chNFe></consChNFe>"; |
| 732 | 732 | //monta a consulta |
| 733 | 733 | $consulta = "<distDFeInt xmlns=\"$this->urlPortal\" versao=\"$this->urlVersion\">" |
| 734 | - . "<tpAmb>".$this->tpAmb."</tpAmb>" |
|
| 734 | + . "<tpAmb>" . $this->tpAmb . "</tpAmb>" |
|
| 735 | 735 | . "<cUFAutor>$cUF</cUFAutor>" |
| 736 | - . "<CNPJ>".$this->config->cnpj."</CNPJ>$tagChave</distDFeInt>"; |
|
| 736 | + . "<CNPJ>" . $this->config->cnpj . "</CNPJ>$tagChave</distDFeInt>"; |
|
| 737 | 737 | //valida o xml da requisição |
| 738 | 738 | $this->isValid($this->urlVersion, $consulta, 'distDFeInt'); |
| 739 | 739 | $this->lastRequest = $consulta; |
@@ -785,8 +785,8 @@ discard block |
||
| 785 | 785 | . "<indOp>$indOp</indOp>" |
| 786 | 786 | . "<raizCNPJ>$raizCNPJ</raizCNPJ>" |
| 787 | 787 | . "<dadosCsc>" |
| 788 | - . "<idCsc>".$this->config->CSCid."</idCsc>" |
|
| 789 | - . "<codigoCsc>".$this->config->CSC."</codigoCsc>" |
|
| 788 | + . "<idCsc>" . $this->config->CSCid . "</idCsc>" |
|
| 789 | + . "<codigoCsc>" . $this->config->CSC . "</codigoCsc>" |
|
| 790 | 790 | . "</dadosCsc>" |
| 791 | 791 | . "</admCscNFCe>"; |
| 792 | 792 | } |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | $dom->loadXML($cte); |
| 818 | 818 | //verifica a validade no webservice da SEFAZ |
| 819 | 819 | $tpAmb = $dom->getElementsByTagName('tpAmb')->item(0)->nodeValue; |
| 820 | - $infCTe = $dom->getElementsByTagName('infCte')->item(0); |
|
| 820 | + $infCTe = $dom->getElementsByTagName('infCte')->item(0); |
|
| 821 | 821 | $chCTe = preg_replace('/[^0-9]/', '', $infCTe->getAttribute("Id")); |
| 822 | 822 | $protocol = $dom->getElementsByTagName('nProt')->item(0)->nodeValue; |
| 823 | 823 | $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 |
@@ -338,7 +338,7 @@ |
||
| 338 | 338 | $signed = $this->addQRCode($dom); |
| 339 | 339 | } |
| 340 | 340 | $this->isValid($this->versao, $signed, $method); |
| 341 | - $modal = (int)$dom->getElementsByTagName('modal')->item(0)->nodeValue; |
|
| 341 | + $modal = (int) $dom->getElementsByTagName('modal')->item(0)->nodeValue; |
|
| 342 | 342 | if ($modelo != 67) { |
| 343 | 343 | switch ($modal) { |
| 344 | 344 | case 1: |
@@ -1193,7 +1193,6 @@ discard block |
||
| 1193 | 1193 | * e adiciona ao grupo ide |
| 1194 | 1194 | * #35 |
| 1195 | 1195 | * Nível: 2 |
| 1196 | - * @param string $toma Tomador do Serviço |
|
| 1197 | 1196 | * @param stdClass $std |
| 1198 | 1197 | * @return \DOMElement |
| 1199 | 1198 | */ |
@@ -2031,6 +2030,7 @@ discard block |
||
| 2031 | 2030 | * Os parâmetros para esta função são todos os elementos da tag "ObsCont" do |
| 2032 | 2031 | * tipo elemento (Ele = E|CE|A) e nível 3 |
| 2033 | 2032 | * |
| 2033 | + * @param stdClass $std |
|
| 2034 | 2034 | * @return boolean |
| 2035 | 2035 | */ |
| 2036 | 2036 | public function tagobsCont($std) |
@@ -2072,6 +2072,7 @@ discard block |
||
| 2072 | 2072 | * Os parâmetros para esta função são todos os elementos da tag "ObsFisco" do tipo |
| 2073 | 2073 | * elemento (Ele = E|CE|A) e nível 3 |
| 2074 | 2074 | * |
| 2075 | + * @param stdClass $std |
|
| 2075 | 2076 | * @return boolean |
| 2076 | 2077 | */ |
| 2077 | 2078 | public function tagobsFisco($std) |
@@ -2113,6 +2114,7 @@ discard block |
||
| 2113 | 2114 | * Os parâmetros para esta função são todos os elementos da tag "emit" do |
| 2114 | 2115 | * tipo elemento (Ele = E|CE|A) e nível 2 |
| 2115 | 2116 | * |
| 2117 | + * @param stdClass $std |
|
| 2116 | 2118 | * @return \DOMElement |
| 2117 | 2119 | */ |
| 2118 | 2120 | public function tagemit($std) |
@@ -2175,6 +2177,7 @@ discard block |
||
| 2175 | 2177 | * Os parâmetros para esta função são todos os elementos da tag "enderEmit" do |
| 2176 | 2178 | * tipo elemento (Ele = E|CE|A) e nível 3 |
| 2177 | 2179 | * |
| 2180 | + * @param stdClass $std |
|
| 2178 | 2181 | * @return \DOMElement |
| 2179 | 2182 | */ |
| 2180 | 2183 | public function tagenderEmit($std) |
@@ -2871,6 +2874,7 @@ discard block |
||
| 2871 | 2874 | * Os parâmetros para esta função são todos os elementos da tag "dest" do |
| 2872 | 2875 | * tipo elemento (Ele = E|CE|A) e nível 2 |
| 2873 | 2876 | * |
| 2877 | + * @param stdClass $std |
|
| 2874 | 2878 | * @return \DOMElement |
| 2875 | 2879 | */ |
| 2876 | 2880 | public function tagdest($std) |
@@ -2973,6 +2977,7 @@ discard block |
||
| 2973 | 2977 | * Os parâmetros para esta função são todos os elementos da tag "enderDest" do |
| 2974 | 2978 | * tipo elemento (Ele = E|CE|A) e nível 3 |
| 2975 | 2979 | * |
| 2980 | + * @param stdClass $std |
|
| 2976 | 2981 | * @return \DOMElement |
| 2977 | 2982 | */ |
| 2978 | 2983 | public function tagenderDest($std) |
@@ -3152,6 +3157,7 @@ discard block |
||
| 3152 | 3157 | * Informações relativas ao ICMS |
| 3153 | 3158 | * #194 |
| 3154 | 3159 | * |
| 3160 | + * @param stdClass $std |
|
| 3155 | 3161 | * @return DOMElement |
| 3156 | 3162 | */ |
| 3157 | 3163 | public function tagicms($std) |
@@ -3787,6 +3793,7 @@ discard block |
||
| 3787 | 3793 | * Gera as tags para o elemento: "infNFe" (Informações das NF-e) |
| 3788 | 3794 | * #297 |
| 3789 | 3795 | * Nível: 3 |
| 3796 | + * @param stdClass $std |
|
| 3790 | 3797 | * @return mixed |
| 3791 | 3798 | */ |
| 3792 | 3799 | public function taginfNFe($std) |
@@ -4156,7 +4163,6 @@ discard block |
||
| 4156 | 4163 | * Gera as tags para o elemento: "infModal" (Informações do modal) |
| 4157 | 4164 | * #366 |
| 4158 | 4165 | * Nível: 2 |
| 4159 | - * @param string $versaoModal |
|
| 4160 | 4166 | * @return DOMElement|\DOMNode |
| 4161 | 4167 | */ |
| 4162 | 4168 | public function taginfModal($std) |
@@ -4494,7 +4500,6 @@ discard block |
||
| 4494 | 4500 | |
| 4495 | 4501 | /** |
| 4496 | 4502 | * CT-e de substituição - tomaICMS |
| 4497 | - * @param type $std |
|
| 4498 | 4503 | * @return type |
| 4499 | 4504 | */ |
| 4500 | 4505 | public function tagtomaICMS() |
@@ -4505,7 +4510,7 @@ discard block |
||
| 4505 | 4510 | |
| 4506 | 4511 | /** |
| 4507 | 4512 | * CT-e de substituição - NF-e |
| 4508 | - * @param type $std |
|
| 4513 | + * @param stdClass $std |
|
| 4509 | 4514 | * @return type |
| 4510 | 4515 | */ |
| 4511 | 4516 | public function tagrefNFe($std) |
@@ -4534,7 +4539,7 @@ discard block |
||
| 4534 | 4539 | |
| 4535 | 4540 | /** |
| 4536 | 4541 | * CT-e de substituição - NF |
| 4537 | - * @param type $std |
|
| 4542 | + * @param stdClass $std |
|
| 4538 | 4543 | * @return type |
| 4539 | 4544 | */ |
| 4540 | 4545 | public function tagrefNF($std) |
@@ -4623,7 +4628,7 @@ discard block |
||
| 4623 | 4628 | |
| 4624 | 4629 | /** |
| 4625 | 4630 | * CT-e de substituição - CT-e |
| 4626 | - * @param type $std |
|
| 4631 | + * @param stdClass $std |
|
| 4627 | 4632 | * @return type |
| 4628 | 4633 | */ |
| 4629 | 4634 | public function tagrefCTe($std) |
@@ -4935,6 +4940,7 @@ discard block |
||
| 4935 | 4940 | * Nível: 1 |
| 4936 | 4941 | * Os parâmetros para esta função são todos os elementos da tag "autXML" |
| 4937 | 4942 | * |
| 4943 | + * @param stdClass $std |
|
| 4938 | 4944 | * @return boolean |
| 4939 | 4945 | */ |
| 4940 | 4946 | public function tagautXML($std) |
@@ -5196,7 +5202,7 @@ discard block |
||
| 5196 | 5202 | * Replace all unsuported chars |
| 5197 | 5203 | * |
| 5198 | 5204 | * @param stdClass $std |
| 5199 | - * @param array $possible |
|
| 5205 | + * @param string[] $possible |
|
| 5200 | 5206 | * @return stdClass |
| 5201 | 5207 | */ |
| 5202 | 5208 | private function equilizeParameters(stdClass $std, $possible) |
@@ -1176,7 +1176,7 @@ discard block |
||
| 1176 | 1176 | |
| 1177 | 1177 | $identificador = '#4 <infPercurso> - '; |
| 1178 | 1178 | $this->infPercurso[] = $this->dom->createElement('infPercurso'); |
| 1179 | - $posicao = (int)count($this->infPercurso) - 1; |
|
| 1179 | + $posicao = (int) count($this->infPercurso) - 1; |
|
| 1180 | 1180 | $this->dom->addChild( |
| 1181 | 1181 | $this->infPercurso[$posicao], |
| 1182 | 1182 | 'UFPer', |
@@ -1791,7 +1791,7 @@ discard block |
||
| 1791 | 1791 | |
| 1792 | 1792 | $identificador = '#65 <pass> - '; |
| 1793 | 1793 | $this->pass[] = $this->dom->createElement('pass'); |
| 1794 | - $posicao = (int)count($this->pass) - 1; |
|
| 1794 | + $posicao = (int) count($this->pass) - 1; |
|
| 1795 | 1795 | $this->dom->addChild( |
| 1796 | 1796 | $this->pass[$posicao], |
| 1797 | 1797 | 'xPass', |
@@ -2046,7 +2046,7 @@ discard block |
||
| 2046 | 2046 | $identificador = '#91 <ObsCont> - '; |
| 2047 | 2047 | if (count($this->obsCont) <= 10) { |
| 2048 | 2048 | $this->obsCont[] = $this->dom->createElement('ObsCont'); |
| 2049 | - $posicao = (int)count($this->obsCont) - 1; |
|
| 2049 | + $posicao = (int) count($this->obsCont) - 1; |
|
| 2050 | 2050 | $this->obsCont[$posicao]->setAttribute('xCampo', $std->xCampo); |
| 2051 | 2051 | $this->dom->addChild( |
| 2052 | 2052 | $this->obsCont[$posicao], |
@@ -2058,9 +2058,9 @@ discard block |
||
| 2058 | 2058 | return true; |
| 2059 | 2059 | } |
| 2060 | 2060 | $this->errors[] = array( |
| 2061 | - 'tag' => (string)'<ObsCont>', |
|
| 2062 | - 'desc' => (string)'Campo de uso livre do contribuinte', |
|
| 2063 | - 'erro' => (string)'Tag deve aparecer de 0 a 10 vezes' |
|
| 2061 | + 'tag' => (string) '<ObsCont>', |
|
| 2062 | + 'desc' => (string) 'Campo de uso livre do contribuinte', |
|
| 2063 | + 'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes' |
|
| 2064 | 2064 | ); |
| 2065 | 2065 | return false; |
| 2066 | 2066 | } |
@@ -2087,7 +2087,7 @@ discard block |
||
| 2087 | 2087 | $identificador = '#94 <ObsFisco> - '; |
| 2088 | 2088 | if (count($this->obsFisco) <= 10) { |
| 2089 | 2089 | $this->obsFisco[] = $this->dom->createElement('ObsFisco'); |
| 2090 | - $posicao = (int)count($this->obsFisco) - 1; |
|
| 2090 | + $posicao = (int) count($this->obsFisco) - 1; |
|
| 2091 | 2091 | $this->obsFisco[$posicao]->setAttribute('xCampo', $std->xCampo); |
| 2092 | 2092 | $this->dom->addChild( |
| 2093 | 2093 | $this->obsFisco[$posicao], |
@@ -2099,9 +2099,9 @@ discard block |
||
| 2099 | 2099 | return true; |
| 2100 | 2100 | } |
| 2101 | 2101 | $this->errors[] = array( |
| 2102 | - 'tag' => (string)'<ObsFisco>', |
|
| 2103 | - 'desc' => (string)'Campo de uso livre do contribuinte', |
|
| 2104 | - 'erro' => (string)'Tag deve aparecer de 0 a 10 vezes' |
|
| 2102 | + 'tag' => (string) '<ObsFisco>', |
|
| 2103 | + 'desc' => (string) 'Campo de uso livre do contribuinte', |
|
| 2104 | + 'erro' => (string) 'Tag deve aparecer de 0 a 10 vezes' |
|
| 2105 | 2105 | ); |
| 2106 | 2106 | return false; |
| 2107 | 2107 | } |
@@ -3129,7 +3129,7 @@ discard block |
||
| 3129 | 3129 | |
| 3130 | 3130 | $identificador = '#65 <pass> - '; |
| 3131 | 3131 | $this->comp[] = $this->dom->createElement('Comp'); |
| 3132 | - $posicao = (int)count($this->comp) - 1; |
|
| 3132 | + $posicao = (int) count($this->comp) - 1; |
|
| 3133 | 3133 | $this->dom->addChild( |
| 3134 | 3134 | $this->comp[$posicao], |
| 3135 | 3135 | 'xNome', |
@@ -3579,7 +3579,7 @@ discard block |
||
| 3579 | 3579 | |
| 3580 | 3580 | $identificador = '#257 <infQ> - '; |
| 3581 | 3581 | $this->infQ[] = $this->dom->createElement('infQ'); |
| 3582 | - $posicao = (int)count($this->infQ) - 1; |
|
| 3582 | + $posicao = (int) count($this->infQ) - 1; |
|
| 3583 | 3583 | $this->dom->addChild( |
| 3584 | 3584 | $this->infQ[$posicao], |
| 3585 | 3585 | 'cUnid', |
@@ -3669,7 +3669,7 @@ discard block |
||
| 3669 | 3669 | |
| 3670 | 3670 | $identificador = '#262 <infNF> - '; |
| 3671 | 3671 | $this->infNF[] = $this->dom->createElement('infNF'); |
| 3672 | - $posicao = (int)count($this->infNF) - 1; |
|
| 3672 | + $posicao = (int) count($this->infNF) - 1; |
|
| 3673 | 3673 | $this->dom->addChild( |
| 3674 | 3674 | $this->infNF[$posicao], |
| 3675 | 3675 | 'nRoma', |
@@ -3802,7 +3802,7 @@ discard block |
||
| 3802 | 3802 | |
| 3803 | 3803 | $identificador = '#297 <infNFe> - '; |
| 3804 | 3804 | $this->infNFe[] = $this->dom->createElement('infNFe'); |
| 3805 | - $posicao = (int)count($this->infNFe) - 1; |
|
| 3805 | + $posicao = (int) count($this->infNFe) - 1; |
|
| 3806 | 3806 | $this->dom->addChild( |
| 3807 | 3807 | $this->infNFe[$posicao], |
| 3808 | 3808 | 'chave', |
@@ -3849,7 +3849,7 @@ discard block |
||
| 3849 | 3849 | |
| 3850 | 3850 | $ident = '#319 <infOutros> - '; |
| 3851 | 3851 | $this->infOutros[] = $this->dom->createElement('infOutros'); |
| 3852 | - $posicao = (int)count($this->infOutros) - 1; |
|
| 3852 | + $posicao = (int) count($this->infOutros) - 1; |
|
| 3853 | 3853 | $this->dom->addChild( |
| 3854 | 3854 | $this->infOutros[$posicao], |
| 3855 | 3855 | 'tpDoc', |
@@ -3916,7 +3916,7 @@ discard block |
||
| 3916 | 3916 | |
| 3917 | 3917 | $ident = '#319 <infDocRef> - '; |
| 3918 | 3918 | $this->infDocRef[] = $this->dom->createElement('infDocRef'); |
| 3919 | - $posicao = (int)count($this->infDocRef) - 1; |
|
| 3919 | + $posicao = (int) count($this->infDocRef) - 1; |
|
| 3920 | 3920 | $this->dom->addChild( |
| 3921 | 3921 | $this->infDocRef[$posicao], |
| 3922 | 3922 | 'nDoc', |
@@ -3976,7 +3976,7 @@ discard block |
||
| 3976 | 3976 | |
| 3977 | 3977 | $identificador = '#345 <emiDocAnt> - '; |
| 3978 | 3978 | $this->emiDocAnt[] = $this->dom->createElement('emiDocAnt'); |
| 3979 | - $posicao = (int)count($this->emiDocAnt) - 1; |
|
| 3979 | + $posicao = (int) count($this->emiDocAnt) - 1; |
|
| 3980 | 3980 | if ($std->CNPJ != '') { |
| 3981 | 3981 | $this->dom->addChild( |
| 3982 | 3982 | $this->emiDocAnt[$posicao], |
@@ -4035,7 +4035,7 @@ discard block |
||
| 4035 | 4035 | |
| 4036 | 4036 | $identificador = '#358 <idDocAntEle> - '; |
| 4037 | 4037 | $this->idDocAntEle[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntEle'); |
| 4038 | - $posicao = (int)count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1; |
|
| 4038 | + $posicao = (int) count($this->idDocAntEle[count($this->emiDocAnt) - 1]) - 1; |
|
| 4039 | 4039 | $this->dom->addChild( |
| 4040 | 4040 | $this->idDocAntEle[count($this->emiDocAnt) - 1][$posicao], |
| 4041 | 4041 | 'chCTe', |
@@ -4066,7 +4066,7 @@ discard block |
||
| 4066 | 4066 | |
| 4067 | 4067 | $identificador = '#360 <seg> - '; |
| 4068 | 4068 | $this->seg[] = $this->dom->createElement('seg'); |
| 4069 | - $posicao = (int)count($this->seg) - 1; |
|
| 4069 | + $posicao = (int) count($this->seg) - 1; |
|
| 4070 | 4070 | $this->dom->addChild( |
| 4071 | 4071 | $this->seg[$posicao], |
| 4072 | 4072 | 'respSeg', |
@@ -4112,7 +4112,7 @@ discard block |
||
| 4112 | 4112 | |
| 4113 | 4113 | $identificador = '#358 <idDocAntPap> - '; |
| 4114 | 4114 | $this->idDocAntPap[count($this->emiDocAnt) - 1][] = $this->dom->createElement('idDocAntPap'); |
| 4115 | - $posicao = (int)count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1; |
|
| 4115 | + $posicao = (int) count($this->idDocAntPap[count($this->emiDocAnt) - 1]) - 1; |
|
| 4116 | 4116 | $this->dom->addChild( |
| 4117 | 4117 | $this->idDocAntPap[count($this->emiDocAnt) - 1][$posicao], |
| 4118 | 4118 | 'tpDoc', |