Completed
Pull Request — master (#501)
by Jordi
03:01
created
lib/Doctrine/DBAL/Migrations/Tools/Console/Command/MigrateCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
      * @param string $versionAlias
178 178
      * @param OutputInterface $output
179 179
      * @param Configuration $configuration
180
-     * @return bool|string
180
+     * @return false|string
181 181
      */
182 182
     private function getVersionNameFromAlias($versionAlias, OutputInterface $output, Configuration $configuration)
183 183
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             }
115 115
 
116 116
             $question = 'Are you sure you wish to continue? (y/n)';
117
-            if (! $this->canExecute($question, $input, $output)) {
117
+            if (!$this->canExecute($question, $input, $output)) {
118 118
                 $output->writeln('<error>Migration cancelled!</error>');
119 119
 
120 120
                 return 1;
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         $cancelled = false;
133 133
         $migration->setNoMigrationException($input->getOption('allow-no-migration'));
134
-        $result = $migration->migrate($version, $dryRun, $timeAllqueries, function () use ($input, $output, &$cancelled) {
134
+        $result = $migration->migrate($version, $dryRun, $timeAllqueries, function() use ($input, $output, &$cancelled) {
135 135
             $question = 'WARNING! You are about to execute a database migration'
136 136
                 . ' that could result in schema changes and data lost.'
137 137
                 . ' Are you sure you wish to continue? (y/n)';
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     private function canExecute($question, InputInterface $input, OutputInterface $output)
168 168
     {
169
-        if ($input->isInteractive() && ! $this->askConfirmation($question, $input, $output)) {
169
+        if ($input->isInteractive() && !$this->askConfirmation($question, $input, $output)) {
170 170
             return false;
171 171
         }
172 172
 
Please login to merge, or discard this patch.