@@ -290,7 +290,7 @@ |
||
| 290 | 290 | 'required' => false, |
| 291 | 291 | 'type' => ['string',"null"], |
| 292 | 292 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 293 | - ], |
|
| 293 | + ], |
|
| 294 | 294 | 'nrinscestabprest' => [ |
| 295 | 295 | 'required' => true, |
| 296 | 296 | 'type' => 'string', |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $properties = [ |
| 236 | 236 | 'perapur' => [ |
| 237 | 237 | 'required' => false, |
| 238 | - 'type' => ['string',"null"], |
|
| 238 | + 'type' => ['string', "null"], |
|
| 239 | 239 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 240 | 240 | ], |
| 241 | 241 | 'tpinscestab' => [ |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | . "<sped:tpInsc>{$this->tpInsc}</sped:tpInsc>" |
| 265 | 265 | . "<sped:nrInsc>{$this->nrInsc}</sped:nrInsc>"; |
| 266 | 266 | if (!empty($std->perapur)) { |
| 267 | - $request .= "<sped:perApur>{$std->perapur}</sped:perApur>"; |
|
| 267 | + $request .= "<sped:perApur>{$std->perapur}</sped:perApur>"; |
|
| 268 | 268 | } |
| 269 | 269 | $request .= "<sped:tpInscEstab>{$std->tpinscestab}</sped:tpInscEstab>" |
| 270 | 270 | . "<sped:nrInscEstab>" |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | $properties = [ |
| 289 | 289 | 'perapur' => [ |
| 290 | 290 | 'required' => false, |
| 291 | - 'type' => ['string',"null"], |
|
| 291 | + 'type' => ['string', "null"], |
|
| 292 | 292 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 293 | 293 | ], |
| 294 | 294 | 'nrinscestabprest' => [ |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | $properties = [ |
| 340 | 340 | 'perapur' => [ |
| 341 | 341 | 'required' => false, |
| 342 | - 'type' => ['string',"null"], |
|
| 342 | + 'type' => ['string', "null"], |
|
| 343 | 343 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 344 | 344 | ], |
| 345 | 345 | 'nrinscestab' => [ |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | $properties = [ |
| 383 | 383 | 'perapur' => [ |
| 384 | 384 | 'required' => false, |
| 385 | - 'type' => ['string',"null"], |
|
| 385 | + 'type' => ['string', "null"], |
|
| 386 | 386 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 387 | 387 | ], |
| 388 | 388 | 'nrinscestab' => [ |
@@ -427,7 +427,7 @@ discard block |
||
| 427 | 427 | $properties = [ |
| 428 | 428 | 'perapur' => [ |
| 429 | 429 | 'required' => false, |
| 430 | - 'type' => ['string',"null"], |
|
| 430 | + 'type' => ['string', "null"], |
|
| 431 | 431 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 432 | 432 | ], |
| 433 | 433 | 'nrinscestabprest' => [ |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | $properties = [ |
| 478 | 478 | 'perapur' => [ |
| 479 | 479 | 'required' => false, |
| 480 | - 'type' => ['string',"null"], |
|
| 480 | + 'type' => ['string', "null"], |
|
| 481 | 481 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 482 | 482 | ], |
| 483 | 483 | ]; |
@@ -561,20 +561,20 @@ discard block |
||
| 561 | 561 | throw ProcessException::wrongArgument(2002, ''); |
| 562 | 562 | } |
| 563 | 563 | //verifica se o evento pertence ao grupo indicado |
| 564 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 564 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 565 | 565 | throw new \RuntimeException( |
| 566 | 566 | 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
| 567 | 567 | . $this->eventGroup[$grupo] . ' ].' |
| 568 | 568 | ); |
| 569 | 569 | } |
| 570 | 570 | $this->checkCertificate($evt); |
| 571 | - $xml .= "<evento id=\"".$evt->getId()."\">"; |
|
| 571 | + $xml .= "<evento id=\"" . $evt->getId() . "\">"; |
|
| 572 | 572 | $xml .= $evt->toXML(); |
| 573 | 573 | $xml .= "</evento>"; |
| 574 | 574 | } |
| 575 | 575 | //build request |
| 576 | 576 | $request = "<Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/envioLoteEventos/v" |
| 577 | - . $this->serviceVersion."\" >" |
|
| 577 | + . $this->serviceVersion . "\" >" |
|
| 578 | 578 | . "<loteEventos>" |
| 579 | 579 | . $xml |
| 580 | 580 | . "</loteEventos>" |