@@ -98,7 +98,7 @@ |
||
| 98 | 98 | $progressBar = new ProgressBar($output, \count($sqls)); |
| 99 | 99 | $progressBar->start(); |
| 100 | 100 | |
| 101 | - $updateManager->updateAuditSchema($sqls, static function (array $progress) use ($progressBar): void { |
|
| 101 | + $updateManager->updateAuditSchema($sqls, static function(array $progress) use ($progressBar): void { |
|
| 102 | 102 | $progressBar->advance(); |
| 103 | 103 | }); |
| 104 | 104 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $repository[$key][$entity] = $tableName; |
| 94 | 94 | } |
| 95 | 95 | } |
| 96 | - $findEntityByTablename = static function (string $tableName) use ($repository): ?string { |
|
| 96 | + $findEntityByTablename = static function(string $tableName) use ($repository): ?string { |
|
| 97 | 97 | foreach ($repository as $emName => $map) { |
| 98 | 98 | $result = array_search($tableName, $map, true); |
| 99 | 99 | if (false !== $result) { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | // extend the SQL logger |
| 43 | 43 | $this->loggerBackup = $entityManager->getConnection()->getConfiguration()->getSQLLogger(); |
| 44 | - $auditLogger = new Logger(function () use ($entityManager, $transaction): void { |
|
| 44 | + $auditLogger = new Logger(function() use ($entityManager, $transaction): void { |
|
| 45 | 45 | // flushes pending data |
| 46 | 46 | $entityManager->getConnection()->getConfiguration()->setSQLLogger($this->loggerBackup); |
| 47 | 47 | $this->transactionManager->process($transaction); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $storageServices = $this->provider->getStorageServices(); |
| 60 | 60 | |
| 61 | 61 | \assert(array_values($auditingServices)[0] instanceof AuditingService); // helps PHPStan |
| 62 | - \assert(array_values($storageServices)[0] instanceof StorageService); // helps PHPStan |
|
| 62 | + \assert(array_values($storageServices)[0] instanceof StorageService); // helps PHPStan |
|
| 63 | 63 | $isSameEntityManager = 1 === \count($auditingServices) && 1 === \count($storageServices) |
| 64 | 64 | && array_values($auditingServices)[0]->getEntityManager() === array_values($storageServices)[0]->getEntityManager(); |
| 65 | 65 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | // on rollback remove flusher callback |
| 29 | 29 | if ('"ROLLBACK"' === $sql) { |
| 30 | - $this->flusher = static function (): void {}; |
|
| 30 | + $this->flusher = static function(): void {}; |
|
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | use Rector\Set\ValueObject\LevelSetList; |
| 10 | 10 | use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; |
| 11 | 11 | |
| 12 | -return static function (ContainerConfigurator $containerConfigurator): void { |
|
| 12 | +return static function(ContainerConfigurator $containerConfigurator): void { |
|
| 13 | 13 | $services = $containerConfigurator->services(); |
| 14 | 14 | $services->set(TypedPropertyRector::class); |
| 15 | 15 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | { |
| 26 | 26 | return [ |
| 27 | 27 | LifecycleEvent::class => [ |
| 28 | - ['onAuditEvent', -1_000_000], // should be fired last |
|
| 28 | + ['onAuditEvent', -1_000_000], // should be fired last |
|
| 29 | 29 | ], |
| 30 | 30 | ]; |
| 31 | 31 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | switch ($type->getName()) { |
| 76 | 76 | case DoctrineHelper::getDoctrineType('BIGINT'): |
| 77 | - $convertedValue = (string) $value; // @phpstan-ignore-line |
|
| 77 | + $convertedValue = (string) $value; // @phpstan-ignore-line |
|
| 78 | 78 | |
| 79 | 79 | break; |
| 80 | 80 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | case 'uuid': |
| 97 | 97 | case 'ulid': |
| 98 | 98 | // Ramsey UUID / Symfony UID (UUID/ULID) |
| 99 | - $convertedValue = (string) $value; // @phpstan-ignore-line |
|
| 99 | + $convertedValue = (string) $value; // @phpstan-ignore-line |
|
| 100 | 100 | |
| 101 | 101 | break; |
| 102 | 102 | |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | */ |
| 160 | 160 | public function getDiffs(bool $includeMedadata = false): ?array |
| 161 | 161 | { |
| 162 | - $diffs = $this->sort(json_decode($this->diffs, true, 512, JSON_THROW_ON_ERROR)); // @phpstan-ignore-line |
|
| 162 | + $diffs = $this->sort(json_decode($this->diffs, true, 512, JSON_THROW_ON_ERROR)); // @phpstan-ignore-line |
|
| 163 | 163 | if (!$includeMedadata) { |
| 164 | 164 | unset($diffs['@source']); |
| 165 | 165 | } |