@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | $properties = [ |
| 263 | 263 | 'perapur' => [ |
| 264 | 264 | 'required' => false, |
| 265 | - 'type' => ['string',"null"], |
|
| 265 | + 'type' => ['string', "null"], |
|
| 266 | 266 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 267 | 267 | ], |
| 268 | 268 | 'tpinscestab' => [ |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | . "<sped:tpInsc>{$this->tpInsc}</sped:tpInsc>" |
| 292 | 292 | . "<sped:nrInsc>{$this->doc}</sped:nrInsc>"; |
| 293 | 293 | if (!empty($std->perapur)) { |
| 294 | - $request .= "<sped:perApur>{$std->perapur}</sped:perApur>"; |
|
| 294 | + $request .= "<sped:perApur>{$std->perapur}</sped:perApur>"; |
|
| 295 | 295 | } |
| 296 | 296 | $request .= "<sped:tpInscEstab>{$std->tpinscestab}</sped:tpInscEstab>" |
| 297 | 297 | . "<sped:nrInscEstab>" |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | $properties = [ |
| 316 | 316 | 'perapur' => [ |
| 317 | 317 | 'required' => false, |
| 318 | - 'type' => ['string',"null"], |
|
| 318 | + 'type' => ['string', "null"], |
|
| 319 | 319 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 320 | 320 | ], |
| 321 | 321 | 'nrinscestabprest' => [ |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | $properties = [ |
| 367 | 367 | 'perapur' => [ |
| 368 | 368 | 'required' => false, |
| 369 | - 'type' => ['string',"null"], |
|
| 369 | + 'type' => ['string', "null"], |
|
| 370 | 370 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 371 | 371 | ], |
| 372 | 372 | 'nrinscestab' => [ |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | $properties = [ |
| 410 | 410 | 'perapur' => [ |
| 411 | 411 | 'required' => false, |
| 412 | - 'type' => ['string',"null"], |
|
| 412 | + 'type' => ['string', "null"], |
|
| 413 | 413 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 414 | 414 | ], |
| 415 | 415 | 'nrinscestab' => [ |
@@ -454,7 +454,7 @@ discard block |
||
| 454 | 454 | $properties = [ |
| 455 | 455 | 'perapur' => [ |
| 456 | 456 | 'required' => false, |
| 457 | - 'type' => ['string',"null"], |
|
| 457 | + 'type' => ['string', "null"], |
|
| 458 | 458 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 459 | 459 | ], |
| 460 | 460 | 'nrinscestabprest' => [ |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | $properties = [ |
| 505 | 505 | 'perapur' => [ |
| 506 | 506 | 'required' => false, |
| 507 | - 'type' => ['string',"null"], |
|
| 507 | + 'type' => ['string', "null"], |
|
| 508 | 508 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
| 509 | 509 | ], |
| 510 | 510 | ]; |
@@ -588,20 +588,20 @@ discard block |
||
| 588 | 588 | throw ProcessException::wrongArgument(2002, ''); |
| 589 | 589 | } |
| 590 | 590 | //verifica se o evento pertence ao grupo indicado |
| 591 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 591 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
| 592 | 592 | throw new \RuntimeException( |
| 593 | 593 | 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
| 594 | 594 | . $this->eventGroup[$grupo] . ' ].' |
| 595 | 595 | ); |
| 596 | 596 | } |
| 597 | 597 | $this->checkCertificate($evt); |
| 598 | - $xml .= "<evento id=\"".$evt->getId()."\">"; |
|
| 598 | + $xml .= "<evento id=\"" . $evt->getId() . "\">"; |
|
| 599 | 599 | $xml .= $evt->toXML(); |
| 600 | 600 | $xml .= "</evento>"; |
| 601 | 601 | } |
| 602 | 602 | //build request |
| 603 | 603 | $request = "<Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/envioLoteEventos/v" |
| 604 | - . $this->serviceVersion."\" >" |
|
| 604 | + . $this->serviceVersion . "\" >" |
|
| 605 | 605 | . "<loteEventos>" |
| 606 | 606 | . $xml |
| 607 | 607 | . "</loteEventos>" |