@@ -177,7 +177,7 @@ |
||
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 | { |
@@ -114,7 +114,7 @@ discard block |
||
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 |
||
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 |
||
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 |