| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function decode($rawBody) |
||
| 46 | { |
||
| 47 | $parsedBody = json_decode($rawBody, $this->assoc, 512, JSON_BIGINT_AS_STRING); |
||
| 48 | |||
| 49 | if (json_last_error() !== JSON_ERROR_NONE) { |
||
| 50 | throw new \RuntimeException(sprintf('JSON request body parsing error: %s', json_last_error_msg())); |
||
| 51 | } |
||
| 52 | |||
| 53 | return $parsedBody; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |