Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor regex validation checks to a dedicated method #64

Merged
merged 3 commits into from
Mar 19, 2024
Merged

Conversation

SmetDenis
Copy link
Member

The code has been updated to move regex validation checks to a Utility method, improving reusability. Multiple classes including IsDomain, IsFloat, IsGeohash, IsInt, IsUsaMarketName, RegEx, CsvValidator, all now utilize this utility method. This enhancement provides a centralized place for handling regex validations ensuring uniform error handling across the application. Minor modifications were also made to related comments and tests.

Denis Smet added 3 commits March 19, 2024 23:31
This commit modifies the SchemaValidator code, ensuring that values used for examples are cast as strings before validation. This change addresses potential issues with non-string values, improving the robustness and accuracy of the schema validation process. Updates have also been made to the associated tests and documentation.
The code has been updated to move regex validation checks to a Utility method, improving reusability. Multiple classes including IsDomain, IsFloat, IsGeohash, IsInt, IsUsaMarketName, RegEx, CsvValidator, all now utilize this utility method. This enhancement provides a centralized place for handling regex validations ensuring uniform error handling across the application. Minor modifications were also made to related comments and tests.
@SmetDenis SmetDenis merged commit 14bd208 into master Mar 19, 2024
24 checks passed
@SmetDenis SmetDenis deleted the typo branch March 19, 2024 23:00
@coveralls
Copy link

coveralls commented Mar 19, 2024

Pull Request Test Coverage Report for Build 8351209496

Details

  • 15 of 18 (83.33%) changed or added relevant lines in 9 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.3%) to 96.185%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Utils.php 4 7 57.14%
Totals Coverage Status
Change from base Build 8349083113: -0.3%
Covered Lines: 958
Relevant Lines: 996

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants