Add static declaration to File::getByID()

Add static declaration to `File::getByID()`

Method is typically called statically
Merge pull request #1549 from mkly/file_getbyid_static_declaration

Add static declaration to File::getByID()