summaryrefslogtreecommitdiffstats
path: root/core/command/base.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-20 16:31:43 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-20 17:03:19 +0200
commit2c396a708069bc4080a8c5273a69dbdfdaf0170e (patch)
tree54bb86376008c563866a9a1eea0fc5f713c35bba /core/command/base.php
parentce2c8533d9819e1ec9272bcdc06dcf4fa6b0678c (diff)
downloadnextcloud-server-2c396a708069bc4080a8c5273a69dbdfdaf0170e.tar.gz
nextcloud-server-2c396a708069bc4080a8c5273a69dbdfdaf0170e.zip
Remove the app version from disabled app list
Diffstat (limited to 'core/command/base.php')
-rw-r--r--core/command/base.php23
1 files changed, 22 insertions, 1 deletions
diff --git a/core/command/base.php b/core/command/base.php
index c2d5cf97f02..f84dcb1aeaf 100644
--- a/core/command/base.php
+++ b/core/command/base.php
@@ -54,9 +54,30 @@ class Base extends Command {
break;
default:
foreach ($items as $key => $item) {
- $output->writeln(' - ' . (!is_int($key) ? $key . ': ' : '') . $item);
+ if (!is_int($key)) {
+ $value = $this->valueToString($item);
+ if (!is_null($value)) {
+ $output->writeln(' - ' . $key . ': ' . $value);
+ } else {
+ $output->writeln(' - ' . $key);
+ }
+ } else {
+ $output->writeln(' - ' . $this->valueToString($item));
+ }
}
break;
}
}
+
+ protected function valueToString($value) {
+ if ($value === false) {
+ return 'false';
+ } else if ($value === true) {
+ return 'true';
+ } else if ($value === null) {
+ null;
+ } else {
+ return $value;
+ }
+ }
}