Refactor safe() method: remove leading ucfirst transformation and replace trim with full whitespace removal, simplifying string sanitization while maintaining alphanumeric filtering for namespace-safe output.
Testing Instructions
Create or edit the name of the component in the filed "Name in Code"
Expected result
Input string is stripped of whitespace (at start, midle or end) and non-alphanumeric characters, returning a clean namespace-safe identifier without case transformation.
Actual result
Documentation Changes Required
I don't see any reason to force the component name in the code to start with a capital letter.
$string = ucfirst($string);
Pull Request for Issue gh-[#1304](https://git.vdm.dev/joomla/Component-Builder/issues/1304) .
### Summary of Changes
Refactor safe() method: remove leading ucfirst transformation and replace trim with full whitespace removal, simplifying string sanitization while maintaining alphanumeric filtering for namespace-safe output.
### Testing Instructions
Create or edit the name of the component in the filed "Name in Code"
### Expected result
Input string is stripped of whitespace (at start, midle or end) and non-alphanumeric characters, returning a clean namespace-safe identifier without case transformation.
### Actual result
### Documentation Changes Required
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I don't see any reason to force the component name in the code to start with a capital letter.
$string = ucfirst($string);
Pull Request for Issue gh-#1304 .
Summary of Changes
Refactor safe() method: remove leading ucfirst transformation and replace trim with full whitespace removal, simplifying string sanitization while maintaining alphanumeric filtering for namespace-safe output.
Testing Instructions
Create or edit the name of the component in the filed "Name in Code"
Expected result
Input string is stripped of whitespace (at start, midle or end) and non-alphanumeric characters, returning a clean namespace-safe identifier without case transformation.
Actual result
Documentation Changes Required
Pull request closed