The PHP code seems to have about 6 different ways to find the root path for files: `web_root` `glob_file` `image_file` `plugin_file` `plugin_url` `image_url` `plist_url` These should be simplified to just one method.
The PHP code seems to have about 6 different ways to find the root path for files:
web_rootglob_fileimage_fileplugin_fileplugin_urlimage_urlplist_urlThese should be simplified to just one method.