@@ -77,10 +77,17 @@ |
||
| 77 | 77 | return $responseWithOutput; |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param Dice[] $dice |
|
| 82 | + */ |
|
| 80 | 83 | private function makeDiceTotallyLegit($dice, Request $request) |
| 81 | 84 | { |
| 82 | 85 | $rolledValue = $request->getHeader('totally-legit')[0]; |
| 83 | 86 | return array_map( |
| 87 | + |
|
| 88 | + /** |
|
| 89 | + * @param Dice[] $dice |
|
| 90 | + */ |
|
| 84 | 91 | function (Dice $dice) use ($rolledValue) { |
| 85 | 92 | return new TotallyLegit($dice, (int) $rolledValue); |
| 86 | 93 | }, |