Skip to content

Commit 478069c

Browse files
committed
chore: update validators docs
1 parent d615246 commit 478069c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ $is_valid = GUMP::is_valid(array_merge($_POST, $_FILES), [
164164
| **valid_array_size_greater**,1 | Check if an input is an array and if the size is more or equal to a specific value. |
165165
| **valid_array_size_lesser**,1 | Check if an input is an array and if the size is less or equal to a specific value. |
166166
| **valid_array_size_equal**,1 | Check if an input is an array and if the size is equal to a specific value. |
167-
| **valid_twitter** | Determine if the provided value is a valid Twitter account. |
168167
</div>
169168

170169
:star: Available Filters

Diff for: ci/check_validators_docs.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@
44
$docs = get_docs_validators(README_FILE);
55
$gump = get_gump_validators();
66

7+
$allValidators = array_merge($docs, $gump);
8+
79
$errors = [];
810

9-
foreach ($gump as $key => $value) {
11+
foreach ($allValidators as $key => $value) {
1012
if (!isset($docs[$key])) {
1113
$errors[] = sprintf('"%s" validator exists in GUMP but not in docs!', $key);
1214
continue;
1315
}
1416

17+
if (!isset($gump[$key])) {
18+
$errors[] = sprintf('"%s" validator exists in docs but not in GUMP!', $key);
19+
continue;
20+
}
21+
1522
if ($value['rule'] !== $docs[$key]['rule']) {
1623
$errors[] = sprintf('Docs "%s" validator value is "%s" but it should be "%s"', $key, $docs[$key]['rule'], $value['rule']);
1724
}

0 commit comments

Comments
 (0)