diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-20 16:31:43 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-04-20 17:03:19 +0200 |
commit | 2c396a708069bc4080a8c5273a69dbdfdaf0170e (patch) | |
tree | 54bb86376008c563866a9a1eea0fc5f713c35bba /core/command/base.php | |
parent | ce2c8533d9819e1ec9272bcdc06dcf4fa6b0678c (diff) | |
download | nextcloud-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.php | 23 |
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; + } + } } |