Passed
Pull Request — master (#144)
by Sebastiao
02:47
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
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
     {
433 433
         $envelopeAttributes = '';
434 434
         foreach ($namespaces as $key => $value) {
435
-            $envelopeAttributes = $key.'="'.$value.'"';
435
+            $envelopeAttributes = $key . '="' . $value . '"';
436 436
         }
437 437
 
438 438
         return $envelopeAttributes;
@@ -450,9 +450,9 @@  discard block
 block discarded – undo
450 450
             );
451 451
         }
452 452
         $this->certsdir = $this->certificate->getCnpj() . '/certs/';
453
-        $this->prifile = $this->certsdir. Strings::randomString(10).'.pem';
454
-        $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem';
455
-        $this->certfile = $this->certsdir . Strings::randomString(10).'.pem';
453
+        $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem';
454
+        $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem';
455
+        $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem';
456 456
         $ret = true;
457 457
         $private = $this->certificate->privateKey;
458 458
         if ($this->encriptPrivateKey) {
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
         );
478 478
         $ret &= $this->filesystem->put(
479 479
             $this->certfile,
480
-            $private."{$this->certificate}"
480
+            $private . "{$this->certificate}"
481 481
         );
482 482
         if (!$ret) {
483 483
             throw new RuntimeException(
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
         //utilize a API. Outra solução para remover arquivos "perdidos" pode ser
504 504
         //encontrada oportunamente.
505 505
         $dt = new \DateTime();
506
-        $tint = new \DateInterval("PT".$this->waitingTime."M");
506
+        $tint = new \DateInterval("PT" . $this->waitingTime . "M");
507 507
         $tint->invert = true;
508 508
         $tsLimit = $dt->add($tint)->getTimestamp();
509 509
         foreach ($contents as $item) {
Please login to merge, or discard this patch.