@@ -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 |
@@ -75,7 +75,7 @@ |
||
75 | 75 | { |
76 | 76 | $filters = \is_array($filter) ? $filter : [$filter]; |
77 | 77 | |
78 | - $this->filters = array_filter($filters, static function ($f) { |
|
78 | + $this->filters = array_filter($filters, static function($f) { |
|
79 | 79 | return \in_array($f, [self::UPDATE, self::ASSOCIATE, self::DISSOCIATE, self::INSERT, self::REMOVE], true); |
80 | 80 | }); |
81 | 81 |
@@ -18,27 +18,27 @@ |
||
18 | 18 | /** |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - private $inserted = []; // [$source, $changeset] |
|
21 | + private $inserted = []; // [$source, $changeset] |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @var array |
25 | 25 | */ |
26 | - private $updated = []; // [$source, $changeset] |
|
26 | + private $updated = []; // [$source, $changeset] |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @var array |
30 | 30 | */ |
31 | - private $removed = []; // [$source, $id] |
|
31 | + private $removed = []; // [$source, $id] |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @var array |
35 | 35 | */ |
36 | - private $associated = []; // [$source, $target, $mapping] |
|
36 | + private $associated = []; // [$source, $target, $mapping] |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * @var array |
40 | 40 | */ |
41 | - private $dissociated = []; // [$source, $target, $id, $mapping] |
|
41 | + private $dissociated = []; // [$source, $target, $id, $mapping] |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Returns transaction hash. |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | // extend the SQL logger |
48 | 48 | $this->loggerBackup = $em->getConnection()->getConfiguration()->getSQLLogger(); |
49 | - $auditLogger = new Logger(function () use ($em, $transaction): void { |
|
49 | + $auditLogger = new Logger(function() use ($em, $transaction): void { |
|
50 | 50 | // flushes pending data |
51 | 51 | $em->getConnection()->getConfiguration()->setSQLLogger($this->loggerBackup); |
52 | 52 | $this->transactionManager->process($transaction); |
@@ -166,7 +166,7 @@ |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | // ensure that proxies are initialized |
169 | - if(!($entity instanceof Proxy) || $entity->__isInitialized()) { |
|
169 | + if (!($entity instanceof Proxy) || $entity->__isInitialized()) { |
|
170 | 170 | $em->getUnitOfWork()->initializeObject($entity); |
171 | 171 | } |
172 | 172 |