Passed
Push — master ( 94d3eb...8dcfdd )
by Roberto
02:59
created
src/Common/Soap/SoapCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     public static function info($code)
24 24
     {
25
-        $codes = (array) json_decode(file_get_contents(__DIR__.'/httpcodes.json'), true);
25
+        $codes = (array) json_decode(file_get_contents(__DIR__ . '/httpcodes.json'), true);
26 26
         if (array_key_exists($code, $codes)) {
27 27
             return $codes[$code];
28 28
         }
Please login to merge, or discard this patch.
src/Factories/EvtAvPrevio.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function toNode()
67 67
     {
68
-        $evtid       = FactoryId::build(
68
+        $evtid = FactoryId::build(
69 69
             $this->tpInsc,
70 70
             $this->nrInsc,
71 71
             $this->date,
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $this->dom->addChild(
88 88
             $ideEvento,
89 89
             "nrRecibo",
90
-            ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
90
+            !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
91 91
             false
92 92
         );
93 93
         $this->dom->addChild(
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
         $this->dom->addChild(
172 172
             $detAvPrevio,
173 173
             "observacao",
174
-            ! empty($this->std->observacao) ? $this->std->observacao : null,
174
+            !empty($this->std->observacao) ? $this->std->observacao : null,
175 175
             false
176 176
         );
177 177
 
178 178
         $infoAvPrevio->appendChild($detAvPrevio);
179 179
         $evtAvPrevio->appendChild($infoAvPrevio);
180 180
 
181
-        if (! empty($this->std->cancavprevio)) {
181
+        if (!empty($this->std->cancavprevio)) {
182 182
             $cancAvPrevio = $this->dom->createElement("cancAvPrevio");
183 183
             $this->dom->addChild(
184 184
                 $cancAvPrevio,
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             $this->dom->addChild(
190 190
                 $cancAvPrevio,
191 191
                 "observacao",
192
-                ! empty($this->std->cancavprevio->observacao) ? $this->std->cancavprevio->observacao : null,
192
+                !empty($this->std->cancavprevio->observacao) ? $this->std->cancavprevio->observacao : null,
193 193
                 false
194 194
             );
195 195
             $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/EvtMonit.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
                 $this->dom->addChild(
171 171
                     $exame,
172 172
                     "procRealizado",
173
-                    ! empty($exam->procrealizado) ? $exam->procrealizado : null,
173
+                    !empty($exam->procrealizado) ? $exam->procrealizado : null,
174 174
                     false
175 175
                 );
176 176
 
177 177
                 $this->dom->addChild(
178 178
                     $exame,
179 179
                     "obsProc",
180
-                    ! empty($exam->obsproc) ? $exam->obsproc : null,
180
+                    !empty($exam->obsproc) ? $exam->obsproc : null,
181 181
                     false
182 182
                 );
183 183
 
@@ -205,14 +205,14 @@  discard block
 block discarded – undo
205 205
                 $this->dom->addChild(
206 206
                     $exame,
207 207
                     "dtFimMonit",
208
-                    ! empty($exam->dtfimmonit) ? $exam->dtfimmonit : null,
208
+                    !empty($exam->dtfimmonit) ? $exam->dtfimmonit : null,
209 209
                     false
210 210
                 );
211 211
 
212 212
                 $this->dom->addChild(
213 213
                     $exame,
214 214
                     "indResult",
215
-                    ! empty($exam->indresult) ? $exam->indresult : null,
215
+                    !empty($exam->indresult) ? $exam->indresult : null,
216 216
                     false
217 217
                 );
218 218
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         $this->dom->addChild(
240 240
             $respMonit,
241 241
             "ufConsClasse",
242
-            ! empty($this->std->respmonit->ufconsclasse) ? $this->std->respmonit->ufconsclasse : null,
242
+            !empty($this->std->respmonit->ufconsclasse) ? $this->std->respmonit->ufconsclasse : null,
243 243
             false
244 244
         );
245 245
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         $this->dom->addChild(
251 251
             $ideServSaude,
252 252
             "codCNES",
253
-            ! empty($this->std->ideservsaude->codcnes) ? $this->std->ideservsaude->codcnes : null,
253
+            !empty($this->std->ideservsaude->codcnes) ? $this->std->ideservsaude->codcnes : null,
254 254
             false
255 255
         );
256 256
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         $this->dom->addChild(
265 265
             $ideServSaude,
266 266
             "email",
267
-            ! empty($this->std->ideservsaude->email) ? $this->std->ideservsaude->email : null,
267
+            !empty($this->std->ideservsaude->email) ? $this->std->ideservsaude->email : null,
268 268
             false
269 269
         );
270 270
 
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
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->dom->addChild(
72 72
             $ideEvento,
73 73
             "nrRecArqBase",
74
-            ! empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
74
+            !empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
75 75
             false
76 76
         );
77 77
         $this->dom->addChild(
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         );
92 92
         $this->node->appendChild($ideTrabalhador);
93 93
 
94
-        if (! empty($this->std->vrdeddep)) {
94
+        if (!empty($this->std->vrdeddep)) {
95 95
             $infoDep = $this->dom->createElement("infoDep");
96 96
             $this->dom->addChild(
97 97
                 $infoDep,
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $this->dom->addChild(
108 108
                 $infoIrrf,
109 109
                 "codCateg",
110
-                ! empty($nIrrf->codcateg) ? $nIrrf->codcateg : null,
110
+                !empty($nIrrf->codcateg) ? $nIrrf->codcateg : null,
111 111
                 false
112 112
             );
113 113
             $this->dom->addChild(
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 $this->dom->addChild(
170 170
                     $idePais,
171 171
                     "nifBenef",
172
-                    ! empty($nIrrf->idepgtoext->nifbenef) ? $nIrrf->idepgtoext->nifbenef : null,
172
+                    !empty($nIrrf->idepgtoext->nifbenef) ? $nIrrf->idepgtoext->nifbenef : null,
173 173
                     false
174 174
                 );
175 175
                 $idePgtoExt->appendChild($idePais);
@@ -184,19 +184,19 @@  discard block
 block discarded – undo
184 184
                 $this->dom->addChild(
185 185
                     $endExt,
186 186
                     "nrLograd",
187
-                    ! empty($nIrrf->idepgtoext->nrlograd) ? $nIrrf->idepgtoext->nrlograd : null,
187
+                    !empty($nIrrf->idepgtoext->nrlograd) ? $nIrrf->idepgtoext->nrlograd : null,
188 188
                     false
189 189
                 );
190 190
                 $this->dom->addChild(
191 191
                     $endExt,
192 192
                     "complem",
193
-                    ! empty($nIrrf->idepgtoext->complem) ? $nIrrf->idepgtoext->complem : null,
193
+                    !empty($nIrrf->idepgtoext->complem) ? $nIrrf->idepgtoext->complem : null,
194 194
                     false
195 195
                 );
196 196
                 $this->dom->addChild(
197 197
                     $endExt,
198 198
                     "bairro",
199
-                    ! empty($nIrrf->idepgtoext->bairro) ? $nIrrf->idepgtoext->bairro : null,
199
+                    !empty($nIrrf->idepgtoext->bairro) ? $nIrrf->idepgtoext->bairro : null,
200 200
                     false
201 201
                 );
202 202
                 $this->dom->addChild(
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                 $this->dom->addChild(
209 209
                     $endExt,
210 210
                     "codPostal",
211
-                    ! empty($nIrrf->idepgtoext->codpostal) ? $nIrrf->idepgtoext->codpostal : null,
211
+                    !empty($nIrrf->idepgtoext->codpostal) ? $nIrrf->idepgtoext->codpostal : null,
212 212
                     false
213 213
                 );
214 214
                 $idePgtoExt->appendChild($endExt);
Please login to merge, or discard this patch.
src/Factories/EvtIrrf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         $this->dom->addChild(
82 82
             $infoIrrf,
83 83
             "nrRecArqBase",
84
-            ! empty($this->std->infoirrf->nrrecarqbase) ? $this->std->infoirrf->nrrecarqbase : '',
84
+            !empty($this->std->infoirrf->nrrecarqbase) ? $this->std->infoirrf->nrrecarqbase : '',
85 85
             false
86 86
         );
87 87
         $this->dom->addChild(
Please login to merge, or discard this patch.
src/Factories/EvtAqProd.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         $this->dom->addChild(
94 94
             $ideEvento,
95 95
             "nrRecibo",
96
-            ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
96
+            !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null,
97 97
             false
98 98
         );
99 99
         $this->dom->addChild(
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                         $this->dom->addChild(
216 216
                             $nfs,
217 217
                             "serie",
218
-                            ! empty($prodnfs->serie) ? $prodnfs->serie : null,
218
+                            !empty($prodnfs->serie) ? $prodnfs->serie : null,
219 219
                             false
220 220
                         );
221 221
 
Please login to merge, or discard this patch.
src/Factories/EvtTabEstab.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $this->dom->addChild(
115 115
             $ideEstab,
116 116
             "fimValid",
117
-            ! empty($this->std->fimvalid) ? $this->std->fimvalid : null,
117
+            !empty($this->std->fimvalid) ? $this->std->fimvalid : null,
118 118
             false
119 119
         );
120 120
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
         $node->appendChild($ideEstab);
129 129
 
130
-        if (! empty($this->std->dadosestab)) {
130
+        if (!empty($this->std->dadosestab)) {
131 131
             $dadosEstab = $this->dom->createElement("dadosEstab");
132 132
             $this->dom->addChild(
133 133
                 $dadosEstab,
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 $this->std->dadosestab->aliqgilrat->aliqrat,
143 143
                 true
144 144
             );
145
-            $fap = ! empty($this->std->dadosestab->aliqgilrat->fap) ? $this->std->dadosestab->aliqgilrat->fap : null;
145
+            $fap = !empty($this->std->dadosestab->aliqgilrat->fap) ? $this->std->dadosestab->aliqgilrat->fap : null;
146 146
             if ($fap) {
147 147
                 $fap = number_format($fap, 4, '.', '');
148 148
             }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                 $fap,
153 153
                 false
154 154
             );
155
-            $aliqrata = ! empty($this->std->dadosestab->aliqgilrat->aliqratajust)
155
+            $aliqrata = !empty($this->std->dadosestab->aliqgilrat->aliqratajust)
156 156
                 ? $this->std->dadosestab->aliqgilrat->aliqratajust
157 157
                 : null;
158 158
             if ($aliqrata) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                 $aliqrata,
165 165
                 false
166 166
             );
167
-            if (! empty($this->std->dadosestab->aliqgilrat->procadmjudrat)) {
167
+            if (!empty($this->std->dadosestab->aliqgilrat->procadmjudrat)) {
168 168
                 $procAdmJudRat = $this->dom->createElement("procAdmJudRat");
169 169
                 $this->dom->addChild(
170 170
                     $procAdmJudRat,
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
                 );
187 187
                 $aliqGilrat->appendChild($procAdmJudRat);
188 188
             }
189
-            if (! empty($this->std->dadosestab->aliqgilrat->procadmjudfap)) {
189
+            if (!empty($this->std->dadosestab->aliqgilrat->procadmjudfap)) {
190 190
                 $procAdmJudFap = $this->dom->createElement("procAdmJudFap");
191 191
                 $this->dom->addChild(
192 192
                     $procAdmJudFap,
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             }
211 211
             $dadosEstab->appendChild($aliqGilrat);
212 212
 
213
-            if (! empty($this->std->dadosestab->infocaepf)) {
213
+            if (!empty($this->std->dadosestab->infocaepf)) {
214 214
                 $infoCaepf = $this->dom->createElement("infoCaepf");
215 215
                 $this->dom->addChild(
216 216
                     $infoCaepf,
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
                 $dadosEstab->appendChild($infoCaepf);
222 222
             }
223 223
 
224
-            if (! empty($this->std->dadosestab->infoobra)) {
224
+            if (!empty($this->std->dadosestab->infoobra)) {
225 225
                 $infoObra = $this->dom->createElement("infoObra");
226 226
                 $this->dom->addChild(
227 227
                     $infoObra,
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             $this->dom->addChild(
251 251
                 $infoApr,
252 252
                 "nrProcJud",
253
-                ! empty($this->std->dadosestab->infotrab->infoapr->nrprocjud)
253
+                !empty($this->std->dadosestab->infotrab->infoapr->nrprocjud)
254 254
                     ? $this->std->dadosestab->infotrab->infoapr->nrprocjud
255 255
                     : null,
256 256
                 false
@@ -258,13 +258,13 @@  discard block
 block discarded – undo
258 258
             $this->dom->addChild(
259 259
                 $infoApr,
260 260
                 "contEntEd",
261
-                ! empty($this->std->dadosestab->infotrab->infoapr->contented)
261
+                !empty($this->std->dadosestab->infotrab->infoapr->contented)
262 262
                     ? $this->std->dadosestab->infotrab->infoapr->contented
263 263
                     : null,
264 264
                 false
265 265
             );
266 266
 
267
-            if (! empty($this->std->dadosestab->infotrab->infoapr->infoenteduc)) {
267
+            if (!empty($this->std->dadosestab->infotrab->infoapr->infoenteduc)) {
268 268
                 foreach ($this->std->dadosestab->infotrab->infoapr->infoenteduc as $edu) {
269 269
                     $infoEntEduc = $this->dom->createElement("infoEntEduc");
270 270
                     $this->dom->addChild(
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             }
279 279
 
280 280
             $infoTrab->appendChild($infoApr);
281
-            if (! empty($this->std->dadosestab->infotrab->infopdc)) {
281
+            if (!empty($this->std->dadosestab->infotrab->infopdc)) {
282 282
                 $infoPCD = $this->dom->createElement("infoPCD");
283 283
                 $this->dom->addChild(
284 284
                     $infoPCD,
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
                 $this->dom->addChild(
290 290
                     $infoPCD,
291 291
                     "nrProcJud",
292
-                    ! empty($this->std->dadosestab->infotrab->infopdc->nrprocjud)
292
+                    !empty($this->std->dadosestab->infotrab->infopdc->nrprocjud)
293 293
                         ? $this->std->dadosestab->infotrab->infopdc->nrprocjud
294 294
                         : null,
295 295
                     false
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
             $node->appendChild($dadosEstab);
301 301
         }
302 302
 
303
-        if (! empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
303
+        if (!empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
304 304
             $newVal       = $this->std->novavalidade;
305 305
             $novaValidade = $this->dom->createElement("novaValidade");
306 306
             $this->dom->addChild(
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             $this->dom->addChild(
313 313
                 $ideRubrica,
314 314
                 "fimValid",
315
-                ! empty($newVal->fimvalid) ? $newVal->fimvalid : null,
315
+                !empty($newVal->fimvalid) ? $newVal->fimvalid : null,
316 316
                 false
317 317
             );
318 318
             $node->appendChild($novaValidade);
Please login to merge, or discard this patch.
src/Factories/EvtTabProcesso.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
         $this->dom->addChild(
115 115
             $ide,
116 116
             "fimValid",
117
-            ! empty($this->std->fimvalid) ? $this->std->fimvalid : null,
117
+            !empty($this->std->fimvalid) ? $this->std->fimvalid : null,
118 118
             false
119 119
         );
120 120
         //seleção do modo
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         $this->dom->addChild(
132 132
             $dados,
133 133
             "indAutoria",
134
-            ! empty($this->std->dadosproc->indautoria)
134
+            !empty($this->std->dadosproc->indautoria)
135 135
                 ? $this->std->dadosproc->indautoria
136 136
                 : null,
137 137
             false
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
             $this->std->dadosproc->indmatproc,
143 143
             true
144 144
         );
145
-        if (! empty($this->std->dadosproc->dadosprocjud)) {
145
+        if (!empty($this->std->dadosproc->dadosprocjud)) {
146 146
             $dadosProcJud = $this->dom->createElement("dadosProcJud");
147 147
             $this->dom->addChild(
148 148
                 $dadosProcJud,
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             );
165 165
             $dados->appendChild($dadosProcJud);
166 166
         }
167
-        if (! empty($this->std->dadosproc->infosusp)) {
167
+        if (!empty($this->std->dadosproc->infosusp)) {
168 168
             foreach ($this->std->dadosproc->infosusp as $susp) {
169 169
                 $infoSusp = $this->dom->createElement("infoSusp");
170 170
                 $this->dom->addChild(
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         }
197 197
         $node->appendChild($dados);
198 198
 
199
-        if (! empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
199
+        if (!empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
200 200
             $newVal       = $this->std->novavalidade;
201 201
             $novaValidade = $this->dom->createElement("novaValidade");
202 202
             $this->dom->addChild(
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             $this->dom->addChild(
209 209
                 $ideRubrica,
210 210
                 "fimValid",
211
-                ! empty($newVal->fimvalid) ? $newVal->fimvalid : null,
211
+                !empty($newVal->fimvalid) ? $newVal->fimvalid : null,
212 212
                 false
213 213
             );
214 214
             $node->appendChild($novaValidade);
Please login to merge, or discard this patch.
src/Factories/EvtBasesTrab.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->dom->addChild(
72 72
             $ideEvento,
73 73
             "nrRecArqBase",
74
-            ! empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
74
+            !empty($this->std->nrrecarqbase) ? $this->std->nrrecarqbase : null,
75 75
             false
76 76
         );
77 77
         $this->dom->addChild(
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 $this->dom->addChild(
167 167
                     $infoCategIncid,
168 168
                     "matricula",
169
-                    ! empty($infocat->matricula) ? $infocat->matricula : null,
169
+                    !empty($infocat->matricula) ? $infocat->matricula : null,
170 170
                     false
171 171
                 );
172 172
                 $this->dom->addChild(
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                 $this->dom->addChild(
179 179
                     $infoCategIncid,
180 180
                     "indSimples",
181
-                    ! empty($infocat->indsimples) ? $infocat->indsimples : null,
181
+                    !empty($infocat->indsimples) ? $infocat->indsimples : null,
182 182
                     false
183 183
                 );
184 184
                 foreach ($infocat->infobasecs as $infobase) {
Please login to merge, or discard this patch.