Closed mralaminahamed closed 4 months ago
This update involves modifications to the phpcs.xml.dist
and .github/workflows/phpcs.yml
files. The phpcs.xml.dist
changes include altering the customSanitizingFunctions
property from a string to an array, removing wc_clean
, and adding dokan_sanitize_phone_number
. The .github/workflows/phpcs.yml
updates involve upgrading various GitHub Actions and tools, as well as improving the caching and composer installation processes.
Files | Change Summary |
---|---|
phpcs.xml.dist |
Changed customSanitizingFunctions type from string to array, removed wc_clean , added dokan_sanitize_phone_number . |
.github/workflows/phpcs.yml |
Updated GitHub Actions checkout to v4 , PHP version to 7.4 , composer to v2 , and cache action to v4 . Adjusted cache key format, removed unnecessary composer install flags, and enhanced GitHub API call with authorization. |
In the land of code, where functions flow,
A change in sanitizing, we now bestow.
Withdokan_sanitize_phone_number
in the mix,
Andwc_clean
gone, we’ve made our fix.
Upgraded tools, Actions anew,
Our workflow’s stronger, through and through.
🐇✨ CodeRabbit hops with glee,
For a cleaner, brighter PHP!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All Submissions:
Changes proposed in this Pull Request:
fix: Incorrect format of PHPCS for register custom sanitize function
Related Pull Request(s)
Closes
Ref
How to test the changes in this Pull Request:
Changelog entry
Fix: Incorrect format of PHPCS for register custom sanitize function
Before Changes
Describe the issue before changes with screenshots(s).
After Changes
Describe the issue after changes with screenshot(s).
Feature Video (optional)
Link of detailed video if this PR is for a feature.
PR Self Review Checklist:
FOR PR REVIEWER ONLY:
Summary by CodeRabbit
Chores
Refactor
customSanitizingFunctions
to an array type.dokan_sanitize_phone_number
and removedwc_clean
from sanitizing functions.