Skip to content

Commit

Permalink
solve linter problems
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Martins <[email protected]>
  • Loading branch information
giovannism20 committed Nov 23, 2023
1 parent 671a495 commit 5884470
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/Db/AccountFileMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private function formatListRow(array $row, string $url): array {
*/
private function assocFileToSignRequestAndFormat(array $files, array $signers): array {
foreach ($files as $key => $file) {
$files[$key]['file']['signers'] = [];
$files[$key]['file']['signers'] = [];
foreach ($signers as $signerKey => $signer) {
if ($signer->getFileId() === $file['id']) {
$data = [
Expand All @@ -255,7 +255,7 @@ private function assocFileToSignRequestAndFormat(array $files, array $signers):
$data['sign_date'] = (new \DateTime())
->setTimestamp($signer->getSigned())
->format('Y-m-d H:i:s');
}
}
$files[$key]['file']['signers'][] = $data;
unset($signers[$signerKey]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Helper/ValidateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ public function validateUserHasNoFileWithThisType(string $uid, string $type): vo
try {
$exists = $this->accountFileMapper->getByUserAndType($uid, $type);
} catch (\Throwable) {
// TODO: Add the exception
// TODO: Add the exception
}
if (!empty($exists)) {
throw new LibresignException($this->l10n->t('A file of this type has been associated.'));
Expand Down
2 changes: 1 addition & 1 deletion lib/Migration/Version8000Date20230410230327.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function preSchemaChange(IOutput $output, \Closure $schemaClosure, array
$folder = $appFolder->getFolder('libresign-cli');
$folder->delete();
} catch (NotFoundException) {
// TODO: Add the exception
// TODO: Add the exception
}
$this->config->deleteAppValue(Application::APP_ID, 'libresign_cli_path');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function hasSignatureFile(?IUser $user = null): bool {
$this->pkcs12Handler->getPfx($user->getUID());
return true;
} catch (\Throwable) {
// TODO: Add the exception
// TODO: Add the exception
}
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/RequestSignatureService.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function saveFile(array $data): FileEntity {
}
return $file;
} catch (\Throwable) {
// TODO: Add the exception
// TODO: Add the exception
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function deleteUserIfExists($username): void {
try {
$user->delete();
} catch (\Throwable) {
// TODO: Add the exception
// TODO: Add the exception
}
}
}
Expand Down

0 comments on commit 5884470

Please sign in to comment.