PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.6
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.6
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Http / Requests / UserRequest.php

UserRequest.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.6, at app/Http/Requests/UserRequest.php

41 lines 634 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Http\Requests;
4
5 use FluentForm\Framework\Foundation\RequestGuard;
6
7 class UserRequest extends RequestGuard
8 {
9 /**
10 * @return array
11 */
12 public function rules()
13 {
14 return [];
15 }
16
17 /**
18 * @return array
19 */
20 public function messages()
21 {
22 return [];
23 }
24
25 /**
26 * @return array
27 */
28 public function sanitize()
29 {
30 $data = $this->all();
31
32 $data['age'] = intval($data['age']);
33
34 $data['address'] = wp_kses($data['address']);
35
36 $data['name'] = sanitize_text_field($data['name']);
37
38 return $data;
39 }
40 }
41