Passed
Pull Request — master (#272)
by
unknown
01:58
created
src/Factories/EvtExclusao.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $this->std->infoexclusao->nrrecevt,
103 103
             true
104 104
         );
105
-        if (! empty($this->std->idetrabalhador)) {
105
+        if (!empty($this->std->idetrabalhador)) {
106 106
             $ideTrabalhador = $this->dom->createElement("ideTrabalhador");
107 107
             $this->dom->addChild(
108 108
                 $ideTrabalhador,
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
             $this->dom->addChild(
114 114
                 $ideTrabalhador,
115 115
                 "nisTrab",
116
-                ! empty($this->std->idetrabalhador->nistrab) ? $this->std->idetrabalhador->nistrab : null,
116
+                !empty($this->std->idetrabalhador->nistrab) ? $this->std->idetrabalhador->nistrab : null,
117 117
                 false
118 118
             );
119 119
             $infoExclusao->appendChild($ideTrabalhador);
120 120
         }
121
-        if (! empty($this->std->idefolhapagto)) {
121
+        if (!empty($this->std->idefolhapagto)) {
122 122
             $ideFolhaPagto = $this->dom->createElement("ideFolhaPagto");
123 123
             $this->dom->addChild(
124 124
                 $ideFolhaPagto,
Please login to merge, or discard this patch.
src/Factories/EvtConvInterm.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/Tools.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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',
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             'S-1070',
100 100
             'S-1080',
101 101
         ],
102
-        2 => [ //EVENTOS NÃO PERIÓDICOS grupo [2]
102
+        2 => [//EVENTOS NÃO PERIÓDICOS grupo [2]
103 103
             'S-2190',
104 104
             'S-2200',
105 105
             'S-2205',
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             'S-5012',
128 128
             'S-5013',
129 129
         ],
130
-        3 => [ //EVENTOS PERIÓDICOS grupo [3]
130
+        3 => [//EVENTOS PERIÓDICOS grupo [3]
131 131
             'S-1200',
132 132
             'S-1202',
133 133
             'S-1207',
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $this->certificate = $certificate;
170 170
         $this->path = realpath(__DIR__ . '/../../') . '/';
171 171
         $this->serviceXsd = XsdSeeker::seek(
172
-            $this->path."schemes/comunicacao/$this->serviceStr/"
172
+            $this->path . "schemes/comunicacao/$this->serviceStr/"
173 173
         );
174 174
     }
175 175
 
Please login to merge, or discard this patch.
src/Tools.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -662,6 +662,9 @@
 block discarded – undo
662 662
         }
663 663
     }
664 664
     
665
+    /**
666
+     * @param string $request
667
+     */
665 668
     protected function sign($request)
666 669
     {
667 670
         return str_replace(
Please login to merge, or discard this patch.
src/Factories/EvtTabRubrica.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $this->dom->addChild(
114 114
             $ideRubrica,
115 115
             "fimValid",
116
-            ! empty($this->std->fimvalid) ? $this->std->fimvalid : null,
116
+            !empty($this->std->fimvalid) ? $this->std->fimvalid : null,
117 117
             false
118 118
         );
119 119
         //seleção do modo
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         }
127 127
         $node->appendChild($ideRubrica);
128 128
 
129
-        if (! empty($this->std->dadosrubrica)) {
129
+        if (!empty($this->std->dadosrubrica)) {
130 130
             $dadosRubrica = $this->dom->createElement("dadosRubrica");
131 131
             $this->dom->addChild(
132 132
                 $dadosRubrica,
@@ -173,13 +173,13 @@  discard block
 block discarded – undo
173 173
             $this->dom->addChild(
174 174
                 $dadosRubrica,
175 175
                 "observacao",
176
-                ! empty($this->std->dadosrubrica->observacao)
176
+                !empty($this->std->dadosrubrica->observacao)
177 177
                     ? $this->std->dadosrubrica->observacao
178 178
                     : null,
179 179
                 false
180 180
             );
181 181
 
182
-            if (! empty($this->std->dadosrubrica->ideprocessocp)) {
182
+            if (!empty($this->std->dadosrubrica->ideprocessocp)) {
183 183
                 foreach ($this->std->dadosrubrica->ideprocessocp as $cp) {
184 184
                     $ideProcessoCP = $this->dom->createElement("ideProcessoCP");
185 185
                     $this->dom->addChild(
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 }
211 211
             }
212 212
 
213
-            if (! empty($this->std->dadosrubrica->ideprocessoirrf)) {
213
+            if (!empty($this->std->dadosrubrica->ideprocessoirrf)) {
214 214
                 foreach ($this->std->dadosrubrica->ideprocessoirrf as $irrf) {
215 215
                     $ideProcessoIRRF = $this->dom->createElement("ideProcessoIRRF");
216 216
                     $this->dom->addChild(
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
                     $dadosRubrica->appendChild($ideProcessoIRRF);
229 229
                 }
230 230
             }
231
-            if (! empty($this->std->dadosrubrica->ideprocessofgts)) {
231
+            if (!empty($this->std->dadosrubrica->ideprocessofgts)) {
232 232
                 foreach ($this->std->dadosrubrica->ideprocessofgts as $fgts) {
233 233
                     $ideProcessoFGTS = $this->dom->createElement("ideProcessoFGTS");
234 234
                     $this->dom->addChild(
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                     $dadosRubrica->appendChild($ideProcessoFGTS);
241 241
                 }
242 242
             }
243
-            if (! empty($this->std->dadosrubrica->ideprocessosind)) {
243
+            if (!empty($this->std->dadosrubrica->ideprocessosind)) {
244 244
                 foreach ($this->std->dadosrubrica->ideprocessosind as $sind) {
245 245
                     $ideProcessoSIND = $this->dom->createElement("ideProcessoSIND");
246 246
                     $this->dom->addChild(
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
             }
255 255
             $node->appendChild($dadosRubrica);
256 256
         }
257
-        if (! empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
257
+        if (!empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
258 258
             $newVal = $this->std->novavalidade;
259 259
             $novaValidade = $this->dom->createElement("novaValidade");
260 260
             $this->dom->addChild(
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             $this->dom->addChild(
267 267
                 $novaValidade,
268 268
                 "fimValid",
269
-                ! empty($newVal->fimvalid) ? $newVal->fimvalid : null,
269
+                !empty($newVal->fimvalid) ? $newVal->fimvalid : null,
270 270
                 false
271 271
             );
272 272
             $node->appendChild($novaValidade);
Please login to merge, or discard this patch.
src/Factories/EvtInfoEmpregador.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
             );
251 251
             $infoCadastro->appendChild($info);
252 252
         }
253
-        if (isset($this->std->infoop)  && !empty($infoCadastro)) {
254
-            $cad  = $this->std->infoop;
253
+        if (isset($this->std->infoop) && !empty($infoCadastro)) {
254
+            $cad = $this->std->infoop;
255 255
             $infoOP = $this->dom->createElement("infoOP");
256 256
             $this->dom->addChild(
257 257
                 $infoOP,
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                 true
261 261
             );
262 262
             if (isset($this->std->infoefr)) {
263
-                $cad  = $this->std->infoefr;
263
+                $cad = $this->std->infoefr;
264 264
                 $infoEFR = $this->dom->createElement("infoEFR");
265 265
                 $this->dom->addChild(
266 266
                     $infoEFR,
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                 $infoOP->appendChild($infoEFR);
278 278
             }
279 279
             if (isset($this->std->infoente)) {
280
-                $cad  = $this->std->infoente;
280
+                $cad = $this->std->infoente;
281 281
                 $infoEnte = $this->dom->createElement("infoEnte");
282 282
                 $this->dom->addChild(
283 283
                     $infoEnte,
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
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $this->dom->addChild(
118 118
             $ideEstab,
119 119
             "fimValid",
120
-            ! empty($this->std->fimvalid) ? $this->std->fimvalid : null,
120
+            !empty($this->std->fimvalid) ? $this->std->fimvalid : null,
121 121
             false
122 122
         );
123 123
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         }
131 131
         $node->appendChild($ideEstab);
132 132
 
133
-        if (! empty($this->std->dadosestab)) {
133
+        if (!empty($this->std->dadosestab)) {
134 134
             $dadosEstab = $this->dom->createElement("dadosEstab");
135 135
             $this->dom->addChild(
136 136
                 $dadosEstab,
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                 $this->std->dadosestab->aliqgilrat->aliqrat,
146 146
                 true
147 147
             );
148
-            $fap = ! empty($this->std->dadosestab->aliqgilrat->fap) ? $this->std->dadosestab->aliqgilrat->fap : null;
148
+            $fap = !empty($this->std->dadosestab->aliqgilrat->fap) ? $this->std->dadosestab->aliqgilrat->fap : null;
149 149
             if ($fap) {
150 150
                 $fap = number_format($fap, 4, '.', '');
151 151
             }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 $fap,
156 156
                 false
157 157
             );
158
-            $aliqrata = ! empty($this->std->dadosestab->aliqgilrat->aliqratajust)
158
+            $aliqrata = !empty($this->std->dadosestab->aliqgilrat->aliqratajust)
159 159
                 ? $this->std->dadosestab->aliqgilrat->aliqratajust
160 160
                 : null;
161 161
             if ($aliqrata) {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                 $aliqrata,
168 168
                 false
169 169
             );
170
-            if (! empty($this->std->dadosestab->aliqgilrat->procadmjudrat)) {
170
+            if (!empty($this->std->dadosestab->aliqgilrat->procadmjudrat)) {
171 171
                 $procAdmJudRat = $this->dom->createElement("procAdmJudRat");
172 172
                 $this->dom->addChild(
173 173
                     $procAdmJudRat,
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                 );
190 190
                 $aliqGilrat->appendChild($procAdmJudRat);
191 191
             }
192
-            if (! empty($this->std->dadosestab->aliqgilrat->procadmjudfap)) {
192
+            if (!empty($this->std->dadosestab->aliqgilrat->procadmjudfap)) {
193 193
                 $procAdmJudFap = $this->dom->createElement("procAdmJudFap");
194 194
                 $this->dom->addChild(
195 195
                     $procAdmJudFap,
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             }
214 214
             $dadosEstab->appendChild($aliqGilrat);
215 215
 
216
-            if (! empty($this->std->dadosestab->infocaepf)) {
216
+            if (!empty($this->std->dadosestab->infocaepf)) {
217 217
                 $infoCaepf = $this->dom->createElement("infoCaepf");
218 218
                 $this->dom->addChild(
219 219
                     $infoCaepf,
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                 $dadosEstab->appendChild($infoCaepf);
225 225
             }
226 226
 
227
-            if (! empty($this->std->dadosestab->infoobra)) {
227
+            if (!empty($this->std->dadosestab->infoobra)) {
228 228
                 $infoObra = $this->dom->createElement("infoObra");
229 229
                 $this->dom->addChild(
230 230
                     $infoObra,
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             $this->dom->addChild(
254 254
                 $infoApr,
255 255
                 "nrProcJud",
256
-                ! empty($this->std->dadosestab->infotrab->infoapr->nrprocjud)
256
+                !empty($this->std->dadosestab->infotrab->infoapr->nrprocjud)
257 257
                     ? $this->std->dadosestab->infotrab->infoapr->nrprocjud
258 258
                     : null,
259 259
                 false
@@ -261,13 +261,13 @@  discard block
 block discarded – undo
261 261
             $this->dom->addChild(
262 262
                 $infoApr,
263 263
                 "contEntEd",
264
-                ! empty($this->std->dadosestab->infotrab->infoapr->contented)
264
+                !empty($this->std->dadosestab->infotrab->infoapr->contented)
265 265
                     ? $this->std->dadosestab->infotrab->infoapr->contented
266 266
                     : null,
267 267
                 false
268 268
             );
269 269
 
270
-            if (! empty($this->std->dadosestab->infotrab->infoapr->infoenteduc)) {
270
+            if (!empty($this->std->dadosestab->infotrab->infoapr->infoenteduc)) {
271 271
                 foreach ($this->std->dadosestab->infotrab->infoapr->infoenteduc as $edu) {
272 272
                     $infoEntEduc = $this->dom->createElement("infoEntEduc");
273 273
                     $this->dom->addChild(
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
             }
282 282
 
283 283
             $infoTrab->appendChild($infoApr);
284
-            if (! empty($this->std->dadosestab->infotrab->infopdc)) {
284
+            if (!empty($this->std->dadosestab->infotrab->infopdc)) {
285 285
                 $infoPCD = $this->dom->createElement("infoPCD");
286 286
                 $this->dom->addChild(
287 287
                     $infoPCD,
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
                 $this->dom->addChild(
293 293
                     $infoPCD,
294 294
                     "nrProcJud",
295
-                    ! empty($this->std->dadosestab->infotrab->infopdc->nrprocjud)
295
+                    !empty($this->std->dadosestab->infotrab->infopdc->nrprocjud)
296 296
                         ? $this->std->dadosestab->infotrab->infopdc->nrprocjud
297 297
                         : null,
298 298
                     false
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             $node->appendChild($dadosEstab);
304 304
         }
305 305
 
306
-        if (! empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
306
+        if (!empty($this->std->novavalidade) && $this->std->modo == 'ALT') {
307 307
             $newVal = $this->std->novavalidade;
308 308
             $novaValidade = $this->dom->createElement("novaValidade");
309 309
             $this->dom->addChild(
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             $this->dom->addChild(
316 316
                 $novaValidade,
317 317
                 "fimValid",
318
-                ! empty($newVal->fimvalid) ? $newVal->fimvalid : null,
318
+                !empty($newVal->fimvalid) ? $newVal->fimvalid : null,
319 319
                 false
320 320
             );
321 321
             $node->appendChild($novaValidade);
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
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         );
129 129
         $this->node->appendChild($ideVinculo);
130 130
         $infoAfastamento = $this->dom->createElement("infoAfastamento");
131
-        if (! empty($this->std->iniafastamento)) {
131
+        if (!empty($this->std->iniafastamento)) {
132 132
             $iniAfastamento = $this->dom->createElement("iniAfastamento");
133 133
             $this->dom->addChild(
134 134
                 $iniAfastamento,
@@ -145,19 +145,19 @@  discard block
 block discarded – undo
145 145
             $this->dom->addChild(
146 146
                 $iniAfastamento,
147 147
                 "infoMesmoMtv",
148
-                ! empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null,
148
+                !empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null,
149 149
                 false
150 150
             );
151 151
             $this->dom->addChild(
152 152
                 $iniAfastamento,
153 153
                 "tpAcidTransito",
154
-                ! empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null,
154
+                !empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null,
155 155
                 false
156 156
             );
157 157
             $this->dom->addChild(
158 158
                 $iniAfastamento,
159 159
                 "observacao",
160
-                ! empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null,
160
+                !empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null,
161 161
                 false
162 162
             );
163 163
             if (isset($this->std->iniafastamento->infoatestado)) {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                     $this->dom->addChild(
167 167
                         $infoAtestado,
168 168
                         "codCID",
169
-                        ! empty($info->codcid) ? $info->codcid : null,
169
+                        !empty($info->codcid) ? $info->codcid : null,
170 170
                         false
171 171
                     );
172 172
                     $this->dom->addChild(
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                         $this->dom->addChild(
200 200
                             $emitente,
201 201
                             "ufOC",
202
-                            ! empty($info->emitente->ufoc) ? $info->emitente->ufoc : null,
202
+                            !empty($info->emitente->ufoc) ? $info->emitente->ufoc : null,
203 203
                             false
204 204
                         );
205 205
                         $infoAtestado->appendChild($emitente);
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                     $iniAfastamento->appendChild($infoAtestado);
208 208
                 }
209 209
             }
210
-            if (! empty($this->std->infocessao)) {
210
+            if (!empty($this->std->infocessao)) {
211 211
                 $infoCessao = $this->dom->createElement("infoCessao");
212 212
                 $this->dom->addChild(
213 213
                     $infoCessao,
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 );
224 224
                 $iniAfastamento->appendChild($infoCessao);
225 225
             }
226
-            if (! empty($this->std->infomandsind)) {
226
+            if (!empty($this->std->infomandsind)) {
227 227
                 $infoMandSind = $this->dom->createElement("infoMandSind");
228 228
                 $this->dom->addChild(
229 229
                     $infoMandSind,
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             }
242 242
             $infoAfastamento->appendChild($iniAfastamento);
243 243
         }
244
-        if (! empty($this->std->inforetif)) {
244
+        if (!empty($this->std->inforetif)) {
245 245
             $infoRetif = $this->dom->createElement("infoRetif");
246 246
             $this->dom->addChild(
247 247
                 $infoRetif,
@@ -258,12 +258,12 @@  discard block
 block discarded – undo
258 258
             $this->dom->addChild(
259 259
                 $infoRetif,
260 260
                 "nrProc",
261
-                ! empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null,
261
+                !empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null,
262 262
                 false
263 263
             );
264 264
             $infoAfastamento->appendChild($infoRetif);
265 265
         }
266
-        if (! empty($this->std->fimafastamento)) {
266
+        if (!empty($this->std->fimafastamento)) {
267 267
             $fimAfastamento = $this->dom->createElement("fimAfastamento");
268 268
             $this->dom->addChild(
269 269
                 $fimAfastamento,
Please login to merge, or discard this patch.