Passed
Push — master ( 0fbc17...081c11 )
by Roberto
53s
created
src/Soap/SoapBase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -358,7 +358,7 @@
 block discarded – undo
358 358
      * Mount soap envelope
359 359
      * @param string $request
360 360
      * @param array $namespaces
361
-     * @param $soapVer int
361
+     * @param integer $soapVer int
362 362
      * @param \SOAPHeader $header
363 363
      * @return string
364 364
      */
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         $bodyContent = ''
393 393
     ) {
394 394
         return sprintf(
395
-            '<%s:Envelope %s >'.$header.'<%s:Body>%s</%s:Body></%s:Envelop>',
395
+            '<%s:Envelope %s >' . $header . '<%s:Body>%s</%s:Body></%s:Envelop>',
396 396
             $envelopPrefix,
397 397
             $envelopAttributes,
398 398
             $envelopPrefix,
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 
416 416
         $headerItems = '';
417 417
         foreach ($header->data as $key => $value) {
418
-            $headerItems = '<'.$key.'>'.$value.'<'.$key.'>';
418
+            $headerItems = '<' . $key . '>' . $value . '<' . $key . '>';
419 419
         }
420 420
 
421 421
         return sprintf(
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
     {
436 436
         $envelopeAttributes = '';
437 437
         foreach ($namespaces as $key => $value) {
438
-            $envelopeAttributes = $key.'="'.$value.'"';
438
+            $envelopeAttributes = $key . '="' . $value . '"';
439 439
         }
440 440
 
441 441
         return $envelopeAttributes;
@@ -453,9 +453,9 @@  discard block
 block discarded – undo
453 453
             );
454 454
         }
455 455
         $this->certsdir = $this->certificate->getCnpj() . '/certs/';
456
-        $this->prifile = $this->certsdir. Strings::randomString(10).'.pem';
457
-        $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem';
458
-        $this->certfile = $this->certsdir . Strings::randomString(10).'.pem';
456
+        $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem';
457
+        $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem';
458
+        $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem';
459 459
         $ret = true;
460 460
         $private = $this->certificate->privateKey;
461 461
         if ($this->encriptPrivateKey) {
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
         );
481 481
         $ret &= $this->filesystem->put(
482 482
             $this->certfile,
483
-            $private."{$this->certificate}"
483
+            $private . "{$this->certificate}"
484 484
         );
485 485
         if (!$ret) {
486 486
             throw new RuntimeException(
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
         //utilize a API. Outra solução para remover arquivos "perdidos" pode ser
507 507
         //encontrada oportunamente.
508 508
         $dt = new \DateTime();
509
-        $tint = new \DateInterval("PT".$this->waitingTime."M");
509
+        $tint = new \DateInterval("PT" . $this->waitingTime . "M");
510 510
         $tint->invert = true;
511 511
         $tsLimit = $dt->add($tint)->getTimestamp();
512 512
         foreach ($contents as $item) {
Please login to merge, or discard this patch.
src/Certificate/Exception/Expired.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
     public function __construct(Certificate $certificate)
11 11
     {
12 12
         $invalidDate = $certificate->getValidFrom()->format('Y-m-d H:i');
13
-        parent::__construct('Certificate invalid from '.$invalidDate, 0, null);
13
+        parent::__construct('Certificate invalid from ' . $invalidDate, 0, null);
14 14
     }
15 15
 }
Please login to merge, or discard this patch.