Completed
Pull Request — master (#215)
by Bill
05:01
created
src/Certificate/PublicKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,9 +103,9 @@
 block discarded – undo
103 103
         $this->validFrom = \DateTime::createFromFormat('ymdHis\Z', $detail['validFrom']);
104 104
         $this->validTo = \DateTime::createFromFormat('ymdHis\Z', $detail['validTo']);
105 105
         if (isset($detail['name'])) {
106
-            $arrayName = explode("/",$detail["name"]);
106
+            $arrayName = explode("/", $detail["name"]);
107 107
             $arrayName = array_reverse($arrayName);
108
-            $name = implode(",",$arrayName);
108
+            $name = implode(",", $arrayName);
109 109
             $this->subjectNameValue = $name;
110 110
         }
111 111
     }
Please login to merge, or discard this patch.
src/Signer.php 1 patch
Spacing   +3 added lines, -3 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 = [true,false,null,null];
35
+    const CANONICAL = [true, false, null, null];
36 36
     
37 37
     /**
38 38
      * Make Signature tag
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $nsSignatureMethod = 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256';
121 121
             $nsDigestMethod = 'http://www.w3.org/2001/04/xmlenc#sha256';
122 122
         }
123
-        $nsTransformMethod1 ='http://www.w3.org/2000/09/xmldsig#enveloped-signature';
123
+        $nsTransformMethod1 = 'http://www.w3.org/2000/09/xmldsig#enveloped-signature';
124 124
         $nsTransformMethod2 = 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315';
125 125
         $idSigned = trim($node->getAttribute($mark));
126 126
         $digestValue = self::makeDigest($node, $digestAlgorithm, $canonical);
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $x509DataNode = $dom->createElement('X509Data');
164 164
         $keyInfoNode->appendChild($x509DataNode);
165 165
 
166
-        if(!empty($options["subjectName"])) {
166
+        if (!empty($options["subjectName"])) {
167 167
             $subjectName = $certificate->publicKey->subjectNameValue;
168 168
             $x509SubjectNode = $dom->createElement('X509SubjectName', $subjectName);
169 169
             $x509DataNode->appendChild($x509SubjectNode);
Please login to merge, or discard this patch.