@@ -27,27 +27,27 @@ |
||
| 27 | 27 | /** |
| 28 | 28 | * @var array |
| 29 | 29 | */ |
| 30 | - private $inserted = []; // [$source, $changeset] |
|
| 30 | + private $inserted = []; // [$source, $changeset] |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * @var array |
| 34 | 34 | */ |
| 35 | - private $updated = []; // [$source, $changeset] |
|
| 35 | + private $updated = []; // [$source, $changeset] |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * @var array |
| 39 | 39 | */ |
| 40 | - private $removed = []; // [$source, $id] |
|
| 40 | + private $removed = []; // [$source, $id] |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * @var array |
| 44 | 44 | */ |
| 45 | - private $associated = []; // [$source, $target, $mapping] |
|
| 45 | + private $associated = []; // [$source, $target, $mapping] |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @var array |
| 49 | 49 | */ |
| 50 | - private $dissociated = []; // [$source, $target, $id, $mapping] |
|
| 50 | + private $dissociated = []; // [$source, $target, $id, $mapping] |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @var EntityManagerInterface |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | |
| 47 | 47 | // extend the SQL logger |
| 48 | 48 | $this->loggerBackup = $em->getConnection()->getConfiguration()->getSQLLogger(); |
| 49 | - $auditLogger = new AuditLogger(function () use ($em, $transaction): void { |
|
| 49 | + $auditLogger = new AuditLogger(function() use ($em, $transaction): void { |
|
| 50 | 50 | // flushes pending data |
| 51 | 51 | $em->getConnection()->getConfiguration()->setSQLLogger($this->loggerBackup); |
| 52 | 52 | $this->manager->process($transaction); |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $progressBar = new ProgressBar($output, \count($sqls)); |
| 101 | 101 | $progressBar->start(); |
| 102 | 102 | |
| 103 | - $updater->updateAuditSchema($sqls, static function (array $progress) use ($progressBar): void { |
|
| 103 | + $updater->updateAuditSchema($sqls, static function(array $progress) use ($progressBar): void { |
|
| 104 | 104 | $progressBar->advance(); |
| 105 | 105 | }); |
| 106 | 106 | |
@@ -363,19 +363,13 @@ |
||
| 363 | 363 | $platform = $em->getConnection()->getDatabasePlatform(); |
| 364 | 364 | |
| 365 | 365 | switch ($type->getName()) { |
| 366 | - case class_exists('DoctrineDBALTypesTypes', false) ? Types::BIGINT : Type::BIGINT: |
|
| 367 | - $convertedValue = (string) $value; |
|
| 366 | + case class_exists('DoctrineDBALTypesTypes', false) ? Types::BIGINT : Type::BIGINT : $convertedValue = (string) $value; |
|
| 368 | 367 | |
| 369 | 368 | break; |
| 370 | - case class_exists('DoctrineDBALTypesTypes', false) ? Types::INTEGER : Type::INTEGER: |
|
| 371 | - case class_exists('DoctrineDBALTypesTypes', false) ? Types::SMALLINT : Type::SMALLINT: |
|
| 372 | - $convertedValue = (int) $value; |
|
| 369 | + case class_exists('DoctrineDBALTypesTypes', false) ? Types::INTEGER : Type::INTEGER : case class_exists('DoctrineDBALTypesTypes', false) ? Types::SMALLINT : Type::SMALLINT : $convertedValue = (int) $value; |
|
| 373 | 370 | |
| 374 | 371 | break; |
| 375 | - case class_exists('DoctrineDBALTypesTypes', false) ? Types::DECIMAL : Type::DECIMAL: |
|
| 376 | - case class_exists('DoctrineDBALTypesTypes', false) ? Types::FLOAT : Type::FLOAT: |
|
| 377 | - case class_exists('DoctrineDBALTypesTypes', false) ? Types::BOOLEAN : Type::BOOLEAN: |
|
| 378 | - $convertedValue = $type->convertToPHPValue($value, $platform); |
|
| 372 | + case class_exists('DoctrineDBALTypesTypes', false) ? Types::DECIMAL : Type::DECIMAL : case class_exists('DoctrineDBALTypesTypes', false) ? Types::FLOAT : Type::FLOAT : case class_exists('DoctrineDBALTypesTypes', false) ? Types::BOOLEAN : Type::BOOLEAN : $convertedValue = $type->convertToPHPValue($value, $platform); |
|
| 379 | 373 | |
| 380 | 374 | break; |
| 381 | 375 | default: |