Completed
Push — master ( 58e332...227694 )
by Steve
02:48 queued 32s
created
src/DiceApp.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
         $this->get("/dice-stats", [$this, 'diceStats']);
25 25
         $this->get("{dice:(?:/[0-9]*[dD][0-9]+)+/?}", [$this->diceRequestHandler, 'getDice']);
26 26
 
27
-        $this->get("/html{dice:(?:/[0-9]*[dD][0-9]+)+/?}", function (Request $request, $response, $args) {
27
+        $this->get("/html{dice:(?:/[0-9]*[dD][0-9]+)+/?}", function(Request $request, $response, $args) {
28 28
             return $this->diceRequestHandler->getDice(
29 29
                 $request->withHeader('accept', 'text/html'),
30 30
                 $response,
31 31
                 $args
32 32
             );
33 33
         });
34
-        $this->get("/json{dice:(?:/[0-9]*[dD][0-9]+)+/?}", function (Request $request, $response, $args) {
34
+        $this->get("/json{dice:(?:/[0-9]*[dD][0-9]+)+/?}", function(Request $request, $response, $args) {
35 35
             return $this->diceRequestHandler->getDice(
36 36
                 $request->withHeader('accept', 'application/json'),
37 37
                 $response,
Please login to merge, or discard this patch.
src/RequestHandler/DiceRequestHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     {
70 70
         $rolledValue = $request->getHeader('totally-legit')[0];
71 71
         return array_map(
72
-            function (Dice $dice) use ($rolledValue) {
72
+            function(Dice $dice) use ($rolledValue) {
73 73
                 return new TotallyLegit($dice, (int) $rolledValue);
74 74
             },
75 75
             $dice
Please login to merge, or discard this patch.