@@ -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>" |