Passed
Push — master ( be8758...6d071a )
by Roberto
13:47 queued 11:08
created
src/Common/Soap/SoapBase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     /**
165 165
      * Check if certificate is valid
166 166
      * @param Certificate $certificate
167
-     * @return mixed
167
+     * @return null|Certificate
168 168
      * @throws RuntimeException
169 169
      */
170 170
     private function checkCertValidity(Certificate $certificate = null)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -384,9 +384,9 @@  discard block
 block discarded – undo
384 384
             );
385 385
         }
386 386
         $this->certsdir = $this->certificate->getCnpj() . '/certs/';
387
-        $this->prifile = $this->certsdir. Strings::randomString(10).'.pem';
388
-        $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem';
389
-        $this->certfile = $this->certsdir . Strings::randomString(10).'.pem';
387
+        $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem';
388
+        $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem';
389
+        $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem';
390 390
         $ret = true;
391 391
         $private = $this->certificate->privateKey;
392 392
         if ($this->encriptPrivateKey) {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         );
412 412
         $ret &= $this->filesystem->put(
413 413
             $this->certfile,
414
-            $private."{$this->certificate}"
414
+            $private . "{$this->certificate}"
415 415
         );
416 416
         if (!$ret) {
417 417
             throw new RuntimeException(
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
         //utilize a API. Outra solução para remover arquivos "perdidos" pode ser
438 438
         //encontrada oportunamente.
439 439
         $dt = new \DateTime();
440
-        $tint = new \DateInterval("PT".$this->waitingTime."M");
440
+        $tint = new \DateInterval("PT" . $this->waitingTime . "M");
441 441
         $tint->invert = 1;
442 442
         $tsLimit = $dt->add($tint)->getTimestamp();
443 443
         foreach ($contents as $item) {
Please login to merge, or discard this patch.