Code Duplication    Length = 8-8 lines in 2 locations

src/Core/Entity.php 1 location

@@ 277-284 (lines=8) @@
274
     *
275
     * @param \DOMElement $a_entity            
276
     */
277
    private function appendAttributes(\DOMElement &$a_entity)
278
    {
279
        foreach ($this->attrs as $attr => $val) {
280
            if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
281
                continue;
282
            $a_entity->setAttribute($attr, $val);
283
        }
284
    }
285
286
    /**
287
     * Append childern to entities DOM element

src/Core/Animation.php 1 location

@@ 188-195 (lines=8) @@
185
     *
186
     * @param \DOMElement $a_entity            
187
     */
188
    private function appendAttributes(\DOMElement &$a_entity)
189
    {
190
        foreach ($this->attrs as $attr => $val) {
191
            if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
192
                continue;
193
            $a_entity->setAttribute($attr, $val);
194
        }
195
    }
196
}
197