@@ -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 |
@@ -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 |
@@ -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"); |
@@ -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 |
@@ -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 |
@@ -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( |
@@ -250,8 +250,8 @@ discard block |
||
250 | 250 | $infoCadastro->appendChild($info); |
251 | 251 | } |
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 |
||
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 |
||
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, |