@@ -15,7 +15,7 @@ discard block |
||
| 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 |
||
| 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 | ]); |
@@ -33,7 +33,7 @@ |
||
| 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()); |