chore: 重写初始提交(清空历史,整理后全量提交)

This commit is contained in:
ywxapp
2026-08-16 16:54:14 +08:00
commit 6c1a106bc1
1808 changed files with 238144 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
/*
* @Author: YwxApp <ywx@ywxapp.cn>
* @Date: 2026-04-29 02:32:33
* @LastEditors: YwxApp <ywx@ywxapp.cn>
* @LastEditTime: 2026-07-21 23:27:10
* @Description:
* @FilePath: \ywxapp_dev\app\backend\validate\Admin.php
* @CustomString: Copyright (c) 2026 YwxApp
*/
declare (strict_types = 1);
function var_export_short($expression, $return = false) {
$export = var_export($expression, true);
$patterns = [
"/array \(/" => "[",
"/^([ ]*)\)(,?)$/m" => "$1]$2",
"/=>[ ]?\n[ ]+\[/" => "=> [",
"/([ ]*)(\'[^\']+\') => ([['])/" => "$1$2 => $3",
];
$export = preg_replace(array_keys($patterns), array_values($patterns), $export);
if ($return) return $export;
echo $export;
}