Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/fluent-smtp/includes/Request//Cleaner.php
<?php
namespace FluentMail\Includes\Request;
trait Cleaner
{
/**
* Clean up the request data.
*
* @param array $data
* @return array
*/
public function clean($data)
{
return $this->cleanArray($data);
}
/**
* Clean the data in the given array.
*
* @param array $data
* @return array
*/
protected function cleanArray(array $data)
{
return array_map(function ($value) {
return $this->cleanValue($value);
}, $data);
}
/**
* Clean the given value.
*
* @param mixed $value
* @return mixed
*/
protected function cleanValue($value)
{
if (is_array($value)) {
return $this->cleanArray($value);
}
return $this->transform($value);
}
/**
* Transform the given value.
*
* @param mixed $value
* @return mixed
*/
protected function transform($value)
{
if (is_string($value)) {
$value = trim($value);
if ($value === '') {
$value = null;
}
}
return $value;
}
}
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | July 10 2025 04:32:20 | giriqfky / giriqfky | 0755 | |
| | | | | |
.htaccess | 0.41 KB | July 10 2025 04:32:20 | giriqfky / giriqfky | 0644 | |
Cleaner.php | 1.14 KB | January 18 2021 20:25:02 | giriqfky / giriqfky | 0644 | |
File.php | 75.396 KB | October 20 2024 18:25:46 | giriqfky / giriqfky | 0644 | |
FileHandler.php | 3.033 KB | January 18 2021 20:25:02 | giriqfky / giriqfky | 0644 | |
Request.php | 6.979 KB | January 18 2021 20:25:02 | giriqfky / giriqfky | 0644 | |