- // Special case: UFGroup, UFJoin, UFMatch, UFField (if passed in underscore-separated)
- if ($fragments[0] === 'Uf') {
- $fragments[0] = 'UF';
+ // Exceptions to CamelCase: UFGroup, UFJoin, UFMatch, UFField, ACL, IM, PCP
+ $exceptions = ['Uf', 'Acl', 'Im', 'Pcp'];
+ if (in_array($fragments[0], $exceptions)) {
+ $fragments[0] = strtoupper($fragments[0]);