Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 159-163 (lines=5) @@
156
                    ) . 
157
                    ' level_' . $depth . 
158
                '';
159
                if ($ulClass && $depth ==    0) {
160
                    $ulClass = ' class="' . $escaper($ulClass) . '"';
161
                } else {
162
                    $ulClass = ' class="' . $escaper($ulClass) . '"';
163
                }
164
                $html .= $myIndent . '<' . $this->getTagname() . $ulClass . '>' . PHP_EOL;
165
            } elseif ($prevDepth > $depth) {
166
                // close li/ul tags until we're at current depth

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

@@ 272-276 (lines=5) @@
269
                    ) . 
270
                    ' level_' . $depth . 
271
                '';
272
                if ($ulClass && $depth ==    0) {
273
                    $ulClass = ' class="' . $escaper($ulClass) . '"';
274
                } else {
275
                    $ulClass = ' class="' . $escaper($ulClass) . '"';
276
                }
277
                $html .= $myIndent . '<ul' . $ulClass . ' '.($depth == 0 ? $this->htmlAttribs($attributes) : '').'>' . PHP_EOL;
278
            } elseif ($prevDepth > $depth) {
279
                // close li/ul tags until we're at current depth