aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Config/System/SetConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/Config/System/SetConfig.php')
-rw-r--r--core/Command/Config/System/SetConfig.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Command/Config/System/SetConfig.php b/core/Command/Config/System/SetConfig.php
index ac132dbac89..4d23c191ac1 100644
--- a/core/Command/Config/System/SetConfig.php
+++ b/core/Command/Config/System/SetConfig.php
@@ -94,8 +94,8 @@ class SetConfig extends Base {
throw new \InvalidArgumentException('Non-numeric value specified');
}
return [
- 'value' => (int) $value,
- 'readable-value' => 'integer ' . (int) $value,
+ 'value' => (int)$value,
+ 'readable-value' => 'integer ' . (int)$value,
];
case 'double':
@@ -104,8 +104,8 @@ class SetConfig extends Base {
throw new \InvalidArgumentException('Non-numeric value specified');
}
return [
- 'value' => (double) $value,
- 'readable-value' => 'double ' . (double) $value,
+ 'value' => (float)$value,
+ 'readable-value' => 'double ' . (float)$value,
];
case 'boolean':
@@ -136,7 +136,7 @@ class SetConfig extends Base {
];
case 'string':
- $value = (string) $value;
+ $value = (string)$value;
return [
'value' => $value,
'readable-value' => ($value === '') ? 'empty string' : 'string ' . $value,