Code Duplication    Length = 10-11 lines in 2 locations

src/system/RoutesModule/Helper/Base/AbstractControllerHelper.php 2 locations

@@ 93-103 (lines=11) @@
90
     *
91
     * @return array List of allowed object types
92
     */
93
    public function getObjectTypes($context = '', $args = [])
94
    {
95
        if (!in_array($context, ['controllerAction', 'api', 'helper', 'actionHandler', 'block', 'contentType', 'util'])) {
96
            $context = 'controllerAction';
97
        }
98
    
99
        $allowedObjectTypes = [];
100
        $allowedObjectTypes[] = 'route';
101
    
102
        return $allowedObjectTypes;
103
    }
104
105
    /**
106
     * Returns the default object type in ZikulaRoutesModule.
@@ 113-122 (lines=10) @@
110
     *
111
     * @return string The name of the default object type
112
     */
113
    public function getDefaultObjectType($context = '', $args = [])
114
    {
115
        if (!in_array($context, ['controllerAction', 'api', 'helper', 'actionHandler', 'block', 'contentType', 'util'])) {
116
            $context = 'controllerAction';
117
        }
118
    
119
        $defaultObjectType = 'route';
120
    
121
        return $defaultObjectType;
122
    }
123
124
    /**
125
     * Retrieve identifier parameters for a given object type.