Completed
Push — master ( 338a27...f17f49 )
by Steve
04:09
created
src/Renderer/Html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
         }
41 41
         $roll = $dice->roll();
42 42
         $url = "{$this->urlRoot}/images/poorly-drawn/{$name}/{$roll}.png";
43
-        return '<img src="' . $url . '" />';
43
+        return '<img src="'.$url.'" />';
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/UrlDiceGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $data = [];
64 64
         $valid = preg_match("/(?P<count>[0-9]+)?d(?P<type>[^\/]+)/i", $part, $data);
65 65
         if (!$valid) {
66
-            throw new UncreatableDiceException("Problem creating dice from incorrectly formatted data: " . $part);
66
+            throw new UncreatableDiceException("Problem creating dice from incorrectly formatted data: ".$part);
67 67
         }
68 68
         if (!$data["count"]) {
69 69
             $data["count"] = 1;
Please login to merge, or discard this patch.
www/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 use MeadSteve\DiceApi\RequestHandler\DiceRequestHandler;
16 16
 use Predis\Client;
17 17
 
18
-require __DIR__ . "/../vendor/autoload.php";
18
+require __DIR__."/../vendor/autoload.php";
19 19
 
20 20
 $diceGenerator = new UrlDiceGenerator(
21 21
     new DiceFactoryCollection([
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
 $rendererCollection = new RendererCollection([
28 28
     new Json(),
29
-    new Html('http://' . $_SERVER['HTTP_HOST']),
29
+    new Html('http://'.$_SERVER['HTTP_HOST']),
30 30
     new Protobuf(),
31 31
     new Plain()
32 32
 ]);
Please login to merge, or discard this patch.
src/Protos/V1/Meta/Dice.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
           return;
16 16
         }
17 17
         $pool->internalAddGeneratedFile(hex2bin(
18
-            "0abf010a1170726f746f732f646963652e70726f746f121b4d6561645374" .
19
-            "6576652e446963654170692e50726f746f732e563122230a044469636512" .
20
-            "0d0a0576616c7565180120012805120c0a046e616d65180220012809223b" .
21
-            "0a08526573706f6e7365122f0a046469636518012003280b32212e4d6561" .
22
-            "6453746576652e446963654170692e50726f746f732e56312e4469636542" .
23
-            "23e202204d65616453746576655c446963654170695c50726f746f735c56" .
18
+            "0abf010a1170726f746f732f646963652e70726f746f121b4d6561645374".
19
+            "6576652e446963654170692e50726f746f732e563122230a044469636512".
20
+            "0d0a0576616c7565180120012805120c0a046e616d65180220012809223b".
21
+            "0a08526573706f6e7365122f0a046469636518012003280b32212e4d6561".
22
+            "6453746576652e446963654170692e50726f746f732e56312e4469636542".
23
+            "23e202204d65616453746576655c446963654170695c50726f746f735c56".
24 24
             "315c4d657461620670726f746f33"
25 25
         ), true);
26 26
 
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.
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/Renderer/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     private function diceAsAssocArrays(array $diceCollection)
37 37
     {
38
-        return array_map(function (Dice $dice): array {
38
+        return array_map(function(Dice $dice): array {
39 39
             return [
40 40
                 "value" => $dice->roll(),
41 41
                 "type"  => $dice->name()
Please login to merge, or discard this patch.