@@ -79,7 +79,7 @@ |
||
79 | 79 | * @param string $path The path to write the migration SQL file. |
80 | 80 | * @param string $to The version to migrate to. |
81 | 81 | * |
82 | - * @return boolean $written |
|
82 | + * @return integer $written |
|
83 | 83 | */ |
84 | 84 | public function writeSqlFile($path, $to = null) |
85 | 85 | { |
@@ -197,7 +197,7 @@ |
||
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 | } |
@@ -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; |
@@ -130,7 +130,7 @@ discard block |
||
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 |
||
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 |