Code Duplication    Length = 7-7 lines in 2 locations

src/Core/Animation.php 1 location

@@ 195-201 (lines=7) @@
192
        }
193
    }
194
    
195
    private function setAttribute(&$a_entity, $attribute, $val)
196
    {
197
        if ($attribute === 'id' && ($val === 'untitled' || is_numeric($val)))
198
            return;
199
    
200
        $a_entity->setAttribute($attribute, $val);
201
    }
202
    
203
}
204

src/Core/Entity.php 1 location

@@ 284-290 (lines=7) @@
281
        }
282
    }
283
284
    private function setAttribute(&$a_entity, $attr, $val)
285
    {
286
        if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
287
            return;
288
        
289
        $a_entity->setAttribute($attr, $val);
290
    }
291
292
    /**
293
     * Append childern to entities DOM element