Code Duplication    Length = 12-13 lines in 2 locations

src/system/RoutesModule/Entity/Base/AbstractRouteEntity.php 1 location

@@ 734-745 (lines=12) @@
731
     *
732
     * @return string The display title
733
     */
734
    public function getTitleFromDisplayPattern()
735
    {
736
        $listHelper = ServiceUtil::get('zikula_routes_module.listentries_helper');
737
    
738
        $formattedTitle = ''
739
                . $this->getPath()
740
                . ' ('
741
                . $this->getSort()
742
                . ')';
743
    
744
        return $formattedTitle;
745
    }
746
    
747
    
748
    /**

src/system/RoutesModule/Entity/Historical/v110/Base/AbstractRouteEntity.php 1 location

@@ 874-886 (lines=13) @@
871
     *
872
     * @return string The display title
873
     */
874
    public function getTitleFromDisplayPattern()
875
    {
876
        $serviceManager = ServiceUtil::getManager();
877
        $listHelper = $serviceManager->get('zikula_routes_module.listentries_helper');
878
879
        $formattedTitle = ''
880
                . $this->getPath()
881
                . ' ('
882
                . $this->getSort()
883
                . ')';
884
885
        return $formattedTitle;
886
    }
887
888
889
    /**