Translation/HistoryManager.php 1 location
|
@@ 63-72 (lines=10) @@
|
| 60 |
|
* |
| 61 |
|
* @throws BadRequestHttpException |
| 62 |
|
*/ |
| 63 |
|
private function parseJsonContent(Request $request) |
| 64 |
|
{ |
| 65 |
|
$content = json_decode($request->getContent(), true); |
| 66 |
|
|
| 67 |
|
if (empty($content)) { |
| 68 |
|
throw new BadRequestHttpException('No content found.'); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
return $content; |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
|
Translation/TranslationManager.php 1 location
|
@@ 241-250 (lines=10) @@
|
| 238 |
|
* |
| 239 |
|
* @throws BadRequestHttpException |
| 240 |
|
*/ |
| 241 |
|
private function parseJsonContent(Request $request) |
| 242 |
|
{ |
| 243 |
|
$content = json_decode($request->getContent(), true); |
| 244 |
|
|
| 245 |
|
if (empty($content)) { |
| 246 |
|
throw new BadRequestHttpException('No content found.'); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
return $content; |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
/** |
| 253 |
|
* Commits document into elasticsearch client. |