Passed
Pull Request — master (#68)
by
unknown
03:14
created
src/Tools.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -575,6 +575,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -284,7 +284,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -490,20 +490,20 @@
 block discarded – undo
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>"
Please login to merge, or discard this patch.