Code Duplication    Length = 5-5 lines in 2 locations

module/UIComponents/src/UIComponents/View/Helper/Components/Button.php 1 location

@@ 110-114 (lines=5) @@
107
        }
108
        
109
        // tag content
110
        if ( isset($options["label"]) && !empty($options["label"]) ) {
111
            $component->setContent($options["label"]);
112
        } else if ( isset($options["content"]) && !empty($options["content"]) ) {
113
            $component->setContent($options["content"]);
114
        }
115
        
116
        //$component = clone $this;
117
        return $component;

module/UIComponents/src/UIComponents/View/Helper/Components/Buttongroup.php 1 location

@@ 73-77 (lines=5) @@
70
        
71
        
72
        
73
        if ( isset($options["buttons"]) && !empty($options["buttons"]) ) {
74
            $component->setContent($options["buttons"]);
75
        } else if ( isset($options["content"]) && !empty($options["content"]) ) {
76
            $component->setContent($options["content"]);
77
        }
78
79
        return $component;
80
    }