Code Duplication    Length = 3-5 lines in 2 locations

src/delivery/web/renderers/ListRenderer.php 1 location

@@ 31-35 (lines=5) @@
28
     */
29
    public function render($value) {
30
        $items = [];
31
        foreach ($value as $item) {
32
            $items[] = new Element('li', [], [
33
                $this->renderers->getRenderer($item)->render($item)
34
            ]);
35
        }
36
        return (string)new Element('ul', ['class' => 'list-unstyled'], $items);
37
    }
38
}

src/delivery/web/renderers/tables/TableRenderer.php 1 location

@@ 64-66 (lines=3) @@
61
        $rows = [];
62
        foreach ($table->getItems() as $item) {
63
            $row = [new Element('td', [], $this->printer->createDropDown($item))];
64
            foreach ($table->getCells($item) as $cell) {
65
                $row[] = new Element('td', [], [$this->renderers->getRenderer($cell)->render($cell)]);
66
            }
67
68
            $rows[] = new Element('tr', [], $row);
69
        }