From: Hypolite Petovan Date: Thu, 12 Jul 2018 03:00:44 +0000 (-0400) Subject: Improve console/config display X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=763c66dd499bd16f0ae62012d98b2e5bd79665e5;p=friendica.git Improve console/config display - Add visual distinction between get/set value --- diff --git a/src/Core/Console/Config.php b/src/Core/Console/Config.php index f619afade0..860c9e891d 100644 --- a/src/Core/Console/Config.php +++ b/src/Core/Console/Config.php @@ -99,7 +99,7 @@ HELP; if (count($this->args) == 3) { $result = Core\Config::set($this->getArgument(0), $this->getArgument(1), $this->getArgument(2)); if ($result) { - $this->out("{$this->getArgument(0)}.{$this->getArgument(1)} = " . + $this->out("{$this->getArgument(0)}.{$this->getArgument(1)} <= " . Core\Config::get($this->getArgument(0), $this->getArgument(1))); } else { $this->out("Unable to set {$this->getArgument(0)}.{$this->getArgument(1)}"); @@ -107,7 +107,7 @@ HELP; } if (count($this->args) == 2) { - $this->out("{$this->getArgument(0)}.{$this->getArgument(1)} = " . + $this->out("{$this->getArgument(0)}.{$this->getArgument(1)} => " . Core\Config::get($this->getArgument(0), $this->getArgument(1))); } @@ -116,7 +116,7 @@ HELP; if (!is_null($a->config[$this->getArgument(0)])) { foreach ($a->config[$this->getArgument(0)] as $k => $x) { - $this->out("{$this->getArgument(0)}.{$k} = " . $x); + $this->out("{$this->getArgument(0)}.{$k} => " . $x); } } else { $this->out('Config section ' . $this->getArgument(0) . ' returned nothing'); @@ -135,14 +135,14 @@ HELP; foreach ($section as $key => $value) { if (is_array($value)) { foreach ($value as $k => $v) { - $this->out("{$cat}.{$key}[{$k}] = " . $v); + $this->out("{$cat}.{$key}[{$k}] => " . $v); } } else { - $this->out("{$cat}.{$key} = " . $value); + $this->out("{$cat}.{$key} => " . $value); } } } else { - $this->out("config.{$cat} = " . $section); + $this->out("config.{$cat} => " . $section); } } }