Passed
Pull Request — 2.8.x (#7975)
by
unknown
09:40 queued 10s
created
lib/Doctrine/ORM/Tools/Console/Command/GenerateEntitiesCommand.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -53,18 +53,18 @@  discard block
 block discarded – undo
53 53
     {
54 54
         // @TODO - setName() can be removed when symfony/console will be bumped to 3.4 minimum
55 55
         $this->setName(self::$defaultName)
56
-             ->setAliases(['orm:generate:entities'])
57
-             ->setDescription('Generate entity classes and method stubs from your mapping information')
58
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entity classes.')
59
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
60
-             ->addOption('generate-annotations', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate annotation metadata on entities.', false)
61
-             ->addOption('generate-methods', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate stub methods on entities.', true)
62
-             ->addOption('regenerate-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should regenerate entity if it exists.', false)
63
-             ->addOption('update-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should only update entity if it exists.', true)
64
-             ->addOption('extend', null, InputOption::VALUE_REQUIRED, 'Defines a base class to be extended by generated entity classes.')
65
-             ->addOption('num-spaces', null, InputOption::VALUE_REQUIRED, 'Defines the number of indentation spaces', 4)
66
-             ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Flag to define if generator should avoid backuping existing entity file if it exists.')
67
-             ->setHelp(<<<EOT
56
+                ->setAliases(['orm:generate:entities'])
57
+                ->setDescription('Generate entity classes and method stubs from your mapping information')
58
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entity classes.')
59
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
60
+                ->addOption('generate-annotations', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate annotation metadata on entities.', false)
61
+                ->addOption('generate-methods', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should generate stub methods on entities.', true)
62
+                ->addOption('regenerate-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should regenerate entity if it exists.', false)
63
+                ->addOption('update-entities', null, InputOption::VALUE_OPTIONAL, 'Flag to define if generator should only update entity if it exists.', true)
64
+                ->addOption('extend', null, InputOption::VALUE_REQUIRED, 'Defines a base class to be extended by generated entity classes.')
65
+                ->addOption('num-spaces', null, InputOption::VALUE_REQUIRED, 'Defines the number of indentation spaces', 4)
66
+                ->addOption('no-backup', null, InputOption::VALUE_NONE, 'Flag to define if generator should avoid backuping existing entity file if it exists.')
67
+                ->setHelp(<<<EOT
68 68
 Generate entity classes and method stubs from your mapping information.
69 69
 
70 70
 If you use the <comment>--update-entities</comment> or <comment>--regenerate-entities</comment> flags your existing
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 class is supposed to extend which. You have to adjust the entity
85 85
 code manually for inheritance to work!
86 86
 EOT
87
-             );
87
+                );
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/GenerateRepositoriesCommand.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@
 block discarded – undo
52 52
     {
53 53
         // @TODO - setName() can be removed when symfony/console will be bumped to 3.4 minimum
54 54
         $this->setName(self::$defaultName)
55
-             ->setAliases(['orm:generate:repositories'])
56
-             ->setDescription('Generate repository classes from your mapping information')
57
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.')
58
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
59
-             ->setHelp('Generate repository classes from your mapping information.');
55
+                ->setAliases(['orm:generate:repositories'])
56
+                ->setDescription('Generate repository classes from your mapping information')
57
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.')
58
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
59
+                ->setHelp('Generate repository classes from your mapping information.');
60 60
     }
61 61
 
62 62
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -53,17 +53,17 @@  discard block
 block discarded – undo
53 53
     {
54 54
         // @TODO - setName() can be removed when symfony/console will be bumped to 3.4 minimum
55 55
         $this->setName(self::$defaultName)
56
-             ->setAliases(['orm:convert:mapping'])
57
-             ->setDescription('Convert mapping information between supported formats')
58
-             ->addArgument('to-type', InputArgument::REQUIRED, 'The mapping type to be converted.')
59
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entities classes.')
60
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
61
-             ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.')
62
-             ->addOption('from-database', null, null, 'Whether or not to convert mapping information from existing database.')
63
-             ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.')
64
-             ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4)
65
-             ->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Defines a namespace for the generated entity classes, if converted from database.')
66
-             ->setHelp(<<<EOT
56
+                ->setAliases(['orm:convert:mapping'])
57
+                ->setDescription('Convert mapping information between supported formats')
58
+                ->addArgument('to-type', InputArgument::REQUIRED, 'The mapping type to be converted.')
59
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entities classes.')
60
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
61
+                ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.')
62
+                ->addOption('from-database', null, null, 'Whether or not to convert mapping information from existing database.')
63
+                ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.')
64
+                ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4)
65
+                ->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Defines a namespace for the generated entity classes, if converted from database.')
66
+                ->setHelp(<<<EOT
67 67
 Convert mapping information between supported formats.
68 68
 
69 69
 This is an execute <info>one-time</info> command. It should not be necessary for
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     \$config->setFilterSchemaAssetsExpression(\$regexp);
88 88
 EOT
89
-             );
89
+                );
90 90
     }
91 91
 
92 92
     /**
Please login to merge, or discard this patch.