Add spaces to code O_o
This commit is contained in:
parent
317b7f6034
commit
39a73a0410
5 changed files with 6 additions and 6 deletions
|
@ -120,7 +120,7 @@ class DB extends PDO
|
|||
$map = [];
|
||||
$query = \preg_replace_callback(
|
||||
'%(?=[?:])(?<![\w?:])(?:::(\w+)|\?(?![?:])(?:(\w+)(?::(\w+))?)?|:(\w+))%',
|
||||
function($matches) use ($params, &$idxIn, &$idxOut, &$map) {
|
||||
function ($matches) use ($params, &$idxIn, &$idxOut, &$map) {
|
||||
if (! empty($matches[1])) {
|
||||
return $this->dbPrefix . $matches[1];
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ class Generate extends Method
|
|||
|| 'text_handler' === $key
|
||||
)
|
||||
) {
|
||||
$value = "function(\$body, \$attrs, \$parser) {\n{$value}\n{$space}}";
|
||||
$value = "function (\$body, \$attrs, \$parser) {\n{$value}\n{$space}}";
|
||||
} else {
|
||||
$value = '\'' . \addslashes($value) . '\'';
|
||||
}
|
||||
|
|
|
@ -513,7 +513,7 @@ class Structure extends ParentModel
|
|||
}
|
||||
|
||||
// тест на выполнение DANGER! DANGER! DANGER! O_o
|
||||
$testCode = "\$testVar = function(\$body, \$attrs, \$parser) { {$code} };\nreturn true;";
|
||||
$testCode = "\$testVar = function (\$body, \$attrs, \$parser) { {$code} };\nreturn true;";
|
||||
|
||||
try {
|
||||
$result = @eval($testCode);
|
||||
|
|
|
@ -100,7 +100,7 @@ class Refresh extends Action
|
|||
$list[$parent]['subforums'] = $sub ?: null;
|
||||
$list[$parent]['descendants'] = $all ?: null;
|
||||
|
||||
$this->list[$parent] = \array_filter($list[$parent], function($val) {
|
||||
$this->list[$parent] = \array_filter($list[$parent], function ($val) {
|
||||
return null !== $val;
|
||||
});
|
||||
|
||||
|
|
|
@ -35,9 +35,9 @@ class Statistics extends Admin
|
|||
if (\preg_match('%<style[^>]*>(.*?)</style[^>]*>%is', $page, $matches)) {
|
||||
$style = \preg_replace_callback(
|
||||
'%(\S[^{]*)({[^}]+})%',
|
||||
function($match) {
|
||||
function ($match) {
|
||||
$result = \array_map(
|
||||
function($val) {
|
||||
function ($val) {
|
||||
$val = \str_replace('body', '#id-phpinfo-div', $val, $count);
|
||||
|
||||
return $count ? $val : '#id-phpinfo-div ' . $val;
|
||||
|
|
Loading…
Add table
Reference in a new issue