| Total Complexity | 1 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class CaptchaConfigDefaults extends DefaultsAbstract |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The values that should be cast before sanitization is run. |
||
| 9 | * This is done before $sanitize and $enums. |
||
| 10 | */ |
||
| 11 | public array $casts = [ |
||
| 12 | 'urls' => 'array', |
||
| 13 | ]; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The values that should be sanitized. |
||
| 17 | * This is done after $casts and before $enums. |
||
| 18 | */ |
||
| 19 | public array $sanitize = [ |
||
| 20 | 'badge' => 'text', |
||
| 21 | 'captcha_type' => 'text', |
||
| 22 | 'class' => 'attr-class', |
||
| 23 | 'language' => 'text', |
||
| 24 | 'sitekey' => 'text', |
||
| 25 | 'size' => 'text', |
||
| 26 | 'theme' => 'text', |
||
| 27 | 'type' => 'text', |
||
| 28 | ]; |
||
| 29 | |||
| 30 | protected function defaults(): array |
||
| 45 |