File "UserRequest.php"
Full Path: /home/romayxjt/public_html/wp-content/plugins/fluentform/app/Http/Requests/UserRequest.php
File size: 634 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace FluentForm\App\Http\Requests;
use FluentForm\Framework\Foundation\RequestGuard;
class UserRequest extends RequestGuard
{
/**
* @return array
*/
public function rules()
{
return [];
}
/**
* @return array
*/
public function messages()
{
return [];
}
/**
* @return array
*/
public function sanitize()
{
$data = $this->all();
$data['age'] = intval($data['age']);
$data['address'] = wp_kses($data['address']);
$data['name'] = sanitize_text_field($data['name']);
return $data;
}
}