Code Duplication    Length = 10-10 lines in 2 locations

lib/Elements/AbstractTableSection.php 1 location

@@ 124-133 (lines=10) @@
121
    }
122
123
    
124
    public function toDOMElement(\DOMDocument $doc): \DOMElement
125
    {
126
        $el = $this->createElement($doc);
127
        
128
        foreach($this->getRows() as $row) {
129
            $el->appendChild($row->toDOMElement($doc));
130
        }
131
        
132
        return $el;
133
    }
134
135
}
136

lib/Elements/Entry.php 1 location

@@ 86-95 (lines=10) @@
83
        return 'entry';
84
    }
85
86
    public function toDOMElement(\DOMDocument $doc): \DOMElement
87
    {
88
        $el = $this->createElement($doc);
89
        
90
        foreach ($this->getActs() as $act) {
91
            $el->appendChild($act->toDOMElement($doc));
92
        }
93
        
94
        return $el;
95
    }
96
97
}
98