Completed
Pull Request — master (#18)
by Steve
06:25 queued 04:39
created
spec/UrlDiceGeneratorSpec.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace spec\MeadSteve\DiceApi;
4 4
 
5 5
 use MeadSteve\DiceApi\Dice\BasicDice;
6
-use MeadSteve\DiceApi\Dice;
7 6
 use MeadSteve\DiceApi\Dice\Factories\DiceFactory;
8 7
 use PhpSpec\ObjectBehavior;
9
-use Prophecy\Argument;
10 8
 
11 9
 class UrlDiceGeneratorSpec extends ObjectBehavior
12 10
 {
Please login to merge, or discard this patch.
tests/app-bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,2 +1,2 @@
 block discarded – undo
1 1
 <?php
2
-require_once __DIR__ . "/../vendor/autoload.php";
2
+require_once __DIR__."/../vendor/autoload.php";
Please login to merge, or discard this patch.
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.
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
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 class DiceApp extends App
15 15
 {
16
-    private const INDEX_FILE_PATH = __DIR__ . "/generated-index.html";
16
+    private const INDEX_FILE_PATH = __DIR__."/generated-index.html";
17 17
     private $diceCounter;
18 18
     private $diceRequestHandler;
19 19
 
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     public static function buildIndex()
39 39
     {
40 40
         $converter = new CommonMarkConverter();
41
-        $indexBody = $converter->convertToHtml(file_contents(__DIR__ . "/../README.md"));
42
-        $indexContent = file_contents(__DIR__ . "/../www/templates/index.html");
41
+        $indexBody = $converter->convertToHtml(file_contents(__DIR__."/../README.md"));
42
+        $indexContent = file_contents(__DIR__."/../www/templates/index.html");
43 43
         $indexContent = str_replace("{{body}}", $indexBody, $indexContent);
44 44
         file_put_contents(self::INDEX_FILE_PATH, $indexContent);
45 45
         return $indexContent;
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $diceRequestHandler = $this->diceRequestHandler;
88 88
         $this->get(
89
-            "/{$path}" . self::DICE_PATH_REGEX,
90
-            function (Request $request, $response, $args) use ($diceRequestHandler, $contentType) {
89
+            "/{$path}".self::DICE_PATH_REGEX,
90
+            function(Request $request, $response, $args) use ($diceRequestHandler, $contentType) {
91 91
                 return $diceRequestHandler->getDice(
92 92
                     $request->withHeader('accept', $contentType),
93 93
                     $response,
Please login to merge, or discard this patch.