Completed
Pull Request — master (#190)
by
unknown
30:34
created
src/Factories/EvtTSVTermino.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         $this->dom->addChild(
77 77
             $ideEvento,
78 78
             "nrRecibo",
79
-            ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
79
+            !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
80 80
             false
81 81
         );
82 82
         $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/EvtTSVInicio.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         $this->dom->addChild(
77 77
             $ideEvento,
78 78
             "nrRecibo",
79
-            ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
79
+            !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
80 80
             false
81 81
         );
82 82
         $this->dom->addChild(
Please login to merge, or discard this patch.
src/Common/Factory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             );
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Factories/EvtAdmissao.php 1 patch
Spacing   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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(
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $this->dom->addChild(
128 128
             $trabalhador,
129 129
             "estCiv",
130
-            ! empty($this->std->estciv) ? $this->std->estciv : null,
130
+            !empty($this->std->estciv) ? $this->std->estciv : null,
131 131
             false
132 132
         );
133 133
         $this->dom->addChild(
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         $this->dom->addChild(
146 146
             $trabalhador,
147 147
             "nmSoc",
148
-            ! empty($this->std->nmsoc) ? $this->std->nmsoc : null,
148
+            !empty($this->std->nmsoc) ? $this->std->nmsoc : null,
149 149
             false
150 150
         );
151 151
 
@@ -160,13 +160,13 @@  discard block
 block discarded – undo
160 160
         $this->dom->addChild(
161 161
             $nascimento,
162 162
             "codMunic",
163
-            ! empty($this->std->codmunic) ? $this->std->codmunic : null,
163
+            !empty($this->std->codmunic) ? $this->std->codmunic : null,
164 164
             false
165 165
         );
166 166
         $this->dom->addChild(
167 167
             $nascimento,
168 168
             "uf",
169
-            ! empty($this->std->uf) ? $this->std->uf : null,
169
+            !empty($this->std->uf) ? $this->std->uf : null,
170 170
             false
171 171
         );
172 172
         $this->dom->addChild(
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
         $this->dom->addChild(
185 185
             $nascimento,
186 186
             "nmMae",
187
-            ! empty($this->std->nmmae) ? $this->std->nmmae : null,
187
+            !empty($this->std->nmmae) ? $this->std->nmmae : null,
188 188
             false
189 189
         );
190 190
         $this->dom->addChild(
191 191
             $nascimento,
192 192
             "nmPai",
193
-            ! empty($this->std->nmpai) ? $this->std->nmpai : null,
193
+            !empty($this->std->nmpai) ? $this->std->nmpai : null,
194 194
             false
195 195
         );
196 196
         $trabalhador->appendChild($nascimento);
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
             $this->dom->addChild(
241 241
                 $ric,
242 242
                 "dtExped",
243
-                ! empty($doc->dtexped) ? $doc->dtexped : null,
243
+                !empty($doc->dtexped) ? $doc->dtexped : null,
244 244
                 false
245 245
             );
246 246
             $documentos->appendChild($ric);
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             $this->dom->addChild(
265 265
                 $rg,
266 266
                 "dtExped",
267
-                ! empty($doc->dtexped) ? $doc->dtexped : null,
267
+                !empty($doc->dtexped) ? $doc->dtexped : null,
268 268
                 false
269 269
             );
270 270
             $documentos->appendChild($rg);
@@ -288,13 +288,13 @@  discard block
 block discarded – undo
288 288
             $this->dom->addChild(
289 289
                 $rne,
290 290
                 "dtExped",
291
-                ! empty($doc->dtexped) ? $doc->dtexped : null,
291
+                !empty($doc->dtexped) ? $doc->dtexped : null,
292 292
                 false
293 293
             );
294 294
             $this->dom->addChild(
295 295
                 $rne,
296 296
                 "dtValid",
297
-                ! empty($doc->dtvalid) ? $doc->dtvalid : null,
297
+                !empty($doc->dtvalid) ? $doc->dtvalid : null,
298 298
                 false
299 299
             );
300 300
             $documentos->appendChild($rne);
@@ -318,13 +318,13 @@  discard block
 block discarded – undo
318 318
             $this->dom->addChild(
319 319
                 $oc,
320 320
                 "dtExped",
321
-                ! empty($doc->dtexped) ? $doc->dtexped : null,
321
+                !empty($doc->dtexped) ? $doc->dtexped : null,
322 322
                 false
323 323
             );
324 324
             $this->dom->addChild(
325 325
                 $oc,
326 326
                 "dtValid",
327
-                ! empty($doc->dtvalid) ? $doc->dtvalid : null,
327
+                !empty($doc->dtvalid) ? $doc->dtvalid : null,
328 328
                 false
329 329
             );
330 330
             $documentos->appendChild($oc);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
             $this->dom->addChild(
343 343
                 $cnh,
344 344
                 "dtExped",
345
-                ! empty($doc->dtexped) ? $doc->dtexped : null,
345
+                !empty($doc->dtexped) ? $doc->dtexped : null,
346 346
                 false
347 347
             );
348 348
             $this->dom->addChild(
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
             $this->dom->addChild(
361 361
                 $cnh,
362 362
                 "dtPriHab",
363
-                ! empty($doc->dtprihab) ? $doc->dtprihab : null,
363
+                !empty($doc->dtprihab) ? $doc->dtprihab : null,
364 364
                 false
365 365
             );
366 366
             $this->dom->addChild(
@@ -399,13 +399,13 @@  discard block
 block discarded – undo
399 399
             $this->dom->addChild(
400 400
                 $brasil,
401 401
                 "complemento",
402
-                ! empty($end->complemento) ? $end->complemento : null,
402
+                !empty($end->complemento) ? $end->complemento : null,
403 403
                 false
404 404
             );
405 405
             $this->dom->addChild(
406 406
                 $brasil,
407 407
                 "bairro",
408
-                ! empty($end->bairro) ? $end->bairro : null,
408
+                !empty($end->bairro) ? $end->bairro : null,
409 409
                 true
410 410
             );
411 411
             $this->dom->addChild(
@@ -452,13 +452,13 @@  discard block
 block discarded – undo
452 452
             $this->dom->addChild(
453 453
                 $exterior,
454 454
                 "complemento",
455
-                ! empty($end->complemento) ? $end->complemento : null,
455
+                !empty($end->complemento) ? $end->complemento : null,
456 456
                 false
457 457
             );
458 458
             $this->dom->addChild(
459 459
                 $exterior,
460 460
                 "bairro",
461
-                ! empty($end->bairro) ? $end->bairro : null,
461
+                !empty($end->bairro) ? $end->bairro : null,
462 462
                 false
463 463
             );
464 464
             $this->dom->addChild(
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
             $this->dom->addChild(
471 471
                 $exterior,
472 472
                 "codPostal",
473
-                ! empty($end->codpostal) ? $end->codpostal : null,
473
+                !empty($end->codpostal) ? $end->codpostal : null,
474 474
                 false
475 475
             );
476 476
             $endereco->appendChild($exterior);
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
             $this->dom->addChild(
557 557
                 $deficiencia,
558 558
                 "observacao",
559
-                ! empty($def->observacao) ? $def->observacao : null,
559
+                !empty($def->observacao) ? $def->observacao : null,
560 560
                 false
561 561
             );
562 562
             $trabalhador->appendChild($deficiencia);
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
                 $this->dom->addChild(
588 588
                     $dependente,
589 589
                     "cpfDep",
590
-                    ! empty($dep->cpfdep) ? $dep->cpfdep : null,
590
+                    !empty($dep->cpfdep) ? $dep->cpfdep : null,
591 591
                     false
592 592
                 );
593 593
                 $this->dom->addChild(
@@ -631,25 +631,25 @@  discard block
 block discarded – undo
631 631
             $this->dom->addChild(
632 632
                 $contato,
633 633
                 "fonePrinc",
634
-                ! empty($doc->foneprinc) ? $doc->foneprinc : null,
634
+                !empty($doc->foneprinc) ? $doc->foneprinc : null,
635 635
                 false
636 636
             );
637 637
             $this->dom->addChild(
638 638
                 $contato,
639 639
                 "foneAlternat",
640
-                ! empty($doc->fonealternat) ? $doc->fonealternat : null,
640
+                !empty($doc->fonealternat) ? $doc->fonealternat : null,
641 641
                 false
642 642
             );
643 643
             $this->dom->addChild(
644 644
                 $contato,
645 645
                 "emailPrinc",
646
-                ! empty($doc->emailprinc) ? $doc->emailprinc : null,
646
+                !empty($doc->emailprinc) ? $doc->emailprinc : null,
647 647
                 false
648 648
             );
649 649
             $this->dom->addChild(
650 650
                 $contato,
651 651
                 "emailAlternat",
652
-                ! empty($doc->emailalternat) ? $doc->emailalternat : null,
652
+                !empty($doc->emailalternat) ? $doc->emailalternat : null,
653 653
                 false
654 654
             );
655 655
             $trabalhador->appendChild($contato);
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
         $this->dom->addChild(
683 683
             $vinculo,
684 684
             "nrRecInfPrelim",
685
-            ! empty($vin->nrrecinfprelim) ? $vin->nrrecinfprelim : null,
685
+            !empty($vin->nrrecinfprelim) ? $vin->nrrecinfprelim : null,
686 686
             false
687 687
         );
688 688
         $this->dom->addChild(
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
             $this->dom->addChild(
730 730
                 $celetista,
731 731
                 "dtBase",
732
-                ! empty($std->dtbase) ? $std->dtbase : null,
732
+                !empty($std->dtbase) ? $std->dtbase : null,
733 733
                 false
734 734
             );
735 735
             $this->dom->addChild(
@@ -749,7 +749,7 @@  discard block
 block discarded – undo
749 749
             $this->dom->addChild(
750 750
                 $fgts,
751 751
                 "dtOpcFGTS",
752
-                ! empty($std->dtopcfgts) ? $std->dtopcfgts : null,
752
+                !empty($std->dtopcfgts) ? $std->dtopcfgts : null,
753 753
                 false
754 754
             );
755 755
             $celetista->appendChild($fgts);
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
             $this->dom->addChild(
877 877
                 $estatutario,
878 878
                 "tpPlanRP",
879
-                ! empty($std->tpplanrp) ? $std->tpplanrp : null,
879
+                !empty($std->tpplanrp) ? $std->tpplanrp : null,
880 880
                 false
881 881
             );
882 882
             //infoDecJud (opcional)
@@ -900,13 +900,13 @@  discard block
 block discarded – undo
900 900
         $this->dom->addChild(
901 901
             $contrato,
902 902
             "codCargo",
903
-            ! empty($std->codcargo) ? $std->codcargo : null,
903
+            !empty($std->codcargo) ? $std->codcargo : null,
904 904
             false
905 905
         );
906 906
         $this->dom->addChild(
907 907
             $contrato,
908 908
             "codFuncao",
909
-            ! empty($std->codfuncao) ? $std->codfuncao : null,
909
+            !empty($std->codfuncao) ? $std->codfuncao : null,
910 910
             false
911 911
         );
912 912
         $this->dom->addChild(
@@ -918,13 +918,13 @@  discard block
 block discarded – undo
918 918
         $this->dom->addChild(
919 919
             $contrato,
920 920
             "codCarreira",
921
-            ! empty($std->codcarreira) ? $std->codcarreira : null,
921
+            !empty($std->codcarreira) ? $std->codcarreira : null,
922 922
             false
923 923
         );
924 924
         $this->dom->addChild(
925 925
             $contrato,
926 926
             "dtIngrCarr",
927
-            ! empty($std->dtingrcarr) ? $std->dtingrcarr : null,
927
+            !empty($std->dtingrcarr) ? $std->dtingrcarr : null,
928 928
             false
929 929
         );
930 930
         //remuneracao (obrigatorio)
@@ -944,7 +944,7 @@  discard block
 block discarded – undo
944 944
         $this->dom->addChild(
945 945
             $remuneracao,
946 946
             "dscSalVar",
947
-            ! empty($std->dscsalvar) ? $std->dscsalvar : null,
947
+            !empty($std->dscsalvar) ? $std->dscsalvar : null,
948 948
             false
949 949
         );
950 950
         $contrato->appendChild($remuneracao);
@@ -959,13 +959,13 @@  discard block
 block discarded – undo
959 959
         $this->dom->addChild(
960 960
             $duracao,
961 961
             "dtTerm",
962
-            ! empty($std->dtterm) ? $std->dtterm : null,
962
+            !empty($std->dtterm) ? $std->dtterm : null,
963 963
             false
964 964
         );
965 965
         $this->dom->addChild(
966 966
             $duracao,
967 967
             "clauAssec",
968
-            ! empty($std->clauassec) ? $std->clauassec : null,
968
+            !empty($std->clauassec) ? $std->clauassec : null,
969 969
             false
970 970
         );
971 971
         $contrato->appendChild($duracao);
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
             $this->dom->addChild(
990 990
                 $localgeral,
991 991
                 "descComp",
992
-                ! empty($std->localtrabgeral->desccomp) ? $std->localtrabgeral->desccomp : null,
992
+                !empty($std->localtrabgeral->desccomp) ? $std->localtrabgeral->desccomp : null,
993 993
                 false
994 994
             );
995 995
             $localTrabalho->appendChild($localgeral);
@@ -1019,13 +1019,13 @@  discard block
 block discarded – undo
1019 1019
             $this->dom->addChild(
1020 1020
                 $localDomestico,
1021 1021
                 "complemento",
1022
-                ! empty($ld->complemento) ? $ld->complemento : null,
1022
+                !empty($ld->complemento) ? $ld->complemento : null,
1023 1023
                 false
1024 1024
             );
1025 1025
             $this->dom->addChild(
1026 1026
                 $localDomestico,
1027 1027
                 "bairro",
1028
-                ! empty($ld->bairro) ? $ld->bairro : null,
1028
+                !empty($ld->bairro) ? $ld->bairro : null,
1029 1029
                 false
1030 1030
             );
1031 1031
             $this->dom->addChild(
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
             $this->dom->addChild(
1070 1070
                 $horContratual,
1071 1071
                 "dscTpJorn",
1072
-                ! empty($hc->dsctpjorn) ? $hc->dsctpjorn : null,
1072
+                !empty($hc->dsctpjorn) ? $hc->dsctpjorn : null,
1073 1073
                 false
1074 1074
             );
1075 1075
             $this->dom->addChild(
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
             $this->dom->addChild(
1153 1153
                 $sucessaoVinc,
1154 1154
                 "matricAnt",
1155
-                ! empty($std->matricant) ? $std->matricant : null,
1155
+                !empty($std->matricant) ? $std->matricant : null,
1156 1156
                 false
1157 1157
             );
1158 1158
             $this->dom->addChild(
@@ -1164,7 +1164,7 @@  discard block
 block discarded – undo
1164 1164
             $this->dom->addChild(
1165 1165
                 $sucessaoVinc,
1166 1166
                 "observacao",
1167
-                ! empty($std->observacao) ? $std->observacao : null,
1167
+                !empty($std->observacao) ? $std->observacao : null,
1168 1168
                 false
1169 1169
             );
1170 1170
             $vinculo->appendChild($sucessaoVinc);
@@ -1182,7 +1182,7 @@  discard block
 block discarded – undo
1182 1182
             $this->dom->addChild(
1183 1183
                 $transfDom,
1184 1184
                 "matricAnt",
1185
-                ! empty($std->matricant) ? $std->matricant : null,
1185
+                !empty($std->matricant) ? $std->matricant : null,
1186 1186
                 false
1187 1187
             );
1188 1188
             $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/EvtIrrfBenef.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $this->dom->addChild(
70 70
             $ideEvento,
71 71
             "nrRecArqBase",
72
-            ! empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
72
+            !empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
73 73
             false
74 74
         );
75 75
         $this->dom->addChild(
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             true
88 88
         );
89 89
         $this->node->appendChild($ideTrabalhador);
90
-        if (! empty($this->std->vrdeddep)) {
90
+        if (!empty($this->std->vrdeddep)) {
91 91
             $infoDep = $this->dom->createElement("infoDep");
92 92
             $this->dom->addChild(
93 93
                 $infoDep,
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $this->dom->addChild(
103 103
                 $infoIrrf,
104 104
                 "codCateg",
105
-                ! empty($nIrrf->codcateg) ? $nIrrf->codcateg : null,
105
+                !empty($nIrrf->codcateg) ? $nIrrf->codcateg : null,
106 106
                 false
107 107
             );
108 108
             $this->dom->addChild(
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 $this->dom->addChild(
162 162
                     $idePais,
163 163
                     "nifBenef",
164
-                    ! empty($nIrrf->idepgtoext->nifbenef) ? $nIrrf->idepgtoext->nifbenef : null,
164
+                    !empty($nIrrf->idepgtoext->nifbenef) ? $nIrrf->idepgtoext->nifbenef : null,
165 165
                     false
166 166
                 );
167 167
                 $idePgtoExt->appendChild($idePais);
@@ -176,19 +176,19 @@  discard block
 block discarded – undo
176 176
                 $this->dom->addChild(
177 177
                     $endExt,
178 178
                     "nrLograd",
179
-                    ! empty($nIrrf->idepgtoext->nrlograd) ? $nIrrf->idepgtoext->nrlograd : null,
179
+                    !empty($nIrrf->idepgtoext->nrlograd) ? $nIrrf->idepgtoext->nrlograd : null,
180 180
                     false
181 181
                 );
182 182
                 $this->dom->addChild(
183 183
                     $endExt,
184 184
                     "complem",
185
-                    ! empty($nIrrf->idepgtoext->complem) ? $nIrrf->idepgtoext->complem : null,
185
+                    !empty($nIrrf->idepgtoext->complem) ? $nIrrf->idepgtoext->complem : null,
186 186
                     false
187 187
                 );
188 188
                 $this->dom->addChild(
189 189
                     $endExt,
190 190
                     "bairro",
191
-                    ! empty($nIrrf->idepgtoext->bairro) ? $nIrrf->idepgtoext->bairro : null,
191
+                    !empty($nIrrf->idepgtoext->bairro) ? $nIrrf->idepgtoext->bairro : null,
192 192
                     false
193 193
                 );
194 194
                 $this->dom->addChild(
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 $this->dom->addChild(
201 201
                     $endExt,
202 202
                     "codPostal",
203
-                    ! empty($nIrrf->idepgtoext->codpostal) ? $nIrrf->idepgtoext->codpostal : null,
203
+                    !empty($nIrrf->idepgtoext->codpostal) ? $nIrrf->idepgtoext->codpostal : null,
204 204
                     false
205 205
                 );
206 206
                 $idePgtoExt->appendChild($endExt);
Please login to merge, or discard this patch.
src/Factories/EvtFechaEvPer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         $this->dom->addChild(
122 122
             $ideRespInf,
123 123
             "email",
124
-            ! empty($this->std->iderespinf->email) ? $this->std->iderespinf->email : null,
124
+            !empty($this->std->iderespinf->email) ? $this->std->iderespinf->email : null,
125 125
             false
126 126
         );
127 127
         $this->node->appendChild($ideRespInf);
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $this->dom->addChild(
167 167
             $infoFech,
168 168
             "compSemMovto",
169
-            ! empty($this->std->infofech->compsemmovto) ? $this->std->infofech->compsemmovto : null,
169
+            !empty($this->std->infofech->compsemmovto) ? $this->std->infofech->compsemmovto : null,
170 170
             false
171 171
         );
172 172
         $this->node->appendChild($infoFech);
Please login to merge, or discard this patch.
src/Factories/EvtAfastTemp.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $this->dom->addChild(
121 121
             $ideVinculo,
122 122
             "codCateg",
123
-            ! empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null,
123
+            !empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null,
124 124
             false
125 125
         );
126 126
         $this->node->appendChild($ideVinculo);
@@ -141,19 +141,19 @@  discard block
 block discarded – undo
141 141
         $this->dom->addChild(
142 142
             $iniAfastamento,
143 143
             "infoMesmoMtv",
144
-            ! empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null,
144
+            !empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null,
145 145
             false
146 146
         );
147 147
         $this->dom->addChild(
148 148
             $iniAfastamento,
149 149
             "tpAcidTransito",
150
-            ! empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null,
150
+            !empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null,
151 151
             false
152 152
         );
153 153
         $this->dom->addChild(
154 154
             $iniAfastamento,
155 155
             "observacao",
156
-            ! empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null,
156
+            !empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null,
157 157
             false
158 158
         );
159 159
         if (isset($this->std->iniafastamento->infoatestado)) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 $this->dom->addChild(
163 163
                     $infoAtestado,
164 164
                     "codCID",
165
-                    ! empty($info->codcid) ? $info->codcid : null,
165
+                    !empty($info->codcid) ? $info->codcid : null,
166 166
                     false
167 167
                 );
168 168
                 $this->dom->addChild(
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
                     $this->dom->addChild(
196 196
                         $emitente,
197 197
                         "ufOC",
198
-                        ! empty($info->emitente->ufoc) ? $info->emitente->ufoc : null,
198
+                        !empty($info->emitente->ufoc) ? $info->emitente->ufoc : null,
199 199
                         false
200 200
                     );
201 201
                     $infoAtestado->appendChild($emitente);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 $iniAfastamento->appendChild($infoAtestado);
204 204
             }
205 205
         }
206
-        if (! empty($this->std->infocessao)) {
206
+        if (!empty($this->std->infocessao)) {
207 207
             $infoCessao = $this->dom->createElement("infoCessao");
208 208
             $this->dom->addChild(
209 209
                 $infoCessao,
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
             );
220 220
             $iniAfastamento->appendChild($infoCessao);
221 221
         }
222
-        if (! empty($this->std->infomandsind)) {
222
+        if (!empty($this->std->infomandsind)) {
223 223
             $infoMandSind = $this->dom->createElement("infoMandSind");
224 224
             $this->dom->addChild(
225 225
                 $infoMandSind,
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             $iniAfastamento->appendChild($infoMandSind);
237 237
         }
238 238
         $infoAfastamento->appendChild($iniAfastamento);
239
-        if (! empty($this->std->inforetif)) {
239
+        if (!empty($this->std->inforetif)) {
240 240
             $infoRetif = $this->dom->createElement("infoRetif");
241 241
             $this->dom->addChild(
242 242
                 $infoRetif,
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
             $this->dom->addChild(
254 254
                 $infoRetif,
255 255
                 "nrProc",
256
-                ! empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null,
256
+                !empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null,
257 257
                 false
258 258
             );
259 259
             $infoAfastamento->appendChild($infoRetif);
260 260
         }
261
-        if (! empty($this->std->fimafastamento)) {
261
+        if (!empty($this->std->fimafastamento)) {
262 262
             $fimAfastamento = $this->dom->createElement("fimAfastamento");
263 263
             $this->dom->addChild(
264 264
                 $fimAfastamento,
Please login to merge, or discard this patch.
src/Factories/EvtTSVAltContr.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -235,8 +235,7 @@
 block discarded – undo
235 235
                 $this->dom->addChild(
236 236
                     $instEnsino,
237 237
                     "bairro",
238
-                    !empty($this->std->estagiario->instituicao->bairro) ? $this->std->estagiario->instituicao->bairro :
239
-                        null,
238
+                    !empty($this->std->estagiario->instituicao->bairro) ? $this->std->estagiario->instituicao->bairro : null,
240 239
                     false
241 240
                 );
242 241
                 $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/EvtExclusao.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             $this->std->infoexclusao->nrrecevt,
101 101
             true
102 102
         );
103
-        if (! empty($this->std->idetrabalhador)) {
103
+        if (!empty($this->std->idetrabalhador)) {
104 104
             $ideTrabalhador = $this->dom->createElement("ideTrabalhador");
105 105
             $this->dom->addChild(
106 106
                 $ideTrabalhador,
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
             $this->dom->addChild(
112 112
                 $ideTrabalhador,
113 113
                 "nisTrab",
114
-                ! empty($this->std->idetrabalhador->nistrab) ? $this->std->idetrabalhador->nistrab : null,
114
+                !empty($this->std->idetrabalhador->nistrab) ? $this->std->idetrabalhador->nistrab : null,
115 115
                 false
116 116
             );
117 117
             $infoExclusao->appendChild($ideTrabalhador);
Please login to merge, or discard this patch.