@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use NFePHP\Common\Certificate; |
19 | 19 | use NFePHP\eSocial\Common\Factory; |
20 | -use NFePHP\eSocial\Common\FactoryId; |
|
21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
22 | 21 | use stdClass; |
23 | 22 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use NFePHP\Common\Certificate; |
19 | 19 | use NFePHP\eSocial\Common\Factory; |
20 | -use NFePHP\eSocial\Common\FactoryId; |
|
21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
22 | 21 | use stdClass; |
23 | 22 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use NFePHP\Common\Certificate; |
19 | 19 | use NFePHP\eSocial\Common\Factory; |
20 | -use NFePHP\eSocial\Common\FactoryId; |
|
21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
22 | 21 | use stdClass; |
23 | 22 |
@@ -537,8 +537,8 @@ |
||
537 | 537 | true |
538 | 538 | ); |
539 | 539 | foreach ($pgant->infopgtoant as $ipa) { |
540 | - //echo "<pre>"; |
|
541 | - //print_r($ipa); |
|
540 | + //echo "<pre>"; |
|
541 | + //print_r($ipa); |
|
542 | 542 | //echo "</pre>"; |
543 | 543 | //die; |
544 | 544 | $infoPgtoAnt = $this->dom->createElement("infoPgtoAnt"); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $this->dom->addChild( |
79 | 79 | $ideEvento, |
80 | 80 | "nrRecibo", |
81 | - ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
81 | + !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
82 | 82 | false |
83 | 83 | ); |
84 | 84 | $this->dom->addChild( |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | ); |
189 | 189 | if (!empty($pgtofl->retpgtotot)) { |
190 | 190 | foreach ($pgtofl->retpgtotot as $pg) { |
191 | - $retPgtoTot = $this->dom->createElement("retPgtoTot"); |
|
191 | + $retPgtoTot = $this->dom->createElement("retPgtoTot"); |
|
192 | 192 | $this->dom->addChild( |
193 | 193 | $retPgtoTot, |
194 | 194 | "codRubr", |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->dom->addChild( |
70 | 70 | $ideEvento, |
71 | 71 | "nrRecibo", |
72 | - ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
72 | + !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
73 | 73 | false |
74 | 74 | ); |
75 | 75 | $this->dom->addChild( |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $this->dom->addChild( |
127 | 127 | $trabalhador, |
128 | 128 | "estCiv", |
129 | - ! empty($this->std->trabalhador->estciv) ? $this->std->trabalhador->estciv : null, |
|
129 | + !empty($this->std->trabalhador->estciv) ? $this->std->trabalhador->estciv : null, |
|
130 | 130 | false |
131 | 131 | ); |
132 | 132 | $this->dom->addChild( |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $this->dom->addChild( |
145 | 145 | $trabalhador, |
146 | 146 | "nmSoc", |
147 | - ! empty($this->std->trabalhador->nmsoc) ? $this->std->trabalhador->nmsoc : null, |
|
147 | + !empty($this->std->trabalhador->nmsoc) ? $this->std->trabalhador->nmsoc : null, |
|
148 | 148 | false |
149 | 149 | ); |
150 | 150 | //nascimento (obrigatorio) |
@@ -158,13 +158,13 @@ discard block |
||
158 | 158 | $this->dom->addChild( |
159 | 159 | $nascimento, |
160 | 160 | "codMunic", |
161 | - ! empty($this->std->trabalhador->codmunic) ? $this->std->trabalhador->codmunic : null, |
|
161 | + !empty($this->std->trabalhador->codmunic) ? $this->std->trabalhador->codmunic : null, |
|
162 | 162 | false |
163 | 163 | ); |
164 | 164 | $this->dom->addChild( |
165 | 165 | $nascimento, |
166 | 166 | "uf", |
167 | - ! empty($this->std->trabalhador->uf) ? $this->std->trabalhador->uf : null, |
|
167 | + !empty($this->std->trabalhador->uf) ? $this->std->trabalhador->uf : null, |
|
168 | 168 | false |
169 | 169 | ); |
170 | 170 | $this->dom->addChild( |
@@ -182,13 +182,13 @@ discard block |
||
182 | 182 | $this->dom->addChild( |
183 | 183 | $nascimento, |
184 | 184 | "nmMae", |
185 | - ! empty($this->std->trabalhador->nmmae) ? $this->std->trabalhador->nmmae : null, |
|
185 | + !empty($this->std->trabalhador->nmmae) ? $this->std->trabalhador->nmmae : null, |
|
186 | 186 | false |
187 | 187 | ); |
188 | 188 | $this->dom->addChild( |
189 | 189 | $nascimento, |
190 | 190 | "nmPai", |
191 | - ! empty($this->std->trabalhador->nmpai) ? $this->std->trabalhador->nmpai : null, |
|
191 | + !empty($this->std->trabalhador->nmpai) ? $this->std->trabalhador->nmpai : null, |
|
192 | 192 | false |
193 | 193 | ); |
194 | 194 | $trabalhador->appendChild($nascimento); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $this->dom->addChild( |
236 | 236 | $ric, |
237 | 237 | "dtExped", |
238 | - ! empty($this->std->ric->dtexped) ? $this->std->ric->dtexped : null, |
|
238 | + !empty($this->std->ric->dtexped) ? $this->std->ric->dtexped : null, |
|
239 | 239 | false |
240 | 240 | ); |
241 | 241 | $documentos->appendChild($ric); |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | $this->dom->addChild( |
259 | 259 | $rg, |
260 | 260 | "dtExped", |
261 | - ! empty($this->std->rg->dtexped) ? $this->std->rg->dtexped : null, |
|
261 | + !empty($this->std->rg->dtexped) ? $this->std->rg->dtexped : null, |
|
262 | 262 | false |
263 | 263 | ); |
264 | 264 | $documentos->appendChild($rg); |
@@ -281,13 +281,13 @@ discard block |
||
281 | 281 | $this->dom->addChild( |
282 | 282 | $rne, |
283 | 283 | "dtExped", |
284 | - ! empty($this->std->rne->dtexped) ? $this->std->rne->dtexped : null, |
|
284 | + !empty($this->std->rne->dtexped) ? $this->std->rne->dtexped : null, |
|
285 | 285 | false |
286 | 286 | ); |
287 | 287 | $this->dom->addChild( |
288 | 288 | $rne, |
289 | 289 | "dtValid", |
290 | - ! empty($this->std->rne->dtvalid) ? $this->std->rne->dtvalid : null, |
|
290 | + !empty($this->std->rne->dtvalid) ? $this->std->rne->dtvalid : null, |
|
291 | 291 | false |
292 | 292 | ); |
293 | 293 | $documentos->appendChild($rne); |
@@ -310,14 +310,14 @@ discard block |
||
310 | 310 | $this->dom->addChild( |
311 | 311 | $oc, |
312 | 312 | "dtExped", |
313 | - ! empty($this->std->oc->dtexped) ? $this->std->oc->dtexped : null, |
|
313 | + !empty($this->std->oc->dtexped) ? $this->std->oc->dtexped : null, |
|
314 | 314 | false |
315 | 315 | ); |
316 | 316 | |
317 | 317 | $this->dom->addChild( |
318 | 318 | $oc, |
319 | 319 | "dtValid", |
320 | - ! empty($this->std->oc->dtvalid) ? $this->std->oc->dtvalid : null, |
|
320 | + !empty($this->std->oc->dtvalid) ? $this->std->oc->dtvalid : null, |
|
321 | 321 | false |
322 | 322 | ); |
323 | 323 | |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | $this->dom->addChild( |
336 | 336 | $cnh, |
337 | 337 | "dtExped", |
338 | - ! empty($this->std->cnh->dtExped) ? $this->std->cnh->dtExped : null, |
|
338 | + !empty($this->std->cnh->dtExped) ? $this->std->cnh->dtExped : null, |
|
339 | 339 | false |
340 | 340 | ); |
341 | 341 | $this->dom->addChild( |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | $this->dom->addChild( |
354 | 354 | $cnh, |
355 | 355 | "dtPriHab", |
356 | - ! empty($this->std->cnh->dtprihab) ? $this->std->cnh->dtprihab : null, |
|
356 | + !empty($this->std->cnh->dtprihab) ? $this->std->cnh->dtprihab : null, |
|
357 | 357 | false |
358 | 358 | ); |
359 | 359 | $this->dom->addChild( |
@@ -390,13 +390,13 @@ discard block |
||
390 | 390 | $this->dom->addChild( |
391 | 391 | $brasil, |
392 | 392 | "complemento", |
393 | - ! empty($this->std->endereco->brasil->complemento) ? $this->std->endereco->brasil->complemento : null, |
|
393 | + !empty($this->std->endereco->brasil->complemento) ? $this->std->endereco->brasil->complemento : null, |
|
394 | 394 | false |
395 | 395 | ); |
396 | 396 | $this->dom->addChild( |
397 | 397 | $brasil, |
398 | 398 | "bairro", |
399 | - ! empty($this->std->endereco->brasil->bairro) ? $this->std->endereco->brasil->bairro : null, |
|
399 | + !empty($this->std->endereco->brasil->bairro) ? $this->std->endereco->brasil->bairro : null, |
|
400 | 400 | true |
401 | 401 | ); |
402 | 402 | $this->dom->addChild( |
@@ -442,14 +442,14 @@ discard block |
||
442 | 442 | $this->dom->addChild( |
443 | 443 | $exterior, |
444 | 444 | "complemento", |
445 | - ! empty($this->std->endereco->exterior->complemento) ? |
|
445 | + !empty($this->std->endereco->exterior->complemento) ? |
|
446 | 446 | $this->std->endereco->exterior->complemento : null, |
447 | 447 | false |
448 | 448 | ); |
449 | 449 | $this->dom->addChild( |
450 | 450 | $exterior, |
451 | 451 | "bairro", |
452 | - ! empty($this->std->endereco->exterior->bairro) ? $this->std->endereco->exterior->bairro : null, |
|
452 | + !empty($this->std->endereco->exterior->bairro) ? $this->std->endereco->exterior->bairro : null, |
|
453 | 453 | false |
454 | 454 | ); |
455 | 455 | $this->dom->addChild( |
@@ -461,7 +461,7 @@ discard block |
||
461 | 461 | $this->dom->addChild( |
462 | 462 | $exterior, |
463 | 463 | "codPostal", |
464 | - ! empty($this->std->endereco->exterior->codpostal) ? $this->std->endereco->exterior->codpostal : null, |
|
464 | + !empty($this->std->endereco->exterior->codpostal) ? $this->std->endereco->exterior->codpostal : null, |
|
465 | 465 | false |
466 | 466 | ); |
467 | 467 | $endereco->appendChild($exterior); |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | $this->dom->addChild( |
545 | 545 | $deficiencia, |
546 | 546 | "observacao", |
547 | - ! empty($this->std->deficiencia->observacao) ? $this->std->deficiencia->observacao : null, |
|
547 | + !empty($this->std->deficiencia->observacao) ? $this->std->deficiencia->observacao : null, |
|
548 | 548 | false |
549 | 549 | ); |
550 | 550 | $trabalhador->appendChild($deficiencia); |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | $this->dom->addChild( |
575 | 575 | $dependente, |
576 | 576 | "cpfDep", |
577 | - ! empty($dep->cpfdep) ? $dep->cpfdep : null, |
|
577 | + !empty($dep->cpfdep) ? $dep->cpfdep : null, |
|
578 | 578 | false |
579 | 579 | ); |
580 | 580 | $this->dom->addChild( |
@@ -615,25 +615,25 @@ discard block |
||
615 | 615 | $this->dom->addChild( |
616 | 616 | $contato, |
617 | 617 | "fonePrinc", |
618 | - ! empty($this->std->contato->foneprinc) ? $this->std->contato->foneprinc : null, |
|
618 | + !empty($this->std->contato->foneprinc) ? $this->std->contato->foneprinc : null, |
|
619 | 619 | false |
620 | 620 | ); |
621 | 621 | $this->dom->addChild( |
622 | 622 | $contato, |
623 | 623 | "foneAlternat", |
624 | - ! empty($this->std->contato->fonealternat) ? $this->std->contato->fonealternat : null, |
|
624 | + !empty($this->std->contato->fonealternat) ? $this->std->contato->fonealternat : null, |
|
625 | 625 | false |
626 | 626 | ); |
627 | 627 | $this->dom->addChild( |
628 | 628 | $contato, |
629 | 629 | "emailPrinc", |
630 | - ! empty($this->std->contato->emailprinc) ? $this->std->contato->emailprinc : null, |
|
630 | + !empty($this->std->contato->emailprinc) ? $this->std->contato->emailprinc : null, |
|
631 | 631 | false |
632 | 632 | ); |
633 | 633 | $this->dom->addChild( |
634 | 634 | $contato, |
635 | 635 | "emailAlternat", |
636 | - ! empty($this->std->contato->emailalternat) ? $this->std->contato->emailalternat : null, |
|
636 | + !empty($this->std->contato->emailalternat) ? $this->std->contato->emailalternat : null, |
|
637 | 637 | false |
638 | 638 | ); |
639 | 639 | $trabalhador->appendChild($contato); |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | $this->dom->addChild( |
664 | 664 | $vinculo, |
665 | 665 | "nrRecInfPrelim", |
666 | - ! empty($this->std->vinculo->nrrecinfprelim) ? $this->std->vinculo->nrrecinfprelim : null, |
|
666 | + !empty($this->std->vinculo->nrrecinfprelim) ? $this->std->vinculo->nrrecinfprelim : null, |
|
667 | 667 | false |
668 | 668 | ); |
669 | 669 | $this->dom->addChild( |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | $this->dom->addChild( |
710 | 710 | $celetista, |
711 | 711 | "dtBase", |
712 | - ! empty($this->std->vinculo->celetista->dtbase) ? $this->std->vinculo->celetista->dtbase : null, |
|
712 | + !empty($this->std->vinculo->celetista->dtbase) ? $this->std->vinculo->celetista->dtbase : null, |
|
713 | 713 | false |
714 | 714 | ); |
715 | 715 | $this->dom->addChild( |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | $this->dom->addChild( |
730 | 730 | $fgts, |
731 | 731 | "dtOpcFGTS", |
732 | - ! empty($this->std->vinculo->celetista->dtopcfgts) ? $this->std->vinculo->celetista->dtopcfgts : null, |
|
732 | + !empty($this->std->vinculo->celetista->dtopcfgts) ? $this->std->vinculo->celetista->dtopcfgts : null, |
|
733 | 733 | false |
734 | 734 | ); |
735 | 735 | $celetista->appendChild($fgts); |
@@ -859,7 +859,7 @@ discard block |
||
859 | 859 | $this->dom->addChild( |
860 | 860 | $estatutario, |
861 | 861 | "tpPlanRP", |
862 | - ! empty($this->std->vinculo->estatutario->tpplanrp) ? $this->std->vinculo->estatutario->tpplanrp : null, |
|
862 | + !empty($this->std->vinculo->estatutario->tpplanrp) ? $this->std->vinculo->estatutario->tpplanrp : null, |
|
863 | 863 | false |
864 | 864 | ); |
865 | 865 | //infoDecJud (opcional) |
@@ -881,13 +881,13 @@ discard block |
||
881 | 881 | $this->dom->addChild( |
882 | 882 | $contrato, |
883 | 883 | "codCargo", |
884 | - ! empty($this->std->vinculo->contrato->codcargo) ? $this->std->vinculo->contrato->codcargo : null, |
|
884 | + !empty($this->std->vinculo->contrato->codcargo) ? $this->std->vinculo->contrato->codcargo : null, |
|
885 | 885 | false |
886 | 886 | ); |
887 | 887 | $this->dom->addChild( |
888 | 888 | $contrato, |
889 | 889 | "codFuncao", |
890 | - ! empty($this->std->vinculo->contrato->codfuncao) ? $this->std->vinculo->contrato->codfuncao : null, |
|
890 | + !empty($this->std->vinculo->contrato->codfuncao) ? $this->std->vinculo->contrato->codfuncao : null, |
|
891 | 891 | false |
892 | 892 | ); |
893 | 893 | $this->dom->addChild( |
@@ -899,13 +899,13 @@ discard block |
||
899 | 899 | $this->dom->addChild( |
900 | 900 | $contrato, |
901 | 901 | "codCarreira", |
902 | - ! empty($this->std->vinculo->contrato->codcarreira) ? $this->std->vinculo->contrato->codcarreira : null, |
|
902 | + !empty($this->std->vinculo->contrato->codcarreira) ? $this->std->vinculo->contrato->codcarreira : null, |
|
903 | 903 | false |
904 | 904 | ); |
905 | 905 | $this->dom->addChild( |
906 | 906 | $contrato, |
907 | 907 | "dtIngrCarr", |
908 | - ! empty($this->std->vinculo->contrato->dtingrcarr) ? $this->std->vinculo->contrato->dtingrcarr : null, |
|
908 | + !empty($this->std->vinculo->contrato->dtingrcarr) ? $this->std->vinculo->contrato->dtingrcarr : null, |
|
909 | 909 | false |
910 | 910 | ); |
911 | 911 | //remuneracao (obrigatorio) |
@@ -925,7 +925,7 @@ discard block |
||
925 | 925 | $this->dom->addChild( |
926 | 926 | $remuneracao, |
927 | 927 | "dscSalVar", |
928 | - ! empty($this->std->vinculo->contrato->dscsalvar) ? $this->std->vinculo->contrato->dscsalvar : null, |
|
928 | + !empty($this->std->vinculo->contrato->dscsalvar) ? $this->std->vinculo->contrato->dscsalvar : null, |
|
929 | 929 | false |
930 | 930 | ); |
931 | 931 | $contrato->appendChild($remuneracao); |
@@ -940,13 +940,13 @@ discard block |
||
940 | 940 | $this->dom->addChild( |
941 | 941 | $duracao, |
942 | 942 | "dtTerm", |
943 | - ! empty($this->std->vinculo->contrato->dtterm) ? $this->std->vinculo->contrato->dtterm : null, |
|
943 | + !empty($this->std->vinculo->contrato->dtterm) ? $this->std->vinculo->contrato->dtterm : null, |
|
944 | 944 | false |
945 | 945 | ); |
946 | 946 | $this->dom->addChild( |
947 | 947 | $duracao, |
948 | 948 | "clauAsseg", |
949 | - ! empty($this->std->vinculo->contrato->clauasseg) ? $this->std->vinculo->contrato->clauasseg : null, |
|
949 | + !empty($this->std->vinculo->contrato->clauasseg) ? $this->std->vinculo->contrato->clauasseg : null, |
|
950 | 950 | false |
951 | 951 | ); |
952 | 952 | $contrato->appendChild($duracao); |
@@ -970,7 +970,7 @@ discard block |
||
970 | 970 | $this->dom->addChild( |
971 | 971 | $localgeral, |
972 | 972 | "descComp", |
973 | - ! empty($this->std->vinculo->contrato->local->desccomp) ? |
|
973 | + !empty($this->std->vinculo->contrato->local->desccomp) ? |
|
974 | 974 | $this->std->vinculo->contrato->local->desccomp : null, |
975 | 975 | false |
976 | 976 | ); |
@@ -1000,14 +1000,14 @@ discard block |
||
1000 | 1000 | $this->dom->addChild( |
1001 | 1001 | $localDomestico, |
1002 | 1002 | "complemento", |
1003 | - ! empty($this->std->vinculo->contrato->domestico->complemento) ? |
|
1003 | + !empty($this->std->vinculo->contrato->domestico->complemento) ? |
|
1004 | 1004 | $this->std->vinculo->contrato->domestico->complemento : null, |
1005 | 1005 | false |
1006 | 1006 | ); |
1007 | 1007 | $this->dom->addChild( |
1008 | 1008 | $localDomestico, |
1009 | 1009 | "bairro", |
1010 | - ! empty($this->std->vinculo->contrato->domestico->bairro) ? |
|
1010 | + !empty($this->std->vinculo->contrato->domestico->bairro) ? |
|
1011 | 1011 | $this->std->vinculo->contrato->domestico->bairro : null, |
1012 | 1012 | false |
1013 | 1013 | ); |
@@ -1050,7 +1050,7 @@ discard block |
||
1050 | 1050 | $this->dom->addChild( |
1051 | 1051 | $horContratual, |
1052 | 1052 | "dscTpJorn", |
1053 | - ! empty($this->std->vinculo->contrato->horcontratual->dsctpjorn) ? |
|
1053 | + !empty($this->std->vinculo->contrato->horcontratual->dsctpjorn) ? |
|
1054 | 1054 | $this->std->vinculo->contrato->horcontratual->dsctpjorn : null, |
1055 | 1055 | false |
1056 | 1056 | ); |
@@ -1120,7 +1120,7 @@ discard block |
||
1120 | 1120 | $this->dom->addChild( |
1121 | 1121 | $sucessaoVinc, |
1122 | 1122 | "matricAnt", |
1123 | - ! empty($this->std->vinculo->sucessao->matricant) ? $this->std->vinculo->sucessao->matricant : null, |
|
1123 | + !empty($this->std->vinculo->sucessao->matricant) ? $this->std->vinculo->sucessao->matricant : null, |
|
1124 | 1124 | false |
1125 | 1125 | ); |
1126 | 1126 | $this->dom->addChild( |
@@ -1132,7 +1132,7 @@ discard block |
||
1132 | 1132 | $this->dom->addChild( |
1133 | 1133 | $sucessaoVinc, |
1134 | 1134 | "observacao", |
1135 | - ! empty($this->std->vinculo->sucessao->observacao) ? $this->std->vinculo->sucessao->observacao : null, |
|
1135 | + !empty($this->std->vinculo->sucessao->observacao) ? $this->std->vinculo->sucessao->observacao : null, |
|
1136 | 1136 | false |
1137 | 1137 | ); |
1138 | 1138 | $vinculo->appendChild($sucessaoVinc); |
@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use NFePHP\Common\Certificate; |
19 | 19 | use NFePHP\eSocial\Common\Factory; |
20 | -use NFePHP\eSocial\Common\FactoryId; |
|
21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
22 | 21 | use stdClass; |
23 | 22 |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $this->dom->addChild( |
106 | 106 | $ide, |
107 | 107 | "fimValid", |
108 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
108 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
109 | 109 | false |
110 | 110 | ); |
111 | 111 | $dados = null; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $this->dom->addChild( |
160 | 160 | $nova, |
161 | 161 | "fimValid", |
162 | - ! empty($this->std->novavalidade->fimvalid) |
|
162 | + !empty($this->std->novavalidade->fimvalid) |
|
163 | 163 | ? $this->std->novavalidade->fimvalid |
164 | 164 | : null, |
165 | 165 | false |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $this->dom->addChild( |
141 | 141 | $ideVinculo, |
142 | 142 | "codCateg", |
143 | - ! empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null, |
|
143 | + !empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null, |
|
144 | 144 | false |
145 | 145 | ); |
146 | 146 | $this->node->appendChild($ideVinculo); |
@@ -166,21 +166,21 @@ discard block |
||
166 | 166 | $this->dom->addChild( |
167 | 167 | $iniAfastamento, |
168 | 168 | "infoMesmoMtv", |
169 | - ! empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null, |
|
169 | + !empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null, |
|
170 | 170 | false |
171 | 171 | ); |
172 | 172 | |
173 | 173 | $this->dom->addChild( |
174 | 174 | $iniAfastamento, |
175 | 175 | "tpAcidTransito", |
176 | - ! empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null, |
|
176 | + !empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null, |
|
177 | 177 | false |
178 | 178 | ); |
179 | 179 | |
180 | 180 | $this->dom->addChild( |
181 | 181 | $iniAfastamento, |
182 | 182 | "observacao", |
183 | - ! empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null, |
|
183 | + !empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null, |
|
184 | 184 | false |
185 | 185 | ); |
186 | 186 | |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $this->dom->addChild( |
192 | 192 | $infoAtestado, |
193 | 193 | "codCID", |
194 | - ! empty($info->codcid) ? $info->codcid : null, |
|
194 | + !empty($info->codcid) ? $info->codcid : null, |
|
195 | 195 | false |
196 | 196 | ); |
197 | 197 | |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | $this->dom->addChild( |
230 | 230 | $emitente, |
231 | 231 | "ufOC", |
232 | - ! empty($info->emitente->ufoc) ? $info->emitente->ufoc : null, |
|
232 | + !empty($info->emitente->ufoc) ? $info->emitente->ufoc : null, |
|
233 | 233 | false |
234 | 234 | ); |
235 | 235 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | } |
241 | 241 | } |
242 | 242 | |
243 | - if (! empty($this->std->infocessao)) { |
|
243 | + if (!empty($this->std->infocessao)) { |
|
244 | 244 | $infoCessao = $this->dom->createElement("infoCessao"); |
245 | 245 | |
246 | 246 | $this->dom->addChild( |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | $iniAfastamento->appendChild($infoCessao); |
261 | 261 | } |
262 | 262 | |
263 | - if (! empty($this->std->infomandsind)) { |
|
263 | + if (!empty($this->std->infomandsind)) { |
|
264 | 264 | $infoMandSind = $this->dom->createElement("infoMandSind"); |
265 | 265 | |
266 | 266 | $this->dom->addChild( |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | |
283 | 283 | $infoAfastamento->appendChild($iniAfastamento); |
284 | 284 | |
285 | - if (! empty($this->std->inforetif)) { |
|
285 | + if (!empty($this->std->inforetif)) { |
|
286 | 286 | $infoRetif = $this->dom->createElement("infoRetif"); |
287 | 287 | |
288 | 288 | $this->dom->addChild( |
@@ -302,14 +302,14 @@ discard block |
||
302 | 302 | $this->dom->addChild( |
303 | 303 | $infoRetif, |
304 | 304 | "nrProc", |
305 | - ! empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null, |
|
305 | + !empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null, |
|
306 | 306 | false |
307 | 307 | ); |
308 | 308 | |
309 | 309 | $infoAfastamento->appendChild($infoRetif); |
310 | 310 | } |
311 | 311 | |
312 | - if (! empty($this->std->fimafastamento)) { |
|
312 | + if (!empty($this->std->fimafastamento)) { |
|
313 | 313 | $fimAfastamento = $this->dom->createElement("fimAfastamento"); |
314 | 314 | $this->dom->addChild( |
315 | 315 | $fimAfastamento, |
@@ -172,7 +172,7 @@ |
||
172 | 172 | /** |
173 | 173 | * Stringfy layout number |
174 | 174 | * @param string $version |
175 | - * @param int $lenght |
|
175 | + * @param int $length |
|
176 | 176 | * @return string |
177 | 177 | */ |
178 | 178 | protected function stringfyVersions($version, $length = 2) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @var array |
87 | 87 | */ |
88 | 88 | protected $grupos = [ |
89 | - 1 => [ //EVENTOS INICIAIS grupo [1] |
|
89 | + 1 => [//EVENTOS INICIAIS grupo [1] |
|
90 | 90 | 'S-1000', |
91 | 91 | 'S-1005', |
92 | 92 | 'S-1010', |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | 'S-1080', |
101 | 101 | 'S-2100', |
102 | 102 | ], |
103 | - 2 => [ //EVENTOS NÃO PERIÓDICOS grupo [2] |
|
103 | + 2 => [//EVENTOS NÃO PERIÓDICOS grupo [2] |
|
104 | 104 | 'S-2190', |
105 | 105 | 'S-2200', |
106 | 106 | 'S-2205', |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'S-5011', |
125 | 125 | 'S-5012', |
126 | 126 | ], |
127 | - 3 => [ //EVENTOS PERIÓDICOS grupo [3] |
|
127 | + 3 => [//EVENTOS PERIÓDICOS grupo [3] |
|
128 | 128 | 'S-1200', |
129 | 129 | 'S-1202', |
130 | 130 | 'S-1207', |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $this->certificate = $certificate; |
166 | 166 | $this->path = realpath(__DIR__ . '/../../') . '/'; |
167 | 167 | $this->serviceXsd = XsdSeeker::seek( |
168 | - $this->path."schemes/comunicacao/$this->serviceStr/" |
|
168 | + $this->path . "schemes/comunicacao/$this->serviceStr/" |
|
169 | 169 | ); |
170 | 170 | } |
171 | 171 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * @param string $action |
81 | 81 | * @param string $envelope |
82 | 82 | * @param array $parameters |
83 | - */ |
|
83 | + */ |
|
84 | 84 | public function send( |
85 | 85 | $operation, |
86 | 86 | $url, |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | //set properties from config |
121 | 121 | $stdConf = json_decode($config); |
122 | 122 | $this->date = new DateTime(); |
123 | - if (! empty($date)) { |
|
123 | + if (!empty($date)) { |
|
124 | 124 | $this->date = new DateTime($date); |
125 | 125 | } |
126 | 126 | $this->tpAmb = $stdConf->tpAmb; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $this->nmRazao = $stdConf->empregador->nmRazao; |
132 | 132 | $this->layoutStr = $this->strLayoutVer($this->layout); |
133 | 133 | $this->certificate = $certificate; |
134 | - if (empty($std) || ! is_object($std)) { |
|
134 | + if (empty($std) || !is_object($std)) { |
|
135 | 135 | throw new \InvalidArgumentException( |
136 | 136 | 'Você deve passar os parâmetros num stdClass.' |
137 | 137 | ); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | .$this->evtName |
143 | 143 | .".schema" |
144 | 144 | ); |
145 | - $this->schema = realpath( |
|
145 | + $this->schema = realpath( |
|
146 | 146 | __DIR__ |
147 | 147 | ."/../../schemes/$this->layoutStr/" |
148 | 148 | .$this->evtName |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $fils = explode('.', $layout); |
170 | 170 | $str = 'v'; |
171 | 171 | foreach ($fils as $fil) { |
172 | - $str .= str_pad($fil, 2, '0', STR_PAD_LEFT).'_'; |
|
172 | + $str .= str_pad($fil, 2, '0', STR_PAD_LEFT) . '_'; |
|
173 | 173 | } |
174 | 174 | return substr($str, 0, -1); |
175 | 175 | } |
@@ -201,12 +201,12 @@ discard block |
||
201 | 201 | */ |
202 | 202 | protected function validInputData($data) |
203 | 203 | { |
204 | - if (! is_file($this->jsonschema)) { |
|
204 | + if (!is_file($this->jsonschema)) { |
|
205 | 205 | return true; |
206 | 206 | } |
207 | 207 | $validator = new JsonValid(); |
208 | - $validator->check($data, (object) ['$ref' => 'file://'.$this->jsonschema]); |
|
209 | - if (! $validator->isValid()) { |
|
208 | + $validator->check($data, (object) ['$ref' => 'file://' . $this->jsonschema]); |
|
209 | + if (!$validator->isValid()) { |
|
210 | 210 | $msg = "JSON does not validate. Violations:\n"; |
211 | 211 | foreach ($validator->getErrors() as $error) { |
212 | 212 | $msg .= sprintf("[%s] %s\n", $error['property'], $error['message']); |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | */ |
364 | 364 | public function standardizeProperties(stdClass $data) |
365 | 365 | { |
366 | - if (! is_file($this->jsonschema)) { |
|
366 | + if (!is_file($this->jsonschema)) { |
|
367 | 367 | return $data; |
368 | 368 | } |
369 | 369 | $jsonSchemaObj = json_decode(file_get_contents($this->jsonschema)); |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | { |
379 | 379 | $xml = $this->dom->saveXML($this->eSocial); |
380 | 380 | $xml = Strings::clearXmlString($xml); |
381 | - if (! empty($this->certificate)) { |
|
381 | + if (!empty($this->certificate)) { |
|
382 | 382 | $xml = Signer::sign( |
383 | 383 | $this->certificate, |
384 | 384 | $xml, |