Completed
Push — master ( 91cf24...bd630a )
by Steve
01:42
created
src/RequestHandler/DiceRequestHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
             return $this->writeAppropriateFormatResponse($request, $diceResponse, $diceCollection);
42 42
         } catch (UncreatableDiceException $creationError) {
43 43
             return $diceResponse->withStatus(400)
44
-                ->write("Unable to roll diceCollection: " . $creationError->getMessage());
44
+                ->write("Unable to roll diceCollection: ".$creationError->getMessage());
45 45
         } catch (UnrenderableDiceException $renderError) {
46 46
             return $diceResponse->withStatus(400)
47
-                ->write("Unable to render request: " . $renderError->getMessage());
47
+                ->write("Unable to render request: ".$renderError->getMessage());
48 48
         }
49 49
     }
50 50
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 ->withHeader("Content-Type", $renderer->contentType());
75 75
         } catch (UnknownRendererException $error) {
76 76
             return $response->withStatus(406)
77
-                ->write("Not sure how to respond with: " . $requestedContentType);
77
+                ->write("Not sure how to respond with: ".$requestedContentType);
78 78
         }
79 79
     }
80 80
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $rolledValue = $request->getHeader('totally-legit')[0];
89 89
         return array_map(
90
-            function (Dice $dice) use ($rolledValue) {
90
+            function(Dice $dice) use ($rolledValue) {
91 91
                 return new TotallyLegit($dice, (int) $rolledValue);
92 92
             },
93 93
             $diceCollection
Please login to merge, or discard this patch.