Code Duplication    Length = 3-3 lines in 4 locations

src/system/RoutesModule/Helper/Base/AbstractCollectionFilterHelper.php 1 location

@@ 71-73 (lines=3) @@
68
     */
69
    public function getViewQuickNavParameters($objectType = '', $context = '', $args = [])
70
    {
71
        if (!in_array($context, ['controllerAction', 'api', 'actionHandler', 'block', 'contentType'])) {
72
            $context = 'controllerAction';
73
        }
74
    
75
        if ($objectType == 'route') {
76
            return $this->getViewQuickNavParametersForRoute($context, $args);

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

@@ 95-97 (lines=3) @@
92
     */
93
    public function getObjectTypes($context = '', array $args = [])
94
    {
95
        if (!in_array($context, ['controllerAction', 'api', 'helper', 'actionHandler', 'block', 'contentType', 'util'])) {
96
            $context = 'controllerAction';
97
        }
98
    
99
        $allowedObjectTypes = [];
100
        $allowedObjectTypes[] = 'route';
@@ 115-117 (lines=3) @@
112
     */
113
    public function getDefaultObjectType($context = '', array $args = [])
114
    {
115
        if (!in_array($context, ['controllerAction', 'api', 'helper', 'actionHandler', 'block', 'contentType', 'util'])) {
116
            $context = 'controllerAction';
117
        }
118
    
119
        return 'route';
120
    }
@@ 295-297 (lines=3) @@
292
     */
293
    public function addTemplateParameters($objectType = '', array $parameters = [], $context = '', array $args = [])
294
    {
295
        if (!in_array($context, ['controllerAction', 'api', 'actionHandler', 'block', 'contentType', 'mailz'])) {
296
            $context = 'controllerAction';
297
        }
298
    
299
        if ($context == 'controllerAction') {
300
            if (!isset($args['action'])) {