# fluentform/6.2.7/app/Services/Settings/Validator.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.2.7. 29 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.2.7/code/app/Services/Settings/Validator.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.2.7/raw/app/Services/Settings/Validator.php
- Modified: 2023-06-22T15:10:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/6.2.7/code/app/Services/Settings/Validator.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Services\Settings;

class Validator
{
    /**
     * Centralized validator for all the settings data.
     *
     * @param $key
     * @param array $data
     */
    public static function validate($key, $data = [])
    {
        $key = ucwords($key);

        $class = '\FluentForm\App\Services\Settings\Validator\\' . $key;

        if (class_exists($class)) {
            /**
             * Validator class
             *
             * @var $class \FluentForm\App\Services\Settings\Validator\Validate
             */
            $class::validate($data);
        }
    }
}

```
