Completed
Pull Request — master (#480)
by
unknown
03:06
created
lib/Doctrine/DBAL/Migrations/Tools/Console/Command/MigrateCommand.php 1 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;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $dryRun = (boolean) $input->getOption('dry-run');
131 131
 
132 132
         $migration->setNoMigrationException($input->getOption('allow-no-migration'));
133
-        $result = $migration->migrate($version, $dryRun, $timeAllqueries, function () use ($input, $output) {
133
+        $result = $migration->migrate($version, $dryRun, $timeAllqueries, function() use ($input, $output) {
134 134
             $question = 'WARNING! You are about to execute a database migration'
135 135
                 . ' that could result in schema changes and data lost.'
136 136
                 . ' Are you sure you wish to continue? (y/n)';
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     private function canExecute($question, InputInterface $input, OutputInterface $output)
164 164
     {
165
-        if ($input->isInteractive() && ! $this->askConfirmation($question, $input, $output)) {
165
+        if ($input->isInteractive() && !$this->askConfirmation($question, $input, $output)) {
166 166
             return false;
167 167
         }
168 168
 
Please login to merge, or discard this patch.
lib/Doctrine/DBAL/Migrations/Migration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
         return [];
198 198
     }
199 199
 
200
-    private function migrationsCanExecute(callable $confirm=null)
200
+    private function migrationsCanExecute(callable $confirm = null)
201 201
     {
202 202
         return null === $confirm ? true : $confirm();
203 203
     }
Please login to merge, or discard this patch.