Code Duplication    Length = 8-9 lines in 2 locations

src/system/RoutesModule/Twig/Base/AbstractTwigExtension.php 1 location

@@ 101-108 (lines=8) @@
98
     *
99
     * @return array
100
     */
101
    public function getFilters()
102
    {
103
        return [
104
            new \Twig_SimpleFilter('zikularoutesmodule_listEntry', [$this, 'getListEntry']),
105
            new \Twig_SimpleFilter('zikularoutesmodule_formattedTitle', [$this, 'getFormattedEntityTitle']),
106
            new \Twig_SimpleFilter('zikularoutesmodule_objectState', [$this, 'getObjectState'], ['is_safe' => ['html']])
107
        ];
108
    }
109
    
110
    /**
111
     * The zikularoutesmodule_objectState filter displays the name of a given object's workflow state.

src/system/RoutesModule/Twig/TwigExtension.php 1 location

@@ 41-49 (lines=9) @@
38
    /**
39
     * @inheritDoc
40
     */
41
    public function getFilters()
42
    {
43
        return [
44
            new \Twig_SimpleFilter('zikularoutesmodule_listEntry', [$this, 'getListEntry']), // from base class
45
            new \Twig_SimpleFilter('zikularoutesmodule_formattedTitle', [$this, 'getFormattedEntityTitle']), // from base class
46
            new \Twig_SimpleFilter('zikularoutesmodule_arrayToString', [$this, 'displayArrayAsString']),
47
            new \Twig_SimpleFilter('zikularoutesmodule_pathToString', [$this, 'displayPathAsString'])
48
        ];
49
    }
50
51
    /**
52
     * Sets the service container.