Completed
Push — master ( ba3223...b47a39 )
by Luís
17s
created
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/DropCommand.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
     protected function configure()
44 44
     {
45 45
         $this->setName('orm:schema-tool:drop')
46
-             ->setDescription('Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output')
47
-             ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.')
48
-             ->addOption('force', 'f', InputOption::VALUE_NONE, "Don't ask for the deletion of the database, but force the operation to run.")
49
-             ->addOption('full-database', null, InputOption::VALUE_NONE, 'Instead of using the Class Metadata to detect the database table schema, drop ALL assets that the database contains.')
50
-             ->setHelp(<<<EOT
46
+                ->setDescription('Drop the complete database schema of EntityManager Storage Connection or generate the corresponding SQL output')
47
+                ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Instead of trying to apply generated SQLs into EntityManager Storage Connection, output them.')
48
+                ->addOption('force', 'f', InputOption::VALUE_NONE, "Don't ask for the deletion of the database, but force the operation to run.")
49
+                ->addOption('full-database', null, InputOption::VALUE_NONE, 'Instead of using the Class Metadata to detect the database table schema, drop ALL assets that the database contains.')
50
+                ->setHelp(<<<EOT
51 51
 Processes the schema and either drop the database schema of EntityManager Storage Connection or generate the SQL output.
52 52
 Beware that the complete database is dropped by this command, even tables that are not relevant to your metadata model.
53 53
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     \$config->setFilterSchemaAssetsExpression(\$regexp);
59 59
 EOT
60
-             );
60
+                );
61 61
     }
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
     protected function configure()
51 51
     {
52 52
         $this->setName($this->name)
53
-             ->setDescription('Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata')
54
-             ->addOption('complete', null, InputOption::VALUE_NONE, 'If defined, all assets of the database which are not relevant to the current metadata will be dropped.')
55
-             ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Dumps the generated SQL statements to the screen (does not execute them).')
56
-             ->addOption('force', 'f', InputOption::VALUE_NONE, 'Causes the generated SQL statements to be physically executed against your database.')
57
-             ->setHelp(<<<EOT
53
+                ->setDescription('Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata')
54
+                ->addOption('complete', null, InputOption::VALUE_NONE, 'If defined, all assets of the database which are not relevant to the current metadata will be dropped.')
55
+                ->addOption('dump-sql', null, InputOption::VALUE_NONE, 'Dumps the generated SQL statements to the screen (does not execute them).')
56
+                ->addOption('force', 'f', InputOption::VALUE_NONE, 'Causes the generated SQL statements to be physically executed against your database.')
57
+                ->setHelp(<<<EOT
58 58
 The <info>%command.name%</info> command generates the SQL needed to
59 59
 synchronize the database schema with the current mapping metadata of the
60 60
 default entity manager.
@@ -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.
lib/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@
 block discarded – undo
45 45
     protected function configure()
46 46
     {
47 47
         $this->setName('orm:validate-schema')
48
-             ->setDescription('Validate the mapping files')
49
-             ->addOption('skip-mapping', null, InputOption::VALUE_NONE, 'Skip the mapping validation check')
50
-             ->addOption('skip-sync', null, InputOption::VALUE_NONE, 'Skip checking if the mapping is in sync with the database')
51
-             ->setHelp('Validate that the mapping files are correct and in sync with the database.');
48
+                ->setDescription('Validate the mapping files')
49
+                ->addOption('skip-mapping', null, InputOption::VALUE_NONE, 'Skip the mapping validation check')
50
+                ->addOption('skip-sync', null, InputOption::VALUE_NONE, 'Skip checking if the mapping is in sync with the database')
51
+                ->setHelp('Validate that the mapping files are correct and in sync with the database.');
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     protected function configure()
46 46
     {
47 47
         $this->setName('orm:clear-cache:result')
48
-             ->setDescription('Clear all result cache of the various cache drivers')
49
-             ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.')
50
-             ->setHelp(<<<EOT
48
+                ->setDescription('Clear all result cache of the various cache drivers')
49
+                ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.')
50
+                ->setHelp(<<<EOT
51 51
 The <info>%command.name%</info> command is meant to clear the result cache of associated Entity Manager.
52 52
 It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider
53 53
 instance completely.
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 Finally, be aware that if <info>--flush</info> option is passed, not all cache providers are able to flush entries,
65 65
 because of a limitation of its execution nature.
66 66
 EOT
67
-             );
67
+                );
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     protected function configure()
46 46
     {
47 47
         $this->setName('orm:clear-cache:metadata')
48
-             ->setDescription('Clear all metadata cache of the various cache drivers')
49
-             ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.')
50
-             ->setHelp(<<<EOT
48
+                ->setDescription('Clear all metadata cache of the various cache drivers')
49
+                ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.')
50
+                ->setHelp(<<<EOT
51 51
 The <info>%command.name%</info> command is meant to clear the metadata cache of associated Entity Manager.
52 52
 It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider
53 53
 instance completely.
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 Finally, be aware that if <info>--flush</info> option is passed, not all cache providers are able to flush entries,
65 65
 because of a limitation of its execution nature.
66 66
 EOT
67
-             );
67
+                );
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     protected function configure()
46 46
     {
47 47
         $this->setName('orm:clear-cache:query')
48
-             ->setDescription('Clear all query cache of the various cache drivers')
49
-             ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.')
50
-             ->setHelp(<<<EOT
48
+                ->setDescription('Clear all query cache of the various cache drivers')
49
+                ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, cache entries will be flushed instead of deleted/invalidated.')
50
+                ->setHelp(<<<EOT
51 51
 The <info>%command.name%</info> command is meant to clear the query cache of associated Entity Manager.
52 52
 It is possible to invalidate all cache entries at once - called delete -, or flushes the cache provider
53 53
 instance completely.
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 Finally, be aware that if <info>--flush</info> option is passed, not all cache providers are able to flush entries,
65 65
 because of a limitation of its execution nature.
66 66
 EOT
67
-             );
67
+                );
68 68
     }
69 69
 
70 70
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryRegionCommand.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
     protected function configure()
43 43
     {
44 44
         $this->setName('orm:clear-cache:region:query')
45
-             ->setDescription('Clear a second-level cache query region')
46
-             ->addArgument('region-name', InputArgument::OPTIONAL, 'The query region to clear.')
47
-             ->addOption('all', null, InputOption::VALUE_NONE, 'If defined, all query regions will be deleted/invalidated.')
48
-             ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, all cache entries will be flushed.')
49
-             ->setHelp(<<<EOT
45
+                ->setDescription('Clear a second-level cache query region')
46
+                ->addArgument('region-name', InputArgument::OPTIONAL, 'The query region to clear.')
47
+                ->addOption('all', null, InputOption::VALUE_NONE, 'If defined, all query regions will be deleted/invalidated.')
48
+                ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, all cache entries will be flushed.')
49
+                ->setHelp(<<<EOT
50 50
 The <info>%command.name%</info> command is meant to clear a second-level cache query region for an associated Entity Manager.
51 51
 It is possible to delete/invalidate all query region, a specific query region or flushes the cache provider.
52 52
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 Finally, be aware that if <info>--flush</info> option is passed,
71 71
 not all cache providers are able to flush entries, because of a limitation of its execution nature.
72 72
 EOT
73
-             );
73
+                );
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.
Doctrine/ORM/Tools/Console/Command/ClearCache/CollectionRegionCommand.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
     protected function configure()
43 43
     {
44 44
         $this->setName('orm:clear-cache:region:collection')
45
-             ->setDescription('Clear a second-level cache collection region')
46
-             ->addArgument('owner-class', InputArgument::OPTIONAL, 'The owner entity name.')
47
-             ->addArgument('association', InputArgument::OPTIONAL, 'The association collection name.')
48
-             ->addArgument('owner-id', InputArgument::OPTIONAL, 'The owner identifier.')
49
-             ->addOption('all', null, InputOption::VALUE_NONE, 'If defined, all entity regions will be deleted/invalidated.')
50
-             ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, all cache entries will be flushed.')
51
-             ->setHelp(<<<EOT
45
+                ->setDescription('Clear a second-level cache collection region')
46
+                ->addArgument('owner-class', InputArgument::OPTIONAL, 'The owner entity name.')
47
+                ->addArgument('association', InputArgument::OPTIONAL, 'The association collection name.')
48
+                ->addArgument('owner-id', InputArgument::OPTIONAL, 'The owner identifier.')
49
+                ->addOption('all', null, InputOption::VALUE_NONE, 'If defined, all entity regions will be deleted/invalidated.')
50
+                ->addOption('flush', null, InputOption::VALUE_NONE, 'If defined, all cache entries will be flushed.')
51
+                ->setHelp(<<<EOT
52 52
 The <info>%command.name%</info> command is meant to clear a second-level cache collection regions for an associated Entity Manager.
53 53
 It is possible to delete/invalidate all collection region, a specific collection region or flushes the cache provider.
54 54
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 Finally, be aware that if <info>--flush</info> option is passed,
73 73
 not all cache providers are able to flush entries, because of a limitation of its execution nature.
74 74
 EOT
75
-             );
75
+                );
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
         }
98 98
 
99 99
         if ($input->getOption('flush')) {
100
-            $collectionRegion  = $cache->getCollectionCacheRegion($ownerClass, $assoc);
100
+            $collectionRegion = $cache->getCollectionCacheRegion($ownerClass, $assoc);
101 101
 
102 102
             if ( ! $collectionRegion instanceof DefaultRegion) {
103 103
                 throw new \InvalidArgumentException(sprintf(
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
@@ -49,17 +49,17 @@  discard block
 block discarded – undo
49 49
     protected function configure()
50 50
     {
51 51
         $this->setName('orm:convert-mapping')
52
-             ->setAliases(['orm:convert:mapping'])
53
-             ->setDescription('Convert mapping information between supported formats')
54
-             ->addArgument('to-type', InputArgument::REQUIRED, 'The mapping type to be converted.')
55
-             ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entities classes.')
56
-             ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
57
-             ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.')
58
-             ->addOption('from-database', null, null, 'Whether or not to convert mapping information from existing database.')
59
-             ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.')
60
-             ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4)
61
-             ->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Defines a namespace for the generated entity classes, if converted from database.')
62
-             ->setHelp(<<<EOT
52
+                ->setAliases(['orm:convert:mapping'])
53
+                ->setDescription('Convert mapping information between supported formats')
54
+                ->addArgument('to-type', InputArgument::REQUIRED, 'The mapping type to be converted.')
55
+                ->addArgument('dest-path', InputArgument::REQUIRED, 'The path to generate your entities classes.')
56
+                ->addOption('filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'A string pattern used to match entities that should be processed.')
57
+                ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force to overwrite existing mapping files.')
58
+                ->addOption('from-database', null, null, 'Whether or not to convert mapping information from existing database.')
59
+                ->addOption('extend', null, InputOption::VALUE_OPTIONAL, 'Defines a base class to be extended by generated entity classes.')
60
+                ->addOption('num-spaces', null, InputOption::VALUE_OPTIONAL, 'Defines the number of indentation spaces', 4)
61
+                ->addOption('namespace', null, InputOption::VALUE_OPTIONAL, 'Defines a namespace for the generated entity classes, if converted from database.')
62
+                ->setHelp(<<<EOT
63 63
 Convert mapping information between supported formats.
64 64
 
65 65
 This is an execute <info>one-time</info> command. It should not be necessary for
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     \$config->setFilterSchemaAssetsExpression(\$regexp);
84 84
 EOT
85
-             );
85
+                );
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.