Skip to content
This repository has been archived by the owner on Dec 27, 2017. It is now read-only.

Commit

Permalink
Merge branch 'release/1.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlins committed Aug 25, 2014
2 parents b7a342d + 05e120f commit 7239d99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": ">=5.3.3",
"php": ">=5.4",
"fzaninotto/faker": "~1.0",
"symfony/console": "~2.3"
},
Expand Down
10 changes: 6 additions & 4 deletions src/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ protected function configure()
'delimiter',
'd',
InputOption::VALUE_REQUIRED,
'The delimiter is used by the csv and printf format.'
'The delimiter is used by the csv and printf format.',
','
)
->addOption(
'enclosure',
'e',
InputOption::VALUE_REQUIRED,
'The enclosure is used by the csv and printf format.'
'The enclosure is used by the csv and printf format.',
'"'
)
->addOption(
'escape',
Expand Down Expand Up @@ -138,7 +140,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
*/
protected function outputJson(OutputInterface $output, $data)
{
$json = json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
$json = json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
$output->write($json);
}

Expand Down Expand Up @@ -266,7 +268,7 @@ protected function outputPhp(OutputInterface $output, $data)
protected function outputPrintf(InputInterface $input, OutputInterface $output, $data)
{
$pattern = $input->getOption('pattern');
$delimiter = $input->getOption('delimiter') ? : ',';
$delimiter = $input->getOption('delimiter');
$enclosure = $input->getOption('enclosure');
$escape = $input->getOption('escape');

Expand Down

0 comments on commit 7239d99

Please sign in to comment.