文件操作 - Cleaner.php
返回文件管理
返回主菜单
删除本文件
文件: /storage/v12552/drroller/public_html/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; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件