Passed
Pull Request — master (#144)
by Sebastiao
02:32
created
src/Soap/SoapBase.php 3 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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,9 +58,9 @@
 block discarded – undo
58 58
      * @var LoggerInterface
59 59
      */
60 60
     protected $logger;
61
-     /**
62
-     * @var string
63
-     */
61
+        /**
62
+         * @var string
63
+         */
64 64
     protected $tempdir;
65 65
     /**
66 66
      * @var string
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,
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
     {
412 412
         $headerItems = '';
413 413
         foreach ($header->data as $key => $value) {
414
-            $headerItems = '<'.$key.'>'.$value.'<'.$key.'>';
414
+            $headerItems = '<' . $key . '>' . $value . '<' . $key . '>';
415 415
         }
416 416
 
417 417
         return
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     private function getStringAttributes($namespaces = [])
432 432
     {
433 433
         foreach ($namespaces as $key => $value) {
434
-            $envelopeAttributes = $key.'="'.$value.'"';
434
+            $envelopeAttributes = $key . '="' . $value . '"';
435 435
         }
436 436
 
437 437
         return $envelopeAttributes ?? '';
@@ -449,9 +449,9 @@  discard block
 block discarded – undo
449 449
             );
450 450
         }
451 451
         $this->certsdir = $this->certificate->getCnpj() . '/certs/';
452
-        $this->prifile = $this->certsdir. Strings::randomString(10).'.pem';
453
-        $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem';
454
-        $this->certfile = $this->certsdir . Strings::randomString(10).'.pem';
452
+        $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem';
453
+        $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem';
454
+        $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem';
455 455
         $ret = true;
456 456
         $private = $this->certificate->privateKey;
457 457
         if ($this->encriptPrivateKey) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
         );
477 477
         $ret &= $this->filesystem->put(
478 478
             $this->certfile,
479
-            $private."{$this->certificate}"
479
+            $private . "{$this->certificate}"
480 480
         );
481 481
         if (!$ret) {
482 482
             throw new RuntimeException(
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         //utilize a API. Outra solução para remover arquivos "perdidos" pode ser
503 503
         //encontrada oportunamente.
504 504
         $dt = new \DateTime();
505
-        $tint = new \DateInterval("PT".$this->waitingTime."M");
505
+        $tint = new \DateInterval("PT" . $this->waitingTime . "M");
506 506
         $tint->invert = true;
507 507
         $tsLimit = $dt->add($tint)->getTimestamp();
508 508
         foreach ($contents as $item) {
Please login to merge, or discard this patch.