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

MixedChecker add accepted and declined #13

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

gam6itko
Copy link
Contributor

@gam6itko gam6itko commented Mar 20, 2023

For handle forms and GET bool-like values.

$data = [
 'i_accepte_term_of_service' => 'yes', // or [true, 1, '1', 'on']
 'user_want_to_do_bad_things' => 'no', // or [false, 0, '0', 'off']
];


$validator->validate($data, [
  'i_accepte_term_of_service' => [
    ['mixed::accepted']
  ],
  'user_want_to_do_bad_things' => [
    ['mixed::declined']
  ]
]);

@gam6itko gam6itko changed the title MixedChecker add accepted adn declined MixedChecker add accepted and declined Mar 20, 2023
@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05 🎉

Comparison is base (3bf2102) 96.03% compared to head (a5b0335) 96.09%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #13      +/-   ##
============================================
+ Coverage     96.03%   96.09%   +0.05%     
- Complexity      297      301       +4     
============================================
  Files            34       35       +1     
  Lines           631      640       +9     
============================================
+ Hits            606      615       +9     
  Misses           25       25              
Impacted Files Coverage Δ
src/Checker/MixedChecker.php 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@butschster butschster self-assigned this Oct 24, 2023
@butschster butschster added the enhancement New feature or request label Oct 24, 2023
@butschster butschster merged commit 8fc21d0 into spiral:master Oct 24, 2023
@gam6itko gam6itko deleted the accepted_declined branch October 24, 2023 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants