mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
修正php5.2语法
This commit is contained in:
parent
cdc3df3890
commit
aa6e27b95d
@ -961,8 +961,8 @@ EOF;
|
||||
$length = strlen($value);
|
||||
$max = 3;
|
||||
$offset = 0;
|
||||
$result = [];
|
||||
$cut = [];
|
||||
$result = array();
|
||||
$cut = array();
|
||||
|
||||
while ($length > 0) {
|
||||
$len = rand(0, min($max, $length));
|
||||
@ -976,7 +976,7 @@ EOF;
|
||||
$result[] = rand(0, 1) ? "''///*{$rand}*/{$rand}\n" : "/* {$rand}//{$rand} */''";
|
||||
} else {
|
||||
$result[] = rand(0, 1) ? "//{$rand}\n{$rand}" : "{$rand}//{$rand}\n";
|
||||
$cut[] = [$offset, strlen($rand) - 2 + $offset];
|
||||
$cut[] = array($offset, strlen($rand) - 2 + $offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user