Reformat getIdFromName()

Fixes strict PHP warning