@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | $node |
| 55 | 55 | ); |
| 56 | 56 | return (string) '<?xml version="1.0" encoding="UTF-8"?>' |
| 57 | - . $dom->saveXML($dom->documentElement, LIBXML_NOXMLDECL); |
|
| 57 | + . $dom->saveXML($dom->documentElement, LIBXML_NOXMLDECL); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | private function assertValidContent($content) |
@@ -142,11 +142,11 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | - * Calculate digest value for given node |
|
| 146 | - * @param DOMNode $node |
|
| 147 | - * @param string $algorithm |
|
| 148 | - * @return string |
|
| 149 | - */ |
|
| 145 | + * Calculate digest value for given node |
|
| 146 | + * @param DOMNode $node |
|
| 147 | + * @param string $algorithm |
|
| 148 | + * @return string |
|
| 149 | + */ |
|
| 150 | 150 | private function makeDigest(DOMNode $node, $algorithm) |
| 151 | 151 | { |
| 152 | 152 | $c14n = $this->canonize($node); |
@@ -155,10 +155,10 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * Reduced to the canonical form |
|
| 159 | - * @param DOMNode $node |
|
| 160 | - * @return string |
|
| 161 | - */ |
|
| 158 | + * Reduced to the canonical form |
|
| 159 | + * @param DOMNode $node |
|
| 160 | + * @return string |
|
| 161 | + */ |
|
| 162 | 162 | private function canonize(DOMNode $node) |
| 163 | 163 | { |
| 164 | 164 | return $node->C14N( |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $referenceNode->appendChild($transformsNode); |
| 93 | 93 | $transfNode1 = $dom->createElement('Transform'); |
| 94 | 94 | $transformsNode->appendChild($transfNode1); |
| 95 | - $transfNode1->setAttribute('Algorithm', self::XMLDSIGNS.'enveloped-signature'); |
|
| 95 | + $transfNode1->setAttribute('Algorithm', self::XMLDSIGNS . 'enveloped-signature'); |
|
| 96 | 96 | $transfNode2 = $dom->createElement('Transform'); |
| 97 | 97 | $transformsNode->appendChild($transfNode2); |
| 98 | 98 | $transfNode2->setAttribute('Algorithm', self::C14N); |