Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 99-104 (lines=6) @@
96
        /* @var $escaper \Zend\View\Helper\EscapeHtmlAttr */
97
        $escaper = $this->view->plugin('escapeHtmlAttr');
98
99
        if ($found) {
100
            $foundPage    = $found['page'];
101
            $foundDepth = $found['depth'];
102
        } else {
103
            $foundPage = null;
104
        }
105
106
        // create iterator
107
        $iterator = new RecursiveIteratorIterator(

module/UIComponents/src/UIComponents/View/Helper/Navigation/Menu.php 1 location

@@ 212-217 (lines=6) @@
209
        /* @var $escaper \Zend\View\Helper\EscapeHtmlAttr */
210
        $escaper = $this->view->plugin('escapeHtmlAttr');
211
212
        if ($found) {
213
            $foundPage    = $found['page'];
214
            $foundDepth = $found['depth'];
215
        } else {
216
            $foundPage = null;
217
        }
218
219
        // create iterator
220
        $iterator = new RecursiveIteratorIterator(