| @@ -22,7 +22,7 @@ | ||
| 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 | } | 
| @@ -65,7 +65,7 @@ | ||
| 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, | 
| @@ -65,7 +65,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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( | 
| @@ -65,7 +65,7 @@ | ||
| 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, | 
| @@ -134,7 +134,7 @@ discard block | ||
| 134 | 134 | $this->dom->addChild( | 
| 135 | 135 | $ideVinculo, | 
| 136 | 136 | "codCateg", | 
| 137 | - ! empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null, | |
| 137 | + !empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null, | |
| 138 | 138 | false | 
| 139 | 139 | ); | 
| 140 | 140 | $this->node->appendChild($ideVinculo); | 
| @@ -160,21 +160,21 @@ discard block | ||
| 160 | 160 | $this->dom->addChild( | 
| 161 | 161 | $iniAfastamento, | 
| 162 | 162 | "infoMesmoMtv", | 
| 163 | - ! empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null, | |
| 163 | + !empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null, | |
| 164 | 164 | false | 
| 165 | 165 | ); | 
| 166 | 166 | |
| 167 | 167 | $this->dom->addChild( | 
| 168 | 168 | $iniAfastamento, | 
| 169 | 169 | "tpAcidTransito", | 
| 170 | - ! empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null, | |
| 170 | + !empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null, | |
| 171 | 171 | false | 
| 172 | 172 | ); | 
| 173 | 173 | |
| 174 | 174 | $this->dom->addChild( | 
| 175 | 175 | $iniAfastamento, | 
| 176 | 176 | "observacao", | 
| 177 | - ! empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null, | |
| 177 | + !empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null, | |
| 178 | 178 | false | 
| 179 | 179 | ); | 
| 180 | 180 | |
| @@ -185,7 +185,7 @@ discard block | ||
| 185 | 185 | $this->dom->addChild( | 
| 186 | 186 | $infoAtestado, | 
| 187 | 187 | "codCID", | 
| 188 | - ! empty($info->codcid) ? $info->codcid : null, | |
| 188 | + !empty($info->codcid) ? $info->codcid : null, | |
| 189 | 189 | false | 
| 190 | 190 | ); | 
| 191 | 191 | |
| @@ -223,7 +223,7 @@ discard block | ||
| 223 | 223 | $this->dom->addChild( | 
| 224 | 224 | $emitente, | 
| 225 | 225 | "ufOC", | 
| 226 | - ! empty($info->emitente->ufoc) ? $info->emitente->ufoc : null, | |
| 226 | + !empty($info->emitente->ufoc) ? $info->emitente->ufoc : null, | |
| 227 | 227 | false | 
| 228 | 228 | ); | 
| 229 | 229 | |
| @@ -234,7 +234,7 @@ discard block | ||
| 234 | 234 | } | 
| 235 | 235 | } | 
| 236 | 236 | |
| 237 | -        if (! empty($this->std->infocessao)) { | |
| 237 | +        if (!empty($this->std->infocessao)) { | |
| 238 | 238 |              $infoCessao = $this->dom->createElement("infoCessao"); | 
| 239 | 239 | |
| 240 | 240 | $this->dom->addChild( | 
| @@ -254,7 +254,7 @@ discard block | ||
| 254 | 254 | $iniAfastamento->appendChild($infoCessao); | 
| 255 | 255 | } | 
| 256 | 256 | |
| 257 | -        if (! empty($this->std->infomandsind)) { | |
| 257 | +        if (!empty($this->std->infomandsind)) { | |
| 258 | 258 |              $infoMandSind = $this->dom->createElement("infoMandSind"); | 
| 259 | 259 | |
| 260 | 260 | $this->dom->addChild( | 
| @@ -276,7 +276,7 @@ discard block | ||
| 276 | 276 | |
| 277 | 277 | $infoAfastamento->appendChild($iniAfastamento); | 
| 278 | 278 | |
| 279 | -        if (! empty($this->std->inforetif)) { | |
| 279 | +        if (!empty($this->std->inforetif)) { | |
| 280 | 280 |              $infoRetif = $this->dom->createElement("infoRetif"); | 
| 281 | 281 | |
| 282 | 282 | $this->dom->addChild( | 
| @@ -296,14 +296,14 @@ discard block | ||
| 296 | 296 | $this->dom->addChild( | 
| 297 | 297 | $infoRetif, | 
| 298 | 298 | "nrProc", | 
| 299 | - ! empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null, | |
| 299 | + !empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null, | |
| 300 | 300 | false | 
| 301 | 301 | ); | 
| 302 | 302 | |
| 303 | 303 | $infoAfastamento->appendChild($infoRetif); | 
| 304 | 304 | } | 
| 305 | 305 | |
| 306 | -        if (! empty($this->std->fimafastamento)) { | |
| 306 | +        if (!empty($this->std->fimafastamento)) { | |
| 307 | 307 |              $fimAfastamento = $this->dom->createElement("fimAfastamento"); | 
| 308 | 308 | |
| 309 | 309 | $this->dom->addChild( | 
| @@ -170,14 +170,14 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | |
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | $this->dom->addChild( | 
| 91 | 91 | $idePeriodo, | 
| 92 | 92 | "fimValid", | 
| 93 | - ! empty($this->std->ideperiodo->fimvalid) ? $this->std->ideperiodo->fimvalid : '', | |
| 93 | + !empty($this->std->ideperiodo->fimvalid) ? $this->std->ideperiodo->fimvalid : '', | |
| 94 | 94 | false | 
| 95 | 95 | ); | 
| 96 | 96 | |
| @@ -232,7 +232,7 @@ discard block | ||
| 232 | 232 | $this->dom->addChild( | 
| 233 | 233 | $info, | 
| 234 | 234 | "foneFixo", | 
| 235 | - ! empty($cad->foneFixo) ? $cad->foneFixo : '', | |
| 235 | + !empty($cad->foneFixo) ? $cad->foneFixo : '', | |
| 236 | 236 | false | 
| 237 | 237 | ); | 
| 238 | 238 | $this->dom->addChild( | 
| @@ -71,7 +71,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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); | 
| @@ -65,7 +65,7 @@ | ||
| 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, |