@@ -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 | } |
@@ -81,7 +81,7 @@ |
||
| 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( |
@@ -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( |
@@ -166,7 +166,7 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $this->dom->addChild( |
| 78 | 78 | $ideEvento, |
| 79 | 79 | "nrRecibo", |
| 80 | - ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
| 80 | + !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
| 81 | 81 | false |
| 82 | 82 | ); |
| 83 | 83 | $this->dom->addChild( |
@@ -131,13 +131,13 @@ discard block |
||
| 131 | 131 | $this->dom->addChild( |
| 132 | 132 | $infoReintegr, |
| 133 | 133 | "nrProcJud", |
| 134 | - ! empty($this->std->nrprocjud) ? $this->std->nrprocjud : null, |
|
| 134 | + !empty($this->std->nrprocjud) ? $this->std->nrprocjud : null, |
|
| 135 | 135 | false |
| 136 | 136 | ); |
| 137 | 137 | $this->dom->addChild( |
| 138 | 138 | $infoReintegr, |
| 139 | 139 | "nrLeiAnistia", |
| 140 | - ! empty($this->std->nrleianistia) ? $this->std->nrleianistia : null, |
|
| 140 | + !empty($this->std->nrleianistia) ? $this->std->nrleianistia : null, |
|
| 141 | 141 | false |
| 142 | 142 | ); |
| 143 | 143 | $this->dom->addChild( |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | public static function prettyPrint($response, $save = '') |
| 14 | 14 | { |
| 15 | 15 | $std = json_decode($response); |
| 16 | - if (! empty($save)) { |
|
| 16 | + if (!empty($save)) { |
|
| 17 | 17 | file_put_contents( |
| 18 | 18 | "$save.xml", |
| 19 | 19 | $std->body |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $html .= $std->header; |
| 47 | 47 | $html .= "<br>"; |
| 48 | 48 | $html .= '<h2>namespaces</h2>'; |
| 49 | - $an = json_decode(json_encode($std->namespaces), true); |
|
| 49 | + $an = json_decode(json_encode($std->namespaces), true); |
|
| 50 | 50 | foreach ($an as $key => $nam) { |
| 51 | 51 | $html .= "[$key] => $nam <br>"; |
| 52 | 52 | } |
@@ -194,7 +194,7 @@ |
||
| 194 | 194 | } |
| 195 | 195 | foreach ($eventos as $evt) { |
| 196 | 196 | //verifica se o evento pertence ao grupo indicado |
| 197 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 197 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 198 | 198 | throw new RuntimeException( |
| 199 | 199 | 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
| 200 | 200 | . $this->eventGroup[$grupo] . ' ].' |
@@ -76,7 +76,7 @@ |
||
| 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( |
@@ -76,7 +76,7 @@ |
||
| 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( |
@@ -69,7 +69,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |