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