@@ -32,7 +32,7 @@ discard block  | 
                                                    ||
| 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  | 
                                                    ||
| 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  | 
                                                    ||
| 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);  | 
                                                        
@@ -103,10 +103,10 @@  | 
                                                    ||
| 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 | 108 | $arrayName = array_filter($arrayName);  | 
                                                        
| 109 | -            $name = implode(",",$arrayName); | 
                                                        |
| 109 | +            $name = implode(",", $arrayName); | 
                                                        |
| 110 | 110 | $this->subjectNameValue = $name;  | 
                                                        
| 111 | 111 | }  | 
                                                        
| 112 | 112 | }  |