8000 [DoctrineBundle] fixed CS · johnnywalker/symfony@3286819 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3286819

Browse files
committed
[DoctrineBundle] fixed CS
1 parent 0029cbc commit 3286819

18 files changed

+149
-111
lines changed

src/Symfony/Bundle/DoctrineBundle/Command/CreateDatabaseDoctrineCommand.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,18 @@ protected function configure()
2828
{
2929
$this
3030
->setName('doctrine:database:create')
31-
->setDescription('Create the configured databases.')
32-
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command.')
31+
->setDescription('Create the configured databases')
32+
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
3333
->setHelp(<<<EOT
34-
The <info>doctrine:database:create</info> command creates the default connections database:
34+
The <info>doctrine:database:create</info> command creates the default
35+
connections database:
3536
36-
<info>./app/console doctrine:database:create</info>
37+
<info>./app/console doctrine:database:create</info>
3738
38-
You can also optionally specify the name of a connection to create the database for:
39+
You can also optionally specify the name of a connection to create the
40+
database for:
3941
40-
<info>./app/console doctrine:database:create --connection=default</info>
42+
<info>./app/console doctrine:database:create --connection=default</info>
4143
EOT
4244
);
4345
}

src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,24 @@ protected function configure()
2727
{
2828
$this
2929
->setName('doctrine:database:drop')
30-
->setDescription('Drop the configured databases.')
31-
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command.')
32-
->addOption('force', null, InputOption::VALUE_NONE, 'Set this parameter to execute this action.')
30+
->setDescription('Drop the configured databases')
31+
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command')
32+
->addOption('force', null, InputOption::VALUE_NONE, 'Set this parameter to execute this action')
3333
->setHelp(<<<EOT
34-
The <info>doctrine:database:drop</info> command drops the default connections database:
34+
The <info>doctrine:database:drop</info> command drops the default connections
35+
database:
3536
36-
<info>./app/console doctrine:database:drop</info>
37+
<info>./app/console doctrine:database:drop</info>
3738
3839
The --force parameter has to be used to actually drop the database.
3940
40-
You can also optionally specify the name of a connection to drop the database for:
41+
You can also optionally specify the name of a connection to drop the database
42+
for:
4143
42-
<info>./app/console doctrine:database:drop --connection=default</info>
44+
<info>./app/console doctrine:database:drop --connection=default</info>
4345
44-
<error>Be careful: All data in a given database will be lost when executing this command.</error>
46+
<error>Be careful: All data in a given database will be lost when executing
47+
this command.</error>
4548
EOT
4649
);
4750
}

src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntitiesDoctrineCommand.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,23 @@ protected function configure()
2828
{
2929
$this
3030
->setName('doctrine:generate:entities')
31-
->setDescription('Generate entity classes and method stubs from your mapping information.')
32-
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the entity or entities in.')
33-
->addOption('entity', null, InputOption::VALUE_OPTIONAL, 'The entity class to initialize (shortname without namespace).')
31+
->setDescription('Generate entity classes and method stubs from your mapping information')
32+
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the entity or entities in')
33+
->addOption('entity', null, InputOption::VALUE_OPTIONAL, 'The entity class to initialize (shortname without namespace)')
3434
->setHelp(<<<EOT
35-
The <info>doctrine:generate:entities</info> command generates entity classes and method stubs from your mapping information:
35+
The <info>doctrine:generate:entities</info> command generates entity classes
36+
and method stubs from your mapping information:
3637
3738
You have to limit generation of entities to an individual bundle:
3839
39-
<info>./app/console doctrine:generate:entities MyCustomBundle</info>
40+
<info>./app/console doctrine:generate:entities MyCustomBundle</info>
4041
4142
Alternatively, you can limit generation to a single entity within a bundle:
4243
43-
<info>./app/console doctrine:generate:entities "MyCustomBundle" --entity="User"</info>
44+
<info>./app/console doctrine:generate:entities "MyCustomBundle" --entity="User"</info>
4445
45-
You have to specify the shortname (without namespace) of the entity you want to filter for.
46+
You have to specify the shortname (without namespace) of the entity you want
47+
to filter for.
4648
EOT
4749
);
4850
}

src/Symfony/Bundle/DoctrineBundle/Command/GenerateEntityDoctrineCommand.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,24 @@ protected function configure()
3030
{
3131
$this
3232
->setName('doctrine:generate:entity')
33-
->setDescription('Generate a new Doctrine entity inside a bundle.')
34-
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the entity in.')
35-
->addArgument('entity', InputArgument::REQUIRED, 'The entity class to initialize.')
36-
->addOption('mapping-type', null, InputOption::VALUE_OPTIONAL, 'The mapping type to to use for the entity.', 'xml')
37-
->addOption('fields', null, InputOption::VALUE_OPTIONAL, 'The fields to create with the new entity.')
33+
->setDescription('Generate a new Doctrine entity inside a bundle')
34+
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the entity in')
35+
->addArgument('entity', InputArgument::REQUIRED, 'The entity class to initialize')
36+
->addOption('mapping-type', null, InputOption::VALUE_OPTIONAL, 'The mapping type to to use for the entity', 'xml')
37+
->addOption('fields', null, InputOption::VALUE_OPTIONAL, 'The fields to create with the new entity')
3838
->setHelp(<<<EOT
39-
The <info>doctrine:generate:entity</info> task initializes a new Doctrine entity inside a bundle:
39+
The <info>doctrine:generate:entity</info> task initializes a new Doctrine
40+
entity inside a bundle:
4041
41-
<info>./app/console doctrine:generate:entity "MyCustomBundle" "User\Group"</info>
42+
<info>./app/console doctrine:generate:entity "MyCustomBundle" "User\Group"</info>
4243
43-
The above would initialize a new entity in the following entity namespace <info>Bundle\MyCustomBundle\Entity\User\Group</info>.
44+
The above would initialize a new entity in the following entity namespace
45+
<info>Bundle\MyCustomBundle\Entity\User\Group</info>.
4446
45-
You can also optionally specify the fields you want to generate in the new entity:
47+
You can also optionally specify the fields you want to generate in the new
48+
entity:
4649
47-
<info>./app/console doctrine:generate:entity "MyCustomBundle" "User\Group" --fields="name:string(255) description:text"</info>
50+
<info>./app/console doctrine:generate:entity "MyCustomBundle" "User\Group" --fields="name:string(255) description:text"</info>
4851
EOT
4952
);
5053
}

src/Symfony/Bundle/DoctrineBundle/Command/GenerateRepositoriesDoctrineCommand.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ protected function configure()
2929
{
3030
$this
3131
->setName('doctrine:generate:repositories')
32-
->setDescription('Generate repository classes from your mapping information.')
33-
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the repositories in.')
34-
->addOption('entity', null, InputOption::VALUE_OPTIONAL, 'The entity class to generate the repository for (shortname without namespace).')
32+
->setDescription('Generate repository classes from your mapping information')
33+
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the repositories in')
34+
->addOption('entity', null, InputOption::VALUE_OPTIONAL, 'The entity class to generate the repository for (shortname without namespace)')
3535
->setHelp(<<<EOT
36-
The <info>doctrine:generate:repositories</info> command generates the configured entity repository classes from your mapping information:
36+
The <info>doctrine:generate:repositories</info> command generates the
37+
configured entity repository classes from your mapping information:
3738
38-
<info>./app/console doctrine:generate:repositories</info>
39+
<info>./app/console doctrine:generate:repositories</info>
3940
EOT
4041
);
4142
}

src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ protected function configure()
3131
{
3232
$this
3333
->setName('doctrine:mapping:import')
34-
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to import the mapping information to.')
35-
->addArgument('mapping-type', InputArgument::OPTIONAL, 'The mapping type to export the imported mapping information to.')
36-
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command.')
37-
->setDescription('Import mapping information from an existing database.')
34+
->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to import the mapping information to')
35+
->addArgument('mapping-type', InputArgument::OPTIONAL, 'The mapping type to export the imported mapping information to')
36+
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
37+
->setDescription('Import mapping information from an existing database')
3838
->setHelp(<<<EOT
39-
The <info>doctrine:mapping:import</info> command imports mapping information from an existing database:
39+
The <info>doctrine:mapping:import</info> command imports mapping information
40+
from an existing database:
4041
41-
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml</info>
42+
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml</info>
4243
43-
You can also optionally specify which entity manager to import from with the <info>--em</info> option:
44+
You can also optionally specify which entity manager to import from with the
45+
<info>--em</info> option:
4446
45-
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml --em=default</info>
47+
<info>./app/console doctrine:mapping:import "MyCustomBundle" xml --em=default</info>
4648
EOT
4749
);
4850
}

src/Symfony/Bundle/DoctrineBundle/Command/InfoDoctrineCommand.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ protected function configure()
2727
{
2828
$this
2929
->setName('doctrine:mapping:info')
30-
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command.')
31-
->setDescription('Show basic information about all mapped entities.')
30+
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
31+
->setDescription('Show basic information about all mapped entities')
3232
->setHelp(<<<EOT
3333
The <info>doctrine:mapping:info</info> shows basic information about which
34-
entities exist and possibly if their mapping information contains errors or not.
34+
entities exist and possibly if their mapping information contains errors or
35+
not.
3536
36-
<info>./app/console doctrine:mapping:info</info>
37+
<info>./app/console doctrine:mapping:info</info>
3738
38-
If you are using multiple entity managers you can pick your choice with the <info>--em</info> option:
39+
If you are using multiple entity managers you can pick your choice with the
40< 10000 span class="diff-text-marker">+
<info>--em</info> option:
3941
40-
<info>./app/console doctrine:mapping:info --em=default</info>
42+
<info>./app/console doctrine:mapping:info --em=default</info>
4143
EOT
4244
);
4345
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearMetadataCacheDoctrineCommand.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ protected function configure()
3030

3131
$this
3232
->setName('doctrine:cache:clear-metadata')
33-
->setDescription('Clear all metadata cache for a entity manager.')
34-
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command.')
33+
->setDescription('Clear all metadata cache for a entity manager')
34+
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
3535
->setHelp(<<<EOT
36-
The <info>doctrine:cache:clear-metadata</info> command clears all metadata cache for the default entity manager:
36+
The <info>doctrine:cache:clear-metadata</info> command clears all metadata
37+
cache for the default entity manager:
3738
38-
<info>./app/console doctrine:cache:clear-metadata</info>
39+
<info>./app/console doctrine:cache:clear-metadata</info>
3940
40-
You can also optionally specify the <comment>--em</comment> option to specify which entity manager to clear the cache for:
41+
You can also optionally specify the <comment>--em</comment> option to specify
42+
which entity manager to clear the cache for:
4143
42-
<info>./app/console doctrine:cache:clear-metadata --em=default</info>
44+
<info>./app/console doctrine:cache:clear-metadata --em=default</info>
4345
EOT
4446
);
4547
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearQueryCacheDoctrineCommand.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ protected function configure()
3030

3131
$this
3232
->s D7AE etName('doctrine:cache:clear-query')
33-
->setDescription('Clear all query cache for a entity manager.')
34-
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command.')
33+
->setDescription('Clear all query cache for a entity manager')
34+
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
3535
->setHelp(<<<EOT
36-
The <info>doctrine:cache:clear-query</info> command clears all query cache for the default entity manager:
36+
The <info>doctrine:cache:clear-query</info> command clears all query cache for
37+
the default entity manager:
3738
38-
<info>./app/console doctrine:cache:clear-query</info>
39+
<info>./app/console doctrine:cache:clear-query</info>
3940
40-
You can also optionally specify the <comment>--em</comment> option to specify which entity manager to clear the cache for:
41+
You can also optionally specify the <comment>--em</comment> option to specify
42+
which entity manager to clear the cache for:
4143
42-
<info>./app/console doctrine:cache:clear-query --em=default</info>
44+
<info>./app/console doctrine:cache:clear-query --em=default</info>
4345
EOT
4446
);
4547
}

src/Symfony/Bundle/DoctrineBundle/Command/Proxy/ClearResultCacheDoctrineCommand.php

Lines changed: 17 additions & 12 deletions
< 341A tr class="diff-line-row">
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,33 @@ protected function configure()
3030

3131
$this
3232
->setName('doctrine:cache:clear-result')
33-
->setDescription('Clear result cache for a entity manager.')
34-
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command.')
33+
->setDescription('Clear result cache for a entity manager')
34+
->addOption('em', null, InputOption::VALUE_OPTIONAL, 'The entity manager to use for this command')
3535
->setHelp(<<<EOT
36-
The <info>doctrine:cache:clear-result</info> command clears all result cache for the default entity manager:
36+
The <info>doctrine:cache:clear-result</info> command clears all result cache
37+
for the default entity manager:
3738
38-
<info>./app/console doctrine:cache:clear-result</info>
39+
<info>./app/console doctrine:cache:clear-result</info>
3940
40-
You can also optionally specify the <comment>--em</comment> option to specify which entity manager to clear the cache for:
41+
You can also optionally specify the <comment>--em</comment> option to specify
42+
which entity manager to clear the cache for:
4143
42-
<info>./app/console doctrine:cache:clear-result --em=default</info>
44+
<info>./app/console doctrine:cache:clear-result --em=default</info>
4345
44-
If you don't want to clear all result cache you can specify some additional options to control what cache is deleted:
46+
If you don't want to clear all result cache you can specify some additional
47+
options to control what cache is deleted:
4548
46-
<info>./app/console doctrine:cache:clear-result --id=cache_key</info>
49+
<info>./app/console doctrine:cache:clear-result --id=cache_key</info>
4750
48-
Or you can specify a <comment>--regex</comment> to delete cache entries that match it:
51+
Or you can specify a <comment>--regex</comment> to delete cache entries that
52+
match it:
4953
50-
<info>./app/console doctrine:cache:clear-result --regex="user_(.*)"</info>
54+
<info>./app/console doctrine:cache:clear-result --regex="user_(.*)"</info>
5155
52-
You can also specify a <comment>--prefix</comment> or <comment>--suffix</comment> to delete cache entries for:
56+
You can also specify a <comment>--prefix</comment> or
57+
<comment>--suffix</comment> to delete cache entries for:
5358
54-
<info>./app/console doctrine:cache:clear-result --prefix="user_" --suffix="_frontend"</info>
59+
<info>./app/console doctrine:cache:clear-result --prefix="user_" --suffix="_frontend"</info>
5560
EOT
5661
);
5762
}

0 commit comments

Comments
 (0)
0