@@ -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( |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->dom->addChild( |
| 106 | 106 | $ide, |
| 107 | 107 | "fimValid", |
| 108 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 108 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 109 | 109 | false |
| 110 | 110 | ); |
| 111 | 111 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $this->dom->addChild( |
| 172 | 172 | $nova, |
| 173 | 173 | "fimValid", |
| 174 | - ! empty($this->std->novavalidade->fimvalid) |
|
| 174 | + !empty($this->std->novavalidade->fimvalid) |
|
| 175 | 175 | ? $this->std->novavalidade->fimvalid |
| 176 | 176 | : null, |
| 177 | 177 | false |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->dom->addChild( |
| 106 | 106 | $ide, |
| 107 | 107 | "fimValid", |
| 108 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 108 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 109 | 109 | false |
| 110 | 110 | ); |
| 111 | 111 | |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $this->dom->addChild( |
| 172 | 172 | $nova, |
| 173 | 173 | "fimValid", |
| 174 | - ! empty($this->std->novavalidade->fimvalid) |
|
| 174 | + !empty($this->std->novavalidade->fimvalid) |
|
| 175 | 175 | ? $this->std->novavalidade->fimvalid |
| 176 | 176 | : null, |
| 177 | 177 | false |
@@ -123,7 +123,7 @@ |
||
| 123 | 123 | $this->dom->addChild( |
| 124 | 124 | $ide, |
| 125 | 125 | "email", |
| 126 | - ! empty($this->std->email) ? $this->std->email : null, |
|
| 126 | + !empty($this->std->email) ? $this->std->email : null, |
|
| 127 | 127 | false |
| 128 | 128 | ); |
| 129 | 129 | $this->node->appendChild($ide); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->dom->addChild( |
| 106 | 106 | $ide, |
| 107 | 107 | "fimValid", |
| 108 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 108 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 109 | 109 | false |
| 110 | 110 | ); |
| 111 | 111 | $dados = null; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $this->dom->addChild( |
| 160 | 160 | $nova, |
| 161 | 161 | "fimValid", |
| 162 | - ! empty($this->std->novavalidade->fimvalid) |
|
| 162 | + !empty($this->std->novavalidade->fimvalid) |
|
| 163 | 163 | ? $this->std->novavalidade->fimvalid |
| 164 | 164 | : null, |
| 165 | 165 | false |
@@ -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 | } |