Completed
Push — master ( 4ef727...91cf24 )
by Steve
01:40
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
             $responseWithOutput = $response->withStatus(406);
77
-            $responseWithOutput->write("Not sure how to respond with: " . $requestedContentType);
77
+            $responseWithOutput->write("Not sure how to respond with: ".$requestedContentType);
78 78
         }
79 79
         return $responseWithOutput;
80 80
     }
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $rolledValue = $request->getHeader('totally-legit')[0];
90 90
         return array_map(
91
-            function (Dice $dice) use ($rolledValue) {
91
+            function(Dice $dice) use ($rolledValue) {
92 92
                 return new TotallyLegit($dice, (int) $rolledValue);
93 93
             },
94 94
             $diceCollection
Please login to merge, or discard this patch.