@@ -41,10 +41,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |