@@ -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()); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool(); |
| 13 | 13 | |
| 14 | 14 | if (static::$is_initialized == true) { |
| 15 | - return; |
|
| 15 | + return; |
|
| 16 | 16 | } |
| 17 | 17 | $pool->internalAddGeneratedFile(hex2bin( |
| 18 | 18 | "0abf010a1170726f746f732f646963652e70726f746f121b4d6561645374" . |
@@ -15,12 +15,12 @@ |
||
| 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 | |