Code Duplication    Length = 7-7 lines in 3 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/Helpers/AssetsAbstract.php 1 location

@@ 114-120 (lines=7) @@
111
        }
112
    }
113
    
114
    private function setAttribute(&$a_entity, $attr, $val)
115
    {
116
        if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
117
            return;
118
    
119
            $a_entity->setAttribute($attr, $val);
120
    }
121
}
122

src/Core/Entity.php 1 location

@@ 291-297 (lines=7) @@
288
        }
289
    }
290
291
    private function setAttribute(&$a_entity, $attr, $val)
292
    {
293
        if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
294
            return;
295
        
296
        $a_entity->setAttribute($attr, $val);
297
    }
298
299
    /**
300
     * Append childern to entities DOM element