new php-cs-fixer, new opinions about what is today's preferred format...

This commit is contained in:
Shish
2022-10-27 17:21:46 +01:00
parent ebc78f8996
commit 4ff93c63c3
25 changed files with 659 additions and 979 deletions

View File

@@ -396,10 +396,14 @@ class Setup extends Extension
$type = $_POST["_type_$name"];
$value = isset($_POST["_config_$name"]) ? $_POST["_config_$name"] : null;
switch ($type) {
case "string": $config->set_string($name, $value); break;
case "int": $config->set_int($name, parse_shorthand_int((string)$value)); break;
case "bool": $config->set_bool($name, bool_escape($value)); break;
case "array": $config->set_array($name, $value); break;
case "string": $config->set_string($name, $value);
break;
case "int": $config->set_int($name, parse_shorthand_int((string)$value));
break;
case "bool": $config->set_bool($name, bool_escape($value));
break;
case "array": $config->set_array($name, $value);
break;
}
}
}