@@ -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 |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | !empty($this->std->indopccp) ? $this->std->indopccp : null, |
131 | 131 | false |
132 | 132 | ); |
133 | - foreach($this->std->detaquis as $det) { |
|
133 | + foreach ($this->std->detaquis as $det) { |
|
134 | 134 | $detaq = $this->dom->createElement("detAquis"); |
135 | 135 | $this->dom->addChild( |
136 | 136 | $detaq, |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | number_format($det->vlrsenardesc, 2, ',', ''), |
163 | 163 | true |
164 | 164 | ); |
165 | - foreach($det->infoprocjud as $jud) { |
|
165 | + foreach ($det->infoprocjud as $jud) { |
|
166 | 166 | $procjud = $this->dom->createElement("infoProcJud"); |
167 | 167 | $this->dom->addChild( |
168 | 168 | $procjud, |