Completed
Branch master (793070)
by John
01:53
created
src/LEOrder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
     private function loadExistingOrder($domains)
127 127
     {
128
-        $orderUrl = $this->storage->getMetadata($this->basename.'.order.url');
128
+        $orderUrl = $this->storage->getMetadata($this->basename . '.order.url');
129 129
         $publicKey = $this->storage->getPublicKey($this->basename);
130 130
         $privateKey = $this->storage->getPrivateKey($this->basename);
131 131
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         }
170 170
 
171 171
         //ensure retrieved order matches our domains
172
-        $orderdomains = array_map(function ($ident) {
172
+        $orderdomains = array_map(function($ident) {
173 173
             return $ident['value'];
174 174
         }, $post['body']['identifiers']);
175 175
         $diff = array_merge(array_diff($orderdomains, $domains), array_diff($domains, $orderdomains));
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         $this->storage->setPublicKey($this->basename, null);
199 199
         $this->storage->setCertificate($this->basename, null);
200 200
         $this->storage->setFullChainCertificate($this->basename, null);
201
-        $this->storage->setMetadata($this->basename.'.order.url', null);
201
+        $this->storage->setMetadata($this->basename . '.order.url', null);
202 202
     }
203 203
 
204 204
     private function initialiseKeyTypeAndSize($keyType)
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         }
267 267
 
268 268
         $this->orderURL = trim($matches[1]);
269
-        $this->storage->setMetadata($this->basename.'.order.url', $this->orderURL);
269
+        $this->storage->setMetadata($this->basename . '.order.url', $this->orderURL);
270 270
 
271 271
         $this->generateKeys();
272 272
 
@@ -597,13 +597,13 @@  discard block
 block discarded – undo
597 597
      */
598 598
     private function generateCSR()
599 599
     {
600
-        $domains = array_map(function ($dns) {
600
+        $domains = array_map(function($dns) {
601 601
             return $dns['value'];
602 602
         }, $this->identifiers);
603 603
 
604 604
         $dn = ["commonName" => $this->calcCommonName($domains)];
605 605
 
606
-        $san = implode(",", array_map(function ($dns) {
606
+        $san = implode(",", array_map(function($dns) {
607 607
             return "DNS:" . $dns;
608 608
         }, $domains));
609 609
         $tmpConf = tmpfile();
Please login to merge, or discard this patch.