Code Duplication    Length = 13-13 lines in 2 locations

src/Kunstmaan/NodeSearchBundle/Configuration/NodePagesConfiguration.php 2 locations

@@ 564-576 (lines=13) @@
561
        }
562
563
        $doc['content'] = '';
564
        if ($page instanceof SearchViewTemplateInterface) {
565
            if ($this->isMethodOverridden('renderCustomSearchView')) {
566
                @trigger_error(sprintf('Overriding the "%s" method is deprecated since KunstmaanNodeSearchBundle 5.7 and will be removed in KunstmaanNodeSearchBundle 6.0. Override the "renderCustomSearchView" method of the "%s" service instead.', __METHOD__, SearchViewRenderer::class), E_USER_DEPRECATED);
567
568
                $doc['content'] = $this->renderCustomSearchView($nodeTranslation, $page, $this->container->get('templating'));
569
            } else {
570
                $searchViewRenderer = $this->container->get('kunstmaan_node_search.service.search_view_renderer');
571
572
                $doc['content'] = $searchViewRenderer->renderCustomSearchView($nodeTranslation, $page, $this->container);
573
            }
574
575
            return null;
576
        }
577
578
        if ($page instanceof HasPagePartsInterface) {
579
            if ($this->isMethodOverridden('renderDefaultSearchView')) {
@@ 578-590 (lines=13) @@
575
            return null;
576
        }
577
578
        if ($page instanceof HasPagePartsInterface) {
579
            if ($this->isMethodOverridden('renderDefaultSearchView')) {
580
                @trigger_error(sprintf('Overriding the "%s" method is deprecated since KunstmaanNodeSearchBundle 5.7 and will be removed in KunstmaanNodeSearchBundle 6.0. Override the "renderDefaultSearchView" method of the "%s" service instead.', __METHOD__, SearchViewRenderer::class), E_USER_DEPRECATED);
581
582
                $doc['content'] = $this->renderDefaultSearchView($nodeTranslation, $page, $this->container->get('templating'));
583
            } else {
584
                $searchViewRenderer = $this->container->get('kunstmaan_node_search.service.search_view_renderer');
585
586
                $doc['content'] = $searchViewRenderer->renderDefaultSearchView($nodeTranslation, $page);
587
            }
588
589
            return null;
590
        }
591
    }
592
593
    /**