Completed
Push — master ( 5ca9ee...00502f )
by Steve
02:07
created
src/DiceApp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function index(Request $request, Response $response)
27 27
     {
28
-        $indexFilePath = __DIR__ . "/generated-index.html";
28
+        $indexFilePath = __DIR__."/generated-index.html";
29 29
         if (!file_exists($indexFilePath)) {
30 30
             $converter = new CommonMarkConverter();
31
-            $indexBody = $converter->convertToHtml(file_get_contents(__DIR__ . "/../README.md"));
32
-            $indexContent = file_get_contents(__DIR__ . "/../www/templates/index.html");
31
+            $indexBody = $converter->convertToHtml(file_get_contents(__DIR__."/../README.md"));
32
+            $indexContent = file_get_contents(__DIR__."/../www/templates/index.html");
33 33
             $indexContent = str_replace("{{body}}", $indexBody, $indexContent);
34 34
             file_put_contents($indexFilePath, $indexContent);
35 35
             $response->write($indexContent);
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
         $this->get(
59 59
             "/html{dice:(?:/[0-9]*[dD][0-9]+)+/?}",
60
-            function (Request $request, $response, $args) use ($diceRequestHandler) {
60
+            function(Request $request, $response, $args) use ($diceRequestHandler) {
61 61
                 return $diceRequestHandler->getDice(
62 62
                     $request->withHeader('accept', 'text/html'),
63 63
                     $response,
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         );
68 68
         $this->get(
69 69
             "/json{dice:(?:/[0-9]*[dD][0-9]+)+/?}",
70
-            function (Request $request, $response, $args) use ($diceRequestHandler) {
70
+            function(Request $request, $response, $args) use ($diceRequestHandler) {
71 71
                 return $diceRequestHandler->getDice(
72 72
                     $request->withHeader('accept', 'application/json'),
73 73
                     $response,
Please login to merge, or discard this patch.