# quadmenu/3.3.6/vendor/franmastromarino/wp-plugin-feedback/src/Validator.php

QuadMenu – Mega Menu, version 3.3.6. 24 lines.

- Page: https://pluginprobe.com/plugins/quadmenu/3.3.6/code/vendor/franmastromarino/wp-plugin-feedback/src/Validator.php
- Raw: https://pluginprobe.com/plugins/quadmenu/3.3.6/raw/vendor/franmastromarino/wp-plugin-feedback/src/Validator.php
- Modified: 2025-11-15T21:00:52+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/quadmenu/3.3.6/code/vendor/franmastromarino/wp-plugin-feedback/src/Validator.php#L10-L20`.

```php
<?php

namespace QuadLayers\PluginFeedback;

class Validator
{
    /**
     * Validates the feedback data.
     *
     * @param  array $data        The collected data.
     * @param  bool  $isAnonymous Determines if the feedback is anonymous.
     * @return bool True if the data is valid, False otherwise.
     */
    public function validate(array $data, bool $isAnonymous = false): bool
    {
        // Validate required fields
        if (empty($data['plugin_slug'])) {
            return false;
        }

        return true;
    }
}

```
