@@ -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 |
@@ -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 |
@@ -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, |
@@ -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", |