added missing s of getMetadatas();
removed check if $moduleId is type of int, because it is type of string;