@@ -36,7 +36,7 @@ |
||
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | - for ($n = $xml->firstChild;; $n = $n->nextSibling) { |
|
39 | + for ($n = $xml->firstChild; ; $n = $n->nextSibling) { |
|
40 | 40 | if (!($n instanceof \DOMElement)) { |
41 | 41 | continue; |
42 | 42 | } |
@@ -153,7 +153,7 @@ |
||
153 | 153 | { |
154 | 154 | assert(is_string($serialized)); |
155 | 155 | $doc = DOMDocumentFactory::fromString(unserialize($serialized)); |
156 | - $this->xml = $doc->documentElement; |
|
156 | + $this->xml = $doc->documentElement; |
|
157 | 157 | $this->localName = $this->xml->localName; |
158 | 158 | $this->namespaceURI = $this->xml->namespaceURI; |
159 | 159 | } |
@@ -61,7 +61,7 @@ |
||
61 | 61 | public function hasValidSignature(SignedElement $signedElement, CertificateProvider $configuration) |
62 | 62 | { |
63 | 63 | $logger = $this->logger; |
64 | - $pemCandidates = $this->configuredKeys->filter(function (Key $key) use ($logger) { |
|
64 | + $pemCandidates = $this->configuredKeys->filter(function(Key $key) use ($logger) { |
|
65 | 65 | if (!$key instanceof X509) { |
66 | 66 | $logger->debug(sprintf('Skipping unknown key type: "%s"', $key['type'])); |
67 | 67 | return false; |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $required = false; |
77 | 77 | } |
78 | 78 | $privateKeys = $this->get('privateKeys'); |
79 | - $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) { |
|
79 | + $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) { |
|
80 | 80 | return $key->getName() === $name; |
81 | 81 | }); |
82 | 82 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $required = false; |
51 | 51 | } |
52 | 52 | $privateKeys = $this->get('privateKeys'); |
53 | - $key = array_filter($privateKeys, function (PrivateKey $key) use ($name) { |
|
53 | + $key = array_filter($privateKeys, function(PrivateKey $key) use ($name) { |
|
54 | 54 | return $key->getName() === $name; |
55 | 55 | }); |
56 | 56 |