PluginProbe
QuadMenu – Mega Menu / 3.3.6
QuadMenu – Mega Menu v3.3.6
3.3.8 3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 88 releases
quadmenu / vendor / franmastromarino / wp-plugin-feedback / src / Validator.php

Validator.php in QuadMenu – Mega Menu 3.3.6, at vendor/franmastromarino/wp-plugin-feedback/src/Validator.php

24 lines 541 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace QuadLayers\PluginFeedback;
4
5 class Validator
6 {
7 /**
8 * Validates the feedback data.
9 *
10 * @param array $data The collected data.
11 * @param bool $isAnonymous Determines if the feedback is anonymous.
12 * @return bool True if the data is valid, False otherwise.
13 */
14 public function validate(array $data, bool $isAnonymous = false): bool
15 {
16 // Validate required fields
17 if (empty($data['plugin_slug'])) {
18 return false;
19 }
20
21 return true;
22 }
23 }
24