Skip to content

Commit edc994e

Browse files
fix: cs
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 1f18502 commit edc994e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Db/FileMapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,16 @@ public function getDeletionContext(int $nodeId): array {
243243
}
244244

245245
if (!empty($row['signed_file_id'])) {
246-
return ['type' => 'signed_file', 'fileId' => (int) $row['signed_file_id']];
246+
return ['type' => 'signed_file', 'fileId' => (int)$row['signed_file_id']];
247247
}
248248
if (!empty($row['file_id'])) {
249-
return ['type' => 'file', 'fileId' => (int) $row['file_id']];
249+
return ['type' => 'file', 'fileId' => (int)$row['file_id']];
250250
}
251251
if (!empty($row['user_element_id'])) {
252252
return ['type' => 'user_element', 'fileId' => null];
253253
}
254254
if (!empty($row['file_element_file_id'])) {
255-
return ['type' => 'file_element', 'fileId' => (int) $row['file_element_file_id']];
255+
return ['type' => 'file_element', 'fileId' => (int)$row['file_element_file_id']];
256256
}
257257

258258
return ['type' => 'not_libresign_file', 'fileId' => null];

lib/Migration/Version16002Date20251230120000.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ private function restoreNodeIdsFromBackup(): void {
115115
continue;
116116
}
117117

118-
$userElementId = (int) $row[$columnIndex['id']];
118+
$userElementId = (int)$row[$columnIndex['id']];
119119
$nodeId = $row[$columnIndex['file_id']] ?? null;
120120
if ($nodeId === null || $nodeId === '') {
121121
continue;
122122
}
123123

124124
$qb = $this->connection->getQueryBuilder();
125125
$qb->update('libresign_user_element')
126-
->set('node_id', $qb->createNamedParameter((int) $nodeId, IQueryBuilder::PARAM_INT))
126+
->set('node_id', $qb->createNamedParameter((int)$nodeId, IQueryBuilder::PARAM_INT))
127127
->where($qb->expr()->eq('id', $qb->createNamedParameter($userElementId, IQueryBuilder::PARAM_INT)));
128128

129129
$qb->executeStatement();
@@ -137,4 +137,4 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
137137
$this->restoreNodeIdsFromBackup();
138138
}
139139

140-
}
140+
}

0 commit comments

Comments
 (0)