Code Duplication    Length = 8-8 lines in 2 locations

src/Core/Animation.php 1 location

@@ 182-189 (lines=8) @@
179
     *
180
     * @param \DOMElement $a_entity            
181
     */
182
    private function appendAttributes(\DOMElement &$a_entity)
183
    {
184
        foreach ($this->attrs as $attr => $val) {
185
            if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
186
                continue;
187
            $a_entity->setAttribute($attr, $val);
188
        }
189
    }
190
}
191

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