Code Duplication    Length = 3-3 lines in 2 locations

plugins/Content/src/Controller/Admin/ManageController.php 2 locations

@@ 267-269 (lines=3) @@
264
            throw new ContentNotFoundException(__d('content', 'The requested page was not found.'));
265
        }
266
267
        if (!$content->content_type->userAllowed('translate')) {
268
            throw new ContentTranslateException(__d('content', 'You are not allowed to translate contents of this type ({0}).', $content->content_type->name));
269
        }
270
271
        if (!$content->language || $content->translation_for) {
272
            $this->Flash->danger(__d('content', 'You cannot translate this content.'));
@@ 338-340 (lines=3) @@
335
            throw new ContentNotFoundException(__d('content', 'The requested page was not found.'));
336
        }
337
338
        if (!$content->content_type->userAllowed('translate')) {
339
            throw new ContentDeleteException(__d('content', 'You are not allowed to delete contents of this type ({0}).', $content->content_type->name));
340
        }
341
342
        if ($this->Contents->delete($content, ['atomic' => true])) {
343
            $this->Flash->success(__d('content', 'Content was successfully removed!'));