We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 58-64 (lines=7) @@ | ||
| 55 | ||
| 56 | // JSON object |
|
| 57 | switch ($contentType) { |
|
| 58 | case static::CONTENT_TYPE_JSON: |
|
| 59 | $parsedBody = json_decode($request->getContent(), true); |
|
| 60 | ||
| 61 | if (JSON_ERROR_NONE !== json_last_error()) { |
|
| 62 | throw new BadRequestHttpException('POST body sent invalid JSON'); |
|
| 63 | } |
|
| 64 | break; |
|
| 65 | ||
| 66 | case static::CONTENT_TYPE_FORM_DATA: |
|
| 67 | $parsedBody = $this->handleUploadedFiles($request->request->all(), $request->files->all()); |
|
| @@ 45-55 (lines=11) @@ | ||
| 42 | break; |
|
| 43 | ||
| 44 | // JSON object |
|
| 45 | case static::CONTENT_TYPE_JSON: |
|
| 46 | if (empty($body)) { |
|
| 47 | throw new BadRequestHttpException('The request content body must not be empty when using json content type request.'); |
|
| 48 | } |
|
| 49 | ||
| 50 | $parsedBody = json_decode($body, true); |
|
| 51 | ||
| 52 | if (JSON_ERROR_NONE !== json_last_error()) { |
|
| 53 | throw new BadRequestHttpException('POST body sent invalid JSON'); |
|
| 54 | } |
|
| 55 | break; |
|
| 56 | ||
| 57 | // URL-encoded query-string |
|
| 58 | case static::CONTENT_TYPE_FORM: |
|