Completed
Pull Request — master (#17)
by Steve
03:18 queued 01:10
created
spec/Counters/RedisCounterSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Predis\Connection\ConnectionException;
8 8
 use Prophecy\Argument;
9 9
 
10
-require_once __DIR__ . "/RedisClientMock.php";
10
+require_once __DIR__."/RedisClientMock.php";
11 11
 
12 12
 class RedisCounterSpec extends ObjectBehavior
13 13
 {
Please login to merge, or discard this patch.
spec/Dice/FateDiceSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public function getMatchers(): array
26 26
     {
27 27
         return [
28
-            'beOneOf' => function ($value, $subject) {
28
+            'beOneOf' => function($value, $subject) {
29 29
                 return in_array($value, $subject);
30 30
             },
31 31
         ];
Please login to merge, or discard this patch.
scripts/build_index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 use MeadSteve\DiceApi\DiceApp;
4 4
 
5
-require __DIR__ . "/../vendor/autoload.php";
5
+require __DIR__."/../vendor/autoload.php";
6 6
 
7 7
 DiceApp::buildIndex();
8 8
\ No newline at end of file
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
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 class DiceApp extends App
12 12
 {
13
-    private const indexFilePath = __DIR__ . "/generated-index.html";
13
+    private const indexFilePath = __DIR__."/generated-index.html";
14 14
     private $diceCounter;
15 15
     private $diceRequestHandler;
16 16
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     public static function buildIndex()
36 36
     {
37 37
         $converter = new CommonMarkConverter();
38
-        $indexBody = $converter->convertToHtml(file_get_contents(__DIR__ . "/../README.md"));
39
-        $indexContent = file_get_contents(__DIR__ . "/../www/templates/index.html");
38
+        $indexBody = $converter->convertToHtml(file_get_contents(__DIR__."/../README.md"));
39
+        $indexContent = file_get_contents(__DIR__."/../www/templates/index.html");
40 40
         $indexContent = str_replace("{{body}}", $indexBody, $indexContent);
41 41
         file_put_contents(self::indexFilePath, $indexContent);
42 42
         return $indexContent;
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $diceRequestHandler = $this->diceRequestHandler;
84 84
         $this->get(
85
-            "/{$path}" . self::DICE_PATH_REGEX,
86
-            function (Request $request, $response, $args) use ($diceRequestHandler, $contentType) {
85
+            "/{$path}".self::DICE_PATH_REGEX,
86
+            function(Request $request, $response, $args) use ($diceRequestHandler, $contentType) {
87 87
                 return $diceRequestHandler->getDice(
88 88
                     $request->withHeader('accept', $contentType),
89 89
                     $response,
Please login to merge, or discard this patch.