Code Duplication    Length = 13-13 lines in 2 locations

htdocs/src/Oc/Menu/Renderer/MainRenderer.php 2 locations

@@ 230-242 (lines=13) @@
227
        return $this->format($text, 'link', $item->getLevel(), $options);
228
    }
229
230
    protected function renderLinkElement(ItemInterface $item, array $options)
231
    {
232
        $childrenClass = (array) $item->getChildrenAttribute('class');
233
234
        if ($options['linkClass']) {
235
            $childrenClass[] = $options['linkClass'];
236
        }
237
238
        $childrenAttributes = $item->getChildrenAttributes();
239
        $childrenAttributes['class'] = implode(' ', $childrenClass);
240
241
        return sprintf('<a href="%s"%s>%s</a>', $this->escape($item->getUri()), $this->renderHtmlAttributes($childrenAttributes), $this->renderLabel($item, $options));
242
    }
243
244
    protected function renderSpanElement(ItemInterface $item, array $options)
245
    {
@@ 244-256 (lines=13) @@
241
        return sprintf('<a href="%s"%s>%s</a>', $this->escape($item->getUri()), $this->renderHtmlAttributes($childrenAttributes), $this->renderLabel($item, $options));
242
    }
243
244
    protected function renderSpanElement(ItemInterface $item, array $options)
245
    {
246
        $childrenClass = (array) $item->getChildrenAttribute('class');
247
248
        if ($options['textClass']) {
249
            $childrenClass[] = $options['textClass'];
250
        }
251
252
        $childrenAttributes = $item->getChildrenAttributes();
253
        $childrenAttributes['class'] = implode(' ', $childrenClass);
254
255
        return sprintf('<span%s>%s</span>', $this->renderHtmlAttributes($childrenAttributes), $this->renderLabel($item, $options));
256
    }
257
258
    protected function renderLabel(ItemInterface $item, array $options)
259
    {