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/Entity.php 1 location

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

src/Core/Helpers/AssetsAbstract.php 1 location

@@ 126-132 (lines=7) @@
123
        }
124
    }
125
    
126
    private function setAttribute(&$a_entity, $attr, $val)
127
    {
128
        if ($attr === 'id' && ($val === 'untitled' || is_numeric($val)))
129
            return;
130
    
131
            $a_entity->setAttribute($attr, $val);
132
    }
133
}
134