I'm not really comfortable with the fact that $inId is not filtered inside this method. As the method is public, any plugin can call it, and we are not sure that $inId has been filtered first. Please add an intval($inId).