| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | protected static function getParamFromRequest(JsonRequest|Request $request, string $param): mixed |
||
| 33 | { |
||
| 34 | if (! is_a($request, JsonRequest::class)) { |
||
| 35 | throw new RuntimeException('Json Request is required for this to work.'); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $request->getParsedJsonParam($param); |
||
| 39 | } |
||
| 41 |