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

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