Completed
Pull Request — master (#174)
by
unknown
05:20
created
src/Signer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 class Signer
34 34
 {
35
-    const CANONICAL = array(true,false,null,null);
35
+    const CANONICAL = array(true, false, null, null);
36 36
     private static $canonical = self::CANONICAL;
37 37
 
38 38
     /**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             $nsSignatureMethod = 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256';
144 144
             $nsDigestMethod = 'http://www.w3.org/2001/04/xmlenc#sha256';
145 145
         }
146
-        $nsTransformMethod1 ='http://www.w3.org/2000/09/xmldsig#enveloped-signature';
146
+        $nsTransformMethod1 = 'http://www.w3.org/2000/09/xmldsig#enveloped-signature';
147 147
         $nsTransformMethod2 = 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315';
148 148
         $idSigned = trim($node->getAttribute($mark));
149 149
         $signatureNode = $dom->createElementNS($nsDSIG, 'Signature');
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,8 +341,7 @@
 block discarded – undo
341 341
             if (empty($node)) {
342 342
                 throw SignerException::tagNotFound($tagname);
343 343
             }
344
-        }
345
-        else {
344
+        } else {
346 345
             $node = $dom->getElementsByTagName($tagname)->item(0);
347 346
             if (empty($node)) {
348 347
                 throw SignerException::tagNotFound($tagname);
Please login to merge, or discard this patch.
src/Soap/SoapCurl.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,7 @@
 block discarded – undo
82 82
             $response = curl_exec($curl);
83 83
 
84 84
             $httpcode = $this->dispose_curl($curl, $response, $data->urlMethod);
85
-        } 
86
-        catch (\Exception $e) {
85
+        } catch (\Exception $e) {
87 86
             throw SoapException::unableToLoadCurl($e->getMessage());
88 87
         }
89 88
 
Please login to merge, or discard this patch.