Code Duplication    Length = 3-3 lines in 3 locations

module/UIComponents/src/UIComponents/View/Helper/AbstractHelper.php 1 location

@@ 238-240 (lines=3) @@
235
        $body = $this->getContent();
236
        
237
        $content = (array($header, $body, $footer));
238
        if ( is_array($body) && !isset($body["tagname"])) {
239
            $content = array_merge(array($header), ($body), array($footer));
240
        }
241
        
242
        $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array)$this->getAttributes(), $content);
243

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

@@ 78-80 (lines=3) @@
75
        }
76
        
77
        $content = (array($header, $body, $footer));
78
        if ( is_array($body) && !isset($body["tagname"])) {
79
            $content = array_merge(array($header), ($body), array($footer));
80
        }
81
        
82
        $contentElement = $this->_createElement($this->getTagname(), $this->getClassnamesContent(), (array)$this->getAttributes(), $content);
83
        $dialogElement = $this->_createElement($this->getTagname(), $this->getClassnamesDialog(), [], $contentElement);

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

@@ 73-75 (lines=3) @@
70
        }
71
        
72
        $content = (array($header, $body, $footer));
73
        if ( is_array($body) && !isset($body["tagname"])) {
74
            $content = array_merge(array($header), ($body), array($footer));
75
        }
76
        
77
        $component = $this->_createElement($this->getTagname(), $this->getClassnames(), (array)$this->getAttributes(), $content);
78