@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $properties = [ |
275 | 275 | 'perapur' => [ |
276 | 276 | 'required' => false, |
277 | - 'type' => ['string',"null"], |
|
277 | + 'type' => ['string', "null"], |
|
278 | 278 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
279 | 279 | ], |
280 | 280 | 'tpinscestab' => [ |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | . "<sped:tpInsc>{$this->tpInsc}</sped:tpInsc>" |
304 | 304 | . "<sped:nrInsc>{$this->doc}</sped:nrInsc>"; |
305 | 305 | if (!empty($std->perapur)) { |
306 | - $request .= "<sped:perApur>{$std->perapur}</sped:perApur>"; |
|
306 | + $request .= "<sped:perApur>{$std->perapur}</sped:perApur>"; |
|
307 | 307 | } |
308 | 308 | $request .= "<sped:tpInscEstab>{$std->tpinscestab}</sped:tpInscEstab>" |
309 | 309 | . "<sped:nrInscEstab>" |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | $properties = [ |
328 | 328 | 'perapur' => [ |
329 | 329 | 'required' => false, |
330 | - 'type' => ['string',"null"], |
|
330 | + 'type' => ['string', "null"], |
|
331 | 331 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
332 | 332 | ], |
333 | 333 | 'nrinscestabprest' => [ |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | $properties = [ |
379 | 379 | 'perapur' => [ |
380 | 380 | 'required' => false, |
381 | - 'type' => ['string',"null"], |
|
381 | + 'type' => ['string', "null"], |
|
382 | 382 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
383 | 383 | ], |
384 | 384 | 'nrinscestab' => [ |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | $properties = [ |
422 | 422 | 'perapur' => [ |
423 | 423 | 'required' => false, |
424 | - 'type' => ['string',"null"], |
|
424 | + 'type' => ['string', "null"], |
|
425 | 425 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
426 | 426 | ], |
427 | 427 | 'nrinscestab' => [ |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | $properties = [ |
467 | 467 | 'perapur' => [ |
468 | 468 | 'required' => false, |
469 | - 'type' => ['string',"null"], |
|
469 | + 'type' => ['string', "null"], |
|
470 | 470 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
471 | 471 | ], |
472 | 472 | 'nrinscestabprest' => [ |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | $properties = [ |
517 | 517 | 'perapur' => [ |
518 | 518 | 'required' => false, |
519 | - 'type' => ['string',"null"], |
|
519 | + 'type' => ['string', "null"], |
|
520 | 520 | 'regex' => '^(19[0-9][0-9]|2[0-9][0-9][0-9])[-](0?[1-9]|1[0-2])$' |
521 | 521 | ], |
522 | 522 | ]; |
@@ -600,20 +600,20 @@ discard block |
||
600 | 600 | throw ProcessException::wrongArgument(2002, ''); |
601 | 601 | } |
602 | 602 | //verifica se o evento pertence ao grupo indicado |
603 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
603 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
604 | 604 | throw new \RuntimeException( |
605 | 605 | 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
606 | 606 | . $this->eventGroup[$grupo] . ' ].' |
607 | 607 | ); |
608 | 608 | } |
609 | 609 | $this->checkCertificate($evt); |
610 | - $xml .= "<evento id=\"".$evt->getId()."\">"; |
|
610 | + $xml .= "<evento id=\"" . $evt->getId() . "\">"; |
|
611 | 611 | $xml .= $evt->toXML(); |
612 | 612 | $xml .= "</evento>"; |
613 | 613 | } |
614 | 614 | //build request |
615 | 615 | $request = "<Reinf xmlns=\"http://www.reinf.esocial.gov.br/schemas/envioLoteEventos/v" |
616 | - . $this->serviceVersion."\" >" |
|
616 | + . $this->serviceVersion . "\" >" |
|
617 | 617 | . "<loteEventos>" |
618 | 618 | . $xml |
619 | 619 | . "</loteEventos>" |
@@ -655,14 +655,14 @@ discard block |
||
655 | 655 | throw ProcessException::wrongArgument(2002, ''); |
656 | 656 | } |
657 | 657 | //verifica se o evento pertence ao grupo indicado |
658 | - if (! in_array($evt->alias(), $this->grupos[$grupo])) { |
|
658 | + if (!in_array($evt->alias(), $this->grupos[$grupo])) { |
|
659 | 659 | throw new \RuntimeException( |
660 | 660 | 'O evento ' . $evt->alias() . ' não pertence a este grupo [ ' |
661 | 661 | . $this->eventGroup[$grupo] . ' ].' |
662 | 662 | ); |
663 | 663 | } |
664 | 664 | $this->checkCertificate($evt); |
665 | - $xml .= "<evento id=\"".$evt->getId()."\">"; |
|
665 | + $xml .= "<evento id=\"" . $evt->getId() . "\">"; |
|
666 | 666 | $xml .= $evt->toXML(); |
667 | 667 | $xml .= "</evento>"; |
668 | 668 | } |