Completed
Push — master ( 12ea9a...ae2bec )
by Steve
01:53
created
www/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 use MeadSteve\DiceApi\RequestHandler\DiceRequestHandler;
14 14
 use Predis\Client;
15 15
 
16
-require __DIR__ . "/../vendor/autoload.php";
16
+require __DIR__."/../vendor/autoload.php";
17 17
 
18 18
 $diceGenerator = new UrlDiceGenerator(
19 19
     new DiceFactoryCollection([
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 $rendererCollection = new RendererCollection([
26 26
     new Json(),
27
-    new Html('http://' . $_SERVER['HTTP_HOST'])
27
+    new Html('http://'.$_SERVER['HTTP_HOST'])
28 28
 ]);
29 29
 
30 30
 if (isset($_ENV['REDIS_URL'])) {
Please login to merge, or discard this patch.
src/DiceApp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function index(Request $request, Response $response)
29 29
     {
30
-        $indexFilePath = __DIR__ . "/generated-index.html";
30
+        $indexFilePath = __DIR__."/generated-index.html";
31 31
         if (!file_exists($indexFilePath)) {
32 32
             $converter = new CommonMarkConverter();
33
-            $indexBody = $converter->convertToHtml(file_get_contents(__DIR__ . "/../README.md"));
34
-            $indexContent = file_get_contents(__DIR__ . "/../www/templates/index.html");
33
+            $indexBody = $converter->convertToHtml(file_get_contents(__DIR__."/../README.md"));
34
+            $indexContent = file_get_contents(__DIR__."/../www/templates/index.html");
35 35
             $indexContent = str_replace("{{body}}", $indexBody, $indexContent);
36 36
             file_put_contents($indexFilePath, $indexContent);
37 37
             $response->write($indexContent);
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 
60 60
         foreach ($this->diceRequestHandler->contentTypesForPaths() as $path => $contentType) {
61 61
             $this->get(
62
-                "/{$path}" . self::DICE_PATH_REGEX,
63
-                function (Request $request, $response, $args) use ($diceRequestHandler, $contentType) {
62
+                "/{$path}".self::DICE_PATH_REGEX,
63
+                function(Request $request, $response, $args) use ($diceRequestHandler, $contentType) {
64 64
                     return $diceRequestHandler->getDice(
65 65
                         $request->withHeader('accept', $contentType),
66 66
                         $response,
Please login to merge, or discard this patch.