diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-07-14 19:33:58 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-07-14 19:33:58 +0300 |
commit | e9227bcddaaf29b3e8ddf97169be4920d594e13b (patch) | |
tree | da36b4414f52665a4d256c9412b0adda7c9ecfed | |
parent | fed34943cf4e2f7e4a51af9dd86652560e729290 (diff) |
pretty design
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Command/Check.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Command/Check.php b/lib/Command/Check.php index 8d7af2f..bd856b8 100644 --- a/lib/Command/Check.php +++ b/lib/Command/Check.php @@ -98,7 +98,7 @@ class Check extends Base { protected function execute(InputInterface $input, OutputInterface $output) { if ($input->getOption('json') === true) { - $output->writeln(json_encode($this->displayAsJson(), JSON_PRETTY_PRINT)); + $output->writeln(json_encode($this->displayAsJson(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); return; } @@ -181,7 +181,7 @@ class Check extends Base { $output->writeln('- Search Platform:'); $output->writeln($platform->getName() . ' ' . $wrapper->getVersion()); - echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT); + echo json_encode($platform->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); $output->writeln(' '); $output->writeln(' '); @@ -207,7 +207,7 @@ class Check extends Base { foreach ($providers as $providerWrapper) { $provider = $providerWrapper->getProvider(); $output->writeln($provider->getName() . ' ' . $providerWrapper->getVersion()); - echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT); + echo json_encode($provider->getConfiguration(), JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); $output->writeln(''); } |