Passed
Push — master ( 0cc661...15cf8e )
by Gaetano
09:51
created
Core/StorageHandler/Database/Migration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function endMigration(APIMigration $migration, $force = false)
179 179
     {
180 180
         if ($migration->status == APIMigration::STATUS_STARTED) {
181
-            throw new \Exception($this->getEntityName($migration)." '{$migration->name}' can not be ended as its status is 'started'...");
181
+            throw new \Exception($this->getEntityName($migration) . " '{$migration->name}' can not be ended as its status is 'started'...");
182 182
         }
183 183
 
184 184
         $this->createTableIfNeeded();
@@ -205,13 +205,13 @@  discard block
 block discarded – undo
205 205
         if (!is_array($existingMigrationData)) {
206 206
             // commit to release the lock
207 207
             $conn->commit();
208
-            throw new \Exception($this->getEntityName($migration)." '{$migration->name}' can not be ended as it is not found");
208
+            throw new \Exception($this->getEntityName($migration) . " '{$migration->name}' can not be ended as it is not found");
209 209
         }
210 210
 
211 211
         if (($existingMigrationData['status'] != APIMigration::STATUS_STARTED) && !$force) {
212 212
             // commit to release the lock
213 213
             $conn->commit();
214
-            throw new \Exception($this->getEntityName($migration)." '{$migration->name}' can not be ended as it is not executing");
214
+            throw new \Exception($this->getEntityName($migration) . " '{$migration->name}' can not be ended as it is not executing");
215 215
         }
216 216
 
217 217
         $conn->update(
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         if (!is_array($existingMigrationData)) {
367 367
             // commit immediately, to release the lock and avoid deadlocks
368 368
             $conn->commit();
369
-            throw new \Exception($this->getEntityName($migration)." '{$migration->name}' can not be resumed as it is not found");
369
+            throw new \Exception($this->getEntityName($migration) . " '{$migration->name}' can not be resumed as it is not found");
370 370
         }
371 371
 
372 372
         // migration exists
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         if ($existingMigrationData['status'] != APIMigration::STATUS_SUSPENDED) {
376 376
             // commit to release the lock
377 377
             $conn->commit();
378
-            throw new \Exception($this->getEntityName($migration)." '{$migration->name}' can not be resumed as it is not suspended");
378
+            throw new \Exception($this->getEntityName($migration) . " '{$migration->name}' can not be resumed as it is not suspended");
379 379
         }
380 380
 
381 381
         $migration = new APIMigration(
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
         foreach ($schema->toSql($dbPlatform) as $sql) {
435 435
             try {
436 436
                 $this->dbHandler->exec($sql);
437
-            } catch(QueryException $e) {
437
+            } catch (QueryException $e) {
438 438
                 // work around limitations in both Mysql and Doctrine
439 439
                 // @see https://github.com/kaliop-uk/ezmigrationbundle/issues/176
440 440
                 if (strpos($e->getMessage(), '1071 Specified key was too long; max key length is 767 bytes') !== false &&
Please login to merge, or discard this patch.
Core/StorageHandler/Database/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         foreach ($schema->toSql($dbPlatform) as $sql) {
124 124
             try {
125 125
                 $this->dbHandler->exec($sql);
126
-            } catch(QueryException $e) {
126
+            } catch (QueryException $e) {
127 127
                 // work around limitations in both Mysql and Doctrine
128 128
                 // @see https://github.com/kaliop-uk/ezmigrationbundle/issues/176
129 129
                 if (strpos($e->getMessage(), '1071 Specified key was too long; max key length is 767 bytes') !== false &&
Please login to merge, or discard this patch.
Core/StorageHandler/Database/TableStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      */
54 54
     protected function injectTableCreationOptions(Table $table)
55 55
     {
56
-        foreach($this->tableCreationOptions as $key => $value) {
56
+        foreach ($this->tableCreationOptions as $key => $value) {
57 57
             $table->addOption($key, $value);
58 58
         }
59 59
     }
Please login to merge, or discard this patch.