Skip to content

Commit 22ab444

Browse files
committed
More language fixes
1 parent be36e69 commit 22ab444

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateDocumentsCommand.php

+9-6
Original file line numberDiff line numberDiff line change
@@ -55,27 +55,27 @@ protected function configure()
5555
),
5656
new InputOption(
5757
'generate-annotations', null, InputOption::VALUE_OPTIONAL,
58-
'Flag to define if generator should generate annotation metadata on documents.', false
58+
'Flag to define if the generator should generate annotation metadata on documents.', false
5959
),
6060
new InputOption(
6161
'generate-methods', null, InputOption::VALUE_OPTIONAL,
62-
'Flag to define if generator should generate stub methods on documents.', true
62+
'Flag to define if the generator should generate stub methods on documents.', true
6363
),
6464
new InputOption(
6565
'regenerate-documents', null, InputOption::VALUE_OPTIONAL,
66-
'Flag to define if generator should regenerate document if it exists.', false
66+
'Flag to define if the generator should regenerate a document if it exists.', false
6767
),
6868
new InputOption(
6969
'update-documents', null, InputOption::VALUE_OPTIONAL,
70-
'Flag to define if generator should only update document if it exists.', true
70+
'Flag to define if the generator should only update a document if it exists.', true
7171
),
7272
new InputOption(
7373
'extend', null, InputOption::VALUE_OPTIONAL,
7474
'Defines a base class to be extended by generated document classes.'
7575
),
7676
new InputOption(
7777
'num-spaces', null, InputOption::VALUE_OPTIONAL,
78-
'Defines the number of indentation spaces', 4
78+
'Defines the number of indentation spaces.', 4
7979
)
8080
))
8181
->setHelp(<<<EOT
@@ -151,7 +151,10 @@ protected function execute(Console\Input\InputInterface $input, Console\Output\O
151151
$documentGenerator->generate($metadatas, $destPath);
152152

153153
// Outputting information message
154-
$output->writeln(PHP_EOL . sprintf('Document classes generated to "<info>%s</INFO>".', $destPath));
154+
$output->writeln(array(
155+
'',
156+
sprintf('Document classes have been generated to "<info>%s</info>".', $destPath)
157+
));
155158
} else {
156159
$output->writeln('No Metadata Classes to process.');
157160
}

0 commit comments

Comments
 (0)