@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\Common\Certificate; |
| 19 | 19 | use NFePHP\eSocial\Common\Factory; |
| 20 | -use NFePHP\eSocial\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -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 |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | protected function toNode() |
| 63 | 63 | { |
| 64 | - $ideEmpregador = $this->node->getElementsByTagName('ideEmpregador')->item(0); |
|
| 64 | + $ideEmpregador = $this->node->getElementsByTagName('ideEmpregador')->item(0); |
|
| 65 | 65 | //o idEvento pode variar de evento para evento |
| 66 | 66 | //então cada factory individualmente terá de construir o seu |
| 67 | 67 | $ideEvento = $this->dom->createElement("ideEvento"); |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | $this->dom->addChild( |
| 101 | 101 | $ide, |
| 102 | 102 | "fimValid", |
| 103 | - ! empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 103 | + !empty($this->std->fimvalid) ? $this->std->fimvalid : null, |
|
| 104 | 104 | false |
| 105 | 105 | ); |
| 106 | 106 | $dados = ''; |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $this->dom->addChild( |
| 139 | 139 | $nova, |
| 140 | 140 | "fimValid", |
| 141 | - ! empty($this->std->novavalidade->fimvalid) |
|
| 141 | + !empty($this->std->novavalidade->fimvalid) |
|
| 142 | 142 | ? $this->std->novavalidade->fimvalid |
| 143 | 143 | : null, |
| 144 | 144 | false |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\Common\Certificate; |
| 19 | 19 | use NFePHP\eSocial\Common\Factory; |
| 20 | -use NFePHP\eSocial\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -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); |
@@ -285,8 +285,7 @@ |
||
| 285 | 285 | $this->dom->addChild( |
| 286 | 286 | $instEnsino, |
| 287 | 287 | "bairro", |
| 288 | - !empty($this->std->estagiario->instituicao->bairro) ? $this->std->estagiario->instituicao->bairro : |
|
| 289 | - null, |
|
| 288 | + !empty($this->std->estagiario->instituicao->bairro) ? $this->std->estagiario->instituicao->bairro : null, |
|
| 290 | 289 | false |
| 291 | 290 | ); |
| 292 | 291 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\Common\Certificate; |
| 19 | 19 | use NFePHP\eSocial\Common\Factory; |
| 20 | -use NFePHP\eSocial\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\Common\Certificate; |
| 19 | 19 | use NFePHP\eSocial\Common\Factory; |
| 20 | -use NFePHP\eSocial\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\eSocial\Common\FactoryInterface; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -537,8 +537,8 @@ |
||
| 537 | 537 | true |
| 538 | 538 | ); |
| 539 | 539 | foreach ($pgant->infopgtoant as $ipa) { |
| 540 | - //echo "<pre>"; |
|
| 541 | - //print_r($ipa); |
|
| 540 | + //echo "<pre>"; |
|
| 541 | + //print_r($ipa); |
|
| 542 | 542 | //echo "</pre>"; |
| 543 | 543 | //die; |
| 544 | 544 | $infoPgtoAnt = $this->dom->createElement("infoPgtoAnt"); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->dom->addChild( |
| 79 | 79 | $ideEvento, |
| 80 | 80 | "nrRecibo", |
| 81 | - ! empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
| 81 | + !empty($this->std->nrrecibo) ? $this->std->nrrecibo : null, |
|
| 82 | 82 | false |
| 83 | 83 | ); |
| 84 | 84 | $this->dom->addChild( |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | ); |
| 189 | 189 | if (!empty($pgtofl->retpgtotot)) { |
| 190 | 190 | foreach ($pgtofl->retpgtotot as $pg) { |
| 191 | - $retPgtoTot = $this->dom->createElement("retPgtoTot"); |
|
| 191 | + $retPgtoTot = $this->dom->createElement("retPgtoTot"); |
|
| 192 | 192 | $this->dom->addChild( |
| 193 | 193 | $retPgtoTot, |
| 194 | 194 | "codRubr", |
@@ -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 |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $this->dom->addChild( |
| 141 | 141 | $ideVinculo, |
| 142 | 142 | "codCateg", |
| 143 | - ! empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null, |
|
| 143 | + !empty($this->std->idevinculo->codcateg) ? $this->std->idevinculo->codcateg : null, |
|
| 144 | 144 | false |
| 145 | 145 | ); |
| 146 | 146 | $this->node->appendChild($ideVinculo); |
@@ -166,21 +166,21 @@ discard block |
||
| 166 | 166 | $this->dom->addChild( |
| 167 | 167 | $iniAfastamento, |
| 168 | 168 | "infoMesmoMtv", |
| 169 | - ! empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null, |
|
| 169 | + !empty($this->std->iniafastamento->infomesmomtv) ? $this->std->iniafastamento->infomesmomtv : null, |
|
| 170 | 170 | false |
| 171 | 171 | ); |
| 172 | 172 | |
| 173 | 173 | $this->dom->addChild( |
| 174 | 174 | $iniAfastamento, |
| 175 | 175 | "tpAcidTransito", |
| 176 | - ! empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null, |
|
| 176 | + !empty($this->std->iniafastamento->tpacidtransito) ? $this->std->iniafastamento->tpacidtransito : null, |
|
| 177 | 177 | false |
| 178 | 178 | ); |
| 179 | 179 | |
| 180 | 180 | $this->dom->addChild( |
| 181 | 181 | $iniAfastamento, |
| 182 | 182 | "observacao", |
| 183 | - ! empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null, |
|
| 183 | + !empty($this->std->iniafastamento->observacao) ? $this->std->iniafastamento->observacao : null, |
|
| 184 | 184 | false |
| 185 | 185 | ); |
| 186 | 186 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | $this->dom->addChild( |
| 192 | 192 | $infoAtestado, |
| 193 | 193 | "codCID", |
| 194 | - ! empty($info->codcid) ? $info->codcid : null, |
|
| 194 | + !empty($info->codcid) ? $info->codcid : null, |
|
| 195 | 195 | false |
| 196 | 196 | ); |
| 197 | 197 | |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $this->dom->addChild( |
| 230 | 230 | $emitente, |
| 231 | 231 | "ufOC", |
| 232 | - ! empty($info->emitente->ufoc) ? $info->emitente->ufoc : null, |
|
| 232 | + !empty($info->emitente->ufoc) ? $info->emitente->ufoc : null, |
|
| 233 | 233 | false |
| 234 | 234 | ); |
| 235 | 235 | |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | } |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | - if (! empty($this->std->infocessao)) { |
|
| 243 | + if (!empty($this->std->infocessao)) { |
|
| 244 | 244 | $infoCessao = $this->dom->createElement("infoCessao"); |
| 245 | 245 | |
| 246 | 246 | $this->dom->addChild( |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | $iniAfastamento->appendChild($infoCessao); |
| 261 | 261 | } |
| 262 | 262 | |
| 263 | - if (! empty($this->std->infomandsind)) { |
|
| 263 | + if (!empty($this->std->infomandsind)) { |
|
| 264 | 264 | $infoMandSind = $this->dom->createElement("infoMandSind"); |
| 265 | 265 | |
| 266 | 266 | $this->dom->addChild( |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | $infoAfastamento->appendChild($iniAfastamento); |
| 284 | 284 | |
| 285 | - if (! empty($this->std->inforetif)) { |
|
| 285 | + if (!empty($this->std->inforetif)) { |
|
| 286 | 286 | $infoRetif = $this->dom->createElement("infoRetif"); |
| 287 | 287 | |
| 288 | 288 | $this->dom->addChild( |
@@ -302,14 +302,14 @@ discard block |
||
| 302 | 302 | $this->dom->addChild( |
| 303 | 303 | $infoRetif, |
| 304 | 304 | "nrProc", |
| 305 | - ! empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null, |
|
| 305 | + !empty($this->std->inforetif->nrproc) ? $this->std->inforetif->nrproc : null, |
|
| 306 | 306 | false |
| 307 | 307 | ); |
| 308 | 308 | |
| 309 | 309 | $infoAfastamento->appendChild($infoRetif); |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | - if (! empty($this->std->fimafastamento)) { |
|
| 312 | + if (!empty($this->std->fimafastamento)) { |
|
| 313 | 313 | $fimAfastamento = $this->dom->createElement("fimAfastamento"); |
| 314 | 314 | $this->dom->addChild( |
| 315 | 315 | $fimAfastamento, |