Code Duplication    Length = 3-3 lines in 2 locations

Controller/AdminNodeController.php 2 locations

@@ 79-81 (lines=3) @@
76
        $datagrid = $this->admin->getDatagrid();
77
        $formView = $datagrid->getForm()->createView();
78
79
        if (!$this->container->hasParameter('cms.content_types')) {
80
            throw $this->createNotFoundException('cms.content_types parameters in '.__FILE__.'  file at line '.__LINE__.' in '.__FUNCTION__.' method, has not been  not found, maybe you must be configured cms.yml file');
81
        }
82
83
        $cmsContentType = $this->container->getParameter('cms.content_types');
84
@@ 124-126 (lines=3) @@
121
122
    protected function findContentFromNode(Node $node)
123
    {
124
        if (!$this->container->hasParameter('cms.content_types')) {
125
            throw new NotFoundHttpException('cms.content_types parameters in '.__FILE__.'  file at line '.__LINE__.' in '.__FUNCTION__.' method, has not been  not found, maybe you must be configured cms.yml file');
126
        }
127
128
        $cmsContentType = $this->container->getParameter('cms.content_types');
129
        $entityManager = $this->get('doctrine.orm.entity_manager');