Skip to content

Commit

Permalink
Merge pull request #7710 from rtek/pretty-tool-describe
Browse files Browse the repository at this point in the history
Prettified arrays in tool command orm:mapping:describe
  • Loading branch information
lcobucci committed Nov 16, 2019
2 parents 977985f + 0c36f87 commit 1b2daac
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -26,6 +26,10 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use const JSON_PRETTY_PRINT;
use const JSON_UNESCAPED_SLASHES;
use const JSON_UNESCAPED_UNICODE;
use function json_encode;

/**
* Show information about mapped entities.
Expand Down Expand Up @@ -213,7 +217,7 @@ private function formatValue($value)
}

if (is_array($value)) {
return json_encode($value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
return json_encode($value, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
}

if (is_object($value)) {
Expand Down

0 comments on commit 1b2daac

Please sign in to comment.