@@ -575,6 +575,9 @@ |
||
| 575 | 575 | } |
| 576 | 576 | } |
| 577 | 577 | |
| 578 | + /** |
|
| 579 | + * @param stdClass $std |
|
| 580 | + */ |
|
| 578 | 581 | protected function validInputParameters($properties, $std) |
| 579 | 582 | { |
| 580 | 583 | foreach ($properties as $key => $rules) { |
@@ -284,7 +284,7 @@ |
||
| 284 | 284 | 'required' => true, |
| 285 | 285 | 'type' => 'string', |
| 286 | 286 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 287 | - ], |
|
| 287 | + ], |
|
| 288 | 288 | 'nrinscestabprest' => [ |
| 289 | 289 | 'required' => true, |
| 290 | 290 | 'type' => 'string', |
@@ -490,20 +490,20 @@ |
||
| 490 | 490 | throw ProcessException::wrongArgument(2002, ''); |
| 491 | 491 | } |
| 492 | 492 | //verifica se o evento pertence ao grupo indicado |
| 493 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 493 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 494 | 494 | throw new \RuntimeException( |
| 495 | 495 | 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
| 496 | 496 | . $this->eventGroup[$grupo] . ' ].' |
| 497 | 497 | ); |
| 498 | 498 | } |
| 499 | 499 | $this->checkCertificate($evt); |
| 500 | - $xml .= "<evento id=\"".$evt->getId()."\">"; |
|
| 500 | + $xml .= "<evento id=\"" . $evt->getId() . "\">"; |
|
| 501 | 501 | $xml .= $evt->toXML(); |
| 502 | 502 | $xml .= "</evento>"; |
| 503 | 503 | } |
| 504 | 504 | //build request |
| 505 | 505 | $request = "<Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/envioLoteEventos/v" |
| 506 | - . $this->serviceVersion."\" >" |
|
| 506 | + . $this->serviceVersion . "\" >" |
|
| 507 | 507 | . "<loteEventos>" |
| 508 | 508 | . $xml |
| 509 | 509 | . "</loteEventos>" |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\EFDReinf\Common\Factory; |
| 19 | 19 | use NFePHP\EFDReinf\Common\FactoryInterface; |
| 20 | -use NFePHP\EFDReinf\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\Common\Certificate; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\EFDReinf\Common\Factory; |
| 19 | 19 | use NFePHP\EFDReinf\Common\FactoryInterface; |
| 20 | -use NFePHP\EFDReinf\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\Common\Certificate; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\EFDReinf\Common\Factory; |
| 19 | 19 | use NFePHP\EFDReinf\Common\FactoryInterface; |
| 20 | -use NFePHP\EFDReinf\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\Common\Certificate; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\EFDReinf\Common\Factory; |
| 19 | 19 | use NFePHP\EFDReinf\Common\FactoryInterface; |
| 20 | -use NFePHP\EFDReinf\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\Common\Certificate; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\EFDReinf\Common\Factory; |
| 19 | 19 | use NFePHP\EFDReinf\Common\FactoryInterface; |
| 20 | -use NFePHP\EFDReinf\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\Common\Certificate; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | |
| 18 | 18 | use NFePHP\EFDReinf\Common\Factory; |
| 19 | 19 | use NFePHP\EFDReinf\Common\FactoryInterface; |
| 20 | -use NFePHP\EFDReinf\Common\FactoryId; |
|
| 21 | 20 | use NFePHP\Common\Certificate; |
| 22 | 21 | use stdClass; |
| 23 | 22 | |
@@ -288,7 +288,7 @@ |
||
| 288 | 288 | } |
| 289 | 289 | } |
| 290 | 290 | if (!empty($this->std->rcoml)) { |
| 291 | - foreach($this->std->rcoml as $r) { |
|
| 291 | + foreach ($this->std->rcoml as $r) { |
|
| 292 | 292 | $rComl = $this->dom->createElement("RComl"); |
| 293 | 293 | $this->dom->addChild( |
| 294 | 294 | $rComl, |