Completed
Push — master ( f17f49...7ccd2a )
by Steve
01:32
created
src/DiceApp.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 class DiceApp extends App
16 16
 {
17 17
     const DICE_PATH_REGEX = "{dice:(?:/[0-9]*[dD][^\/]+)+/?}";
18
-    private const INDEX_FILE_PATH = __DIR__ . "/generated-index.html";
18
+    private const INDEX_FILE_PATH = __DIR__."/generated-index.html";
19 19
 
20 20
     /**
21 21
      * @var DiceCounter
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         $this->diceCounter = $diceCounter;
36 36
 
37 37
         $this->setupRoutes();
38
-        $this->tip = function () {
38
+        $this->tip = function() {
39 39
         };
40 40
     }
41 41
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     public static function buildIndex(): string
47 47
     {
48 48
         $converter = new CommonMarkConverter();
49
-        $indexBody = $converter->convertToHtml(file_contents(__DIR__ . "/../README.md"));
50
-        $indexContent = file_contents(__DIR__ . "/../www/templates/index.html");
49
+        $indexBody = $converter->convertToHtml(file_contents(__DIR__."/../README.md"));
50
+        $indexContent = file_contents(__DIR__."/../www/templates/index.html");
51 51
         $indexContent = str_replace("{{body}}", $indexBody, $indexContent);
52 52
         file_put_contents(self::INDEX_FILE_PATH, $indexContent);
53 53
         return $indexContent;
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $diceRequestHandler = $this->diceRequestHandler;
96 96
         $this->get(
97
-            "/{$path}" . self::DICE_PATH_REGEX,
98
-            function (Request $request, Response $response, $args) use ($diceRequestHandler, $contentType): Response {
97
+            "/{$path}".self::DICE_PATH_REGEX,
98
+            function(Request $request, Response $response, $args) use ($diceRequestHandler, $contentType): Response {
99 99
                 return $diceRequestHandler->getDice(
100 100
                     $request->withHeader('accept', $contentType),
101 101
                     $response,
Please login to merge, or discard this patch.