Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 236-245 (lines=10) @@
233
     *
234
     * @throws BadRequestHttpException
235
     */
236
    private function parseJsonContent(Request $request)
237
    {
238
        $content = json_decode($request->getContent(), true);
239
240
        if (empty($content)) {
241
            throw new BadRequestHttpException('No content found.');
242
        }
243
244
        return $content;
245
    }
246
247
    /**
248
     * Commits document into elasticsearch client.