@@ -18,7 +18,7 @@ |
||
| 18 | 18 | if (!is_file($jsonschema) || !is_file($definitions)) { |
| 19 | 19 | return []; |
| 20 | 20 | } |
| 21 | - $jsonSchemaObject = json_decode((string)file_get_contents($jsonschema)); |
|
| 21 | + $jsonSchemaObject = json_decode((string) file_get_contents($jsonschema)); |
|
| 22 | 22 | $schemaStorage = new SchemaStorage(); |
| 23 | 23 | $schemaStorage->addSchema("file:{$definitions}", $jsonSchemaObject); |
| 24 | 24 | $jsonValidator = new Validator(new Factory($schemaStorage)); |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | |
| 318 | 318 | /** |
| 319 | 319 | * Add infosaudecolet to remunPerApur |
| 320 | - * @param type $node |
|
| 320 | + * @param \DOMElement $node |
|
| 321 | 321 | * @param type $std |
| 322 | 322 | * @return type |
| 323 | 323 | */ |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | |
| 391 | 391 | /** |
| 392 | 392 | * Add infoperant to dmDev |
| 393 | - * @param type $node |
|
| 393 | + * @param \DOMElement $node |
|
| 394 | 394 | * @param type $std |
| 395 | 395 | * @return type |
| 396 | 396 | */ |
@@ -292,6 +292,9 @@ discard block |
||
| 292 | 292 | $this->node->appendChild($ideVinculo); |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | + /** |
|
| 296 | + * @return \DOMNode |
|
| 297 | + */ |
|
| 295 | 298 | protected function tagCAT() |
| 296 | 299 | { |
| 297 | 300 | $cat = $this->dom->createElement("cat"); |
@@ -373,6 +376,9 @@ discard block |
||
| 373 | 376 | return $cat; |
| 374 | 377 | } |
| 375 | 378 | |
| 379 | + /** |
|
| 380 | + * @return \DOMElement |
|
| 381 | + */ |
|
| 376 | 382 | protected function tagLocalAcidente(\DOMElement &$cat) |
| 377 | 383 | { |
| 378 | 384 | $localAcidente = $this->dom->createElement("localAcidente"); |
@@ -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( |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Class eSocial EvtExclusao Event S-3000 constructor |
| 7 | - |
|
| 8 | 7 | * Read for 2.5.0 layout |
| 9 | 8 | * |
| 10 | 9 | * @category library |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Class eSocial EvtInsApo Event S-2241 constructor |
| 7 | - |
|
| 8 | 7 | * Não existe em 2.5.0 layout |
| 9 | 8 | * |
| 10 | 9 | * @category library |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Class eSocial EvtInfoEmpregador Event S-1000 constructor |
| 7 | - |
|
| 8 | 7 | * Read for 2.5.0 layout |
| 9 | 8 | * Read for S_1.0 layout |
| 10 | 9 | * |
@@ -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 |
@@ -111,6 +111,6 @@ |
||
| 111 | 111 | */ |
| 112 | 112 | protected function toNodeS100() |
| 113 | 113 | { |
| 114 | - throw new \Exception("TODO !!"); |
|
| 114 | + throw new \Exception("TODO !!"); |
|
| 115 | 115 | } |
| 116 | 116 | } |
@@ -171,7 +171,7 @@ |
||
| 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 |