#55122Cleanup and optimize methods in ExtensionManagementUtility
Description
Methods in ExtenstionManagementUtility are called a lot. We need to ensure they are as performant as possible.
- Reduce function calls
- Use language constructs instead of functions
- Use language constructs to check values before calling a function
- Return early where possible
- Rewrite addToAllTCAtypes() to just do a few preg_replace() calls and not call all the child methods