Completed
Pull Request — master (#426)
by Reen
09:08
created
lib/Doctrine/DBAL/Migrations/Tools/Console/Command/VersionCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $this->configuration = $this->getMigrationConfiguration($input, $output);
94 94
 
95
-        if ( ! $input->getOption('add') && ! $input->getOption('delete')) {
95
+        if (!$input->getOption('add') && !$input->getOption('delete')) {
96 96
             throw new \InvalidArgumentException('You must specify whether you want to --add or --delete the specified version.');
97 97
         }
98 98
 
@@ -149,26 +149,26 @@  discard block
 block discarded – undo
149 149
 
150 150
     private function mark($version, $all = false)
151 151
     {
152
-        if ( ! $this->configuration->hasVersion($version)) {
152
+        if (!$this->configuration->hasVersion($version)) {
153 153
             throw MigrationException::unknownMigrationVersion($version);
154 154
         }
155 155
 
156 156
         $version = $this->configuration->getVersion($version);
157 157
         if ($this->markMigrated && $this->configuration->hasVersionMigrated($version)) {
158
-            if (! $all) {
158
+            if (!$all) {
159 159
                 throw new \InvalidArgumentException(sprintf('The version "%s" already exists in the version table.', $version));
160 160
             }
161 161
             $marked = true;
162 162
         }
163 163
 
164
-        if ( ! $this->markMigrated && ! $this->configuration->hasVersionMigrated($version)) {
165
-            if (! $all) {
164
+        if (!$this->markMigrated && !$this->configuration->hasVersionMigrated($version)) {
165
+            if (!$all) {
166 166
                 throw new \InvalidArgumentException(sprintf('The version "%s" does not exists in the version table.', $version));
167 167
             }
168 168
             $marked = false;
169 169
         }
170 170
 
171
-        if ( ! isset($marked)) {
171
+        if (!isset($marked)) {
172 172
             if ($this->markMigrated) {
173 173
                 $version->markMigrated();
174 174
             } else {
Please login to merge, or discard this patch.