@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | $executedUnavailableMigrations = array_diff($executedMigrations, $availableMigrations); |
| 93 | - if ( ! empty($executedUnavailableMigrations)) { |
|
| 93 | + if (!empty($executedUnavailableMigrations)) { |
|
| 94 | 94 | $output->writeln(sprintf( |
| 95 | 95 | '<error>WARNING! You have %s previously executed migrations' |
| 96 | 96 | . ' in the database that are not registered migrations.</error>', |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | $question = 'Are you sure you wish to continue? (y/n)'; |
| 109 | - if ( ! $this->canExecute($question, $input, $output)) { |
|
| 109 | + if (!$this->canExecute($question, $input, $output)) { |
|
| 110 | 110 | $output->writeln('<error>Migration cancelled!</error>'); |
| 111 | 111 | |
| 112 | 112 | return 1; |
@@ -121,12 +121,12 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | $cancelled = false; |
| 123 | 123 | $migration->setNoMigrationException($input->getOption('allow-no-migration')); |
| 124 | - $result = $migration->migrate($version, $dryRun, $timeAllqueries, function () use ($input, $output, &$cancelled) { |
|
| 124 | + $result = $migration->migrate($version, $dryRun, $timeAllqueries, function() use ($input, $output, &$cancelled) { |
|
| 125 | 125 | $question = 'WARNING! You are about to execute a database migration' |
| 126 | 126 | . ' that could result in schema changes and data lost.' |
| 127 | 127 | . ' Are you sure you wish to continue? (y/n)'; |
| 128 | 128 | $canContinue = $this->canExecute($question, $input, $output); |
| 129 | - $cancelled = ! $canContinue; |
|
| 129 | + $cancelled = !$canContinue; |
|
| 130 | 130 | |
| 131 | 131 | return $canContinue; |
| 132 | 132 | }); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | private function canExecute($question, InputInterface $input, OutputInterface $output) |
| 158 | 158 | { |
| 159 | - return ! $input->isInteractive() && $this->askConfirmation($question, $input, $output); |
|
| 159 | + return !$input->isInteractive() && $this->askConfirmation($question, $input, $output); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |