Completed
Pull Request — master (#2)
by John
13:19
created
examples/exampleDNSInit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
44 44
             }
45 45
         }
46 46
     }
47
-}
48
-catch (\Exception $e) {
47
+} catch (\Exception $e) {
49 48
     echo $e->getMessage()."\n";
50 49
     echo $e->getTraceAsString()."\n";
51 50
 
Please login to merge, or discard this patch.
examples/exampleDNSFinish.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,9 +44,13 @@
 block discarded – undo
44 44
 if($order->allAuthorizationsValid())
45 45
 {
46 46
 	// Finalize the order first, if that is not yet done.
47
-	if(!$order->isFinalized()) $order->finalizeOrder();
47
+	if(!$order->isFinalized()) {
48
+		$order->finalizeOrder();
49
+	}
48 50
 	// Check whether the order has been finalized before we can get the certificate. If finalized, get the certificate.
49
-	if($order->isFinalized()) $order->getCertificate();
51
+	if($order->isFinalized()) {
52
+		$order->getCertificate();
53
+	}
50 54
 
51 55
 	//finally, here's how we revoke
52 56
     //echo "REVOKING...\n";
Please login to merge, or discard this patch.
examples/exampleHTTP.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,9 @@  discard block
 block discarded – undo
35 35
             // set.
36 36
 			$folder = '/path/to/' . $challenge['identifier'] . '/.well-known/acme-challenge/';
37 37
 			// Check if that directory yet exists. If not, create it.
38
-			if(!file_exists($folder)) mkdir($folder, 0777, true);
38
+			if(!file_exists($folder)) {
39
+				mkdir($folder, 0777, true);
40
+			}
39 41
 			// Store the challenge file for this domain.
40 42
 			file_put_contents($folder . $challenge['filename'], $challenge['content']);
41 43
 			// Let LetsEncrypt verify this challenge.
@@ -47,10 +49,14 @@  discard block
 block discarded – undo
47 49
 if($order->allAuthorizationsValid())
48 50
 {
49 51
 	// Finalize the order first, if that is not yet done.
50
-	if(!$order->isFinalized()) $order->finalizeOrder();
52
+	if(!$order->isFinalized()) {
53
+		$order->finalizeOrder();
54
+	}
51 55
 	// Check whether the order has been finalized before we can get the certificate. If finalized, get the certificate.
52
-	if($order->isFinalized()) $order->getCertificate();
53
-}
56
+	if($order->isFinalized()) {
57
+		$order->getCertificate();
58
+	}
59
+	}
54 60
 
55 61
 echo "\nDiagnostic logs\n";
56 62
 $logger->dumpConsole();
57 63
\ No newline at end of file
Please login to merge, or discard this patch.