Passed
Pull Request — master (#125)
by Roberto
02:33
created
src/Soap/SoapBase.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -387,9 +387,9 @@  discard block
 block discarded – undo
387 387
             );
388 388
         }
389 389
         $this->certsdir = $this->certificate->getCnpj() . '/certs/';
390
-        $this->prifile = $this->certsdir. Strings::randomString(10).'.pem';
391
-        $this->pubfile = $this->certsdir . Strings::randomString(10).'.pem';
392
-        $this->certfile = $this->certsdir . Strings::randomString(10).'.pem';
390
+        $this->prifile = $this->certsdir . Strings::randomString(10) . '.pem';
391
+        $this->pubfile = $this->certsdir . Strings::randomString(10) . '.pem';
392
+        $this->certfile = $this->certsdir . Strings::randomString(10) . '.pem';
393 393
         $ret = true;
394 394
         $private = $this->certificate->privateKey;
395 395
         if ($this->encriptPrivateKey) {
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         );
415 415
         $ret &= $this->filesystem->put(
416 416
             $this->certfile,
417
-            $private."{$this->certificate}"
417
+            $private . "{$this->certificate}"
418 418
         );
419 419
         if (!$ret) {
420 420
             throw new RuntimeException(
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         //utilize a API. Outra solução para remover arquivos "perdidos" pode ser
441 441
         //encontrada oportunamente.
442 442
         $dt = new \DateTime();
443
-        $tint = new \DateInterval("PT".$this->waitingTime."M");
443
+        $tint = new \DateInterval("PT" . $this->waitingTime . "M");
444 444
         $tint->invert = true;
445 445
         $tsLimit = $dt->add($tint)->getTimestamp();
446 446
         foreach ($contents as $item) {
Please login to merge, or discard this patch.
src/Soap/SoapCurl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 curl_setopt($oCurl, CURLOPT_KEYPASSWD, $this->temppass);
99 99
             }
100 100
             curl_setopt($oCurl, CURLOPT_RETURNTRANSFER, 1);
101
-            if (! empty($envelope)) {
101
+            if (!empty($envelope)) {
102 102
                 curl_setopt($oCurl, CURLOPT_POST, 1);
103 103
                 curl_setopt($oCurl, CURLOPT_POSTFIELDS, $envelope);
104 104
                 curl_setopt($oCurl, CURLOPT_HTTPHEADER, $parameters);
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
         if ($this->proxyIP != '') {
141 141
             curl_setopt($oCurl, CURLOPT_HTTPPROXYTUNNEL, 1);
142 142
             curl_setopt($oCurl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
143
-            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP.':'.$this->proxyPort);
143
+            curl_setopt($oCurl, CURLOPT_PROXY, $this->proxyIP . ':' . $this->proxyPort);
144 144
             if ($this->proxyUser != '') {
145
-                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser.':'.$this->proxyPass);
145
+                curl_setopt($oCurl, CURLOPT_PROXYUSERPWD, $this->proxyUser . ':' . $this->proxyPass);
146 146
                 curl_setopt($oCurl, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
147 147
             }
148 148
         }
Please login to merge, or discard this patch.