Completed
Pull Request — master (#16)
by Steve
03:28
created
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/Renderer/Protobuf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
     private function diceAsProtos(array $diceCollection)
35 35
     {
36
-        return array_map(function (Dice $dice) {
36
+        return array_map(function(Dice $dice) {
37 37
             $proto = new \MeadSteve\DiceApi\Protos\V1\Dice();
38 38
             $proto->setValue($dice->roll());
39 39
             $proto->setName($dice->name());
Please login to merge, or discard this patch.