From f4f03eed717d1d51373fd1814f39c47ea7b9c149 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Sat, 13 Dec 2025 17:18:31 -0300 Subject: [PATCH] fix: cs Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- lib/Activity/Settings/SignRequestCanceled.php | 2 -- lib/Events/SignRequestCanceledEvent.php | 2 +- lib/Listener/MailNotifyListener.php | 2 +- lib/Notification/Notifier.php | 2 +- lib/Service/RequestSignatureService.php | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/Activity/Settings/SignRequestCanceled.php b/lib/Activity/Settings/SignRequestCanceled.php index 2ce71600f..333c7b1f4 100644 --- a/lib/Activity/Settings/SignRequestCanceled.php +++ b/lib/Activity/Settings/SignRequestCanceled.php @@ -9,10 +9,8 @@ declare(strict_types=1); namespace OCA\Libresign\Activity\Settings; use OCA\Libresign\Events\SignRequestCanceledEvent; -use OCA\Libresign\Exception\LibresignException; use OCA\Libresign\Helper\ValidateHelper; use OCP\IL10N; -use OCP\IUser; use OCP\IUserSession; class SignRequestCanceled extends LibresignActivitySettings { diff --git a/lib/Events/SignRequestCanceledEvent.php b/lib/Events/SignRequestCanceledEvent.php index a7433c3c9..4a06ed4b0 100644 --- a/lib/Events/SignRequestCanceledEvent.php +++ b/lib/Events/SignRequestCanceledEvent.php @@ -15,7 +15,7 @@ use OCP\EventDispatcher\Event; class SignRequestCanceledEvent extends Event { public const SIGN_REQUEST_CANCELED = 'libresign_sign_request_canceled'; - + public function __construct( private SignRequest $signRequest, private FileEntity $libreSignFile, diff --git a/lib/Listener/MailNotifyListener.php b/lib/Listener/MailNotifyListener.php index 7b3c15413..45e931249 100644 --- a/lib/Listener/MailNotifyListener.php +++ b/lib/Listener/MailNotifyListener.php @@ -136,7 +136,7 @@ class MailNotifyListener implements IEventListener { if ($identifyMethod->getEntity()->isDeletedAccount()) { return; } - + $email = ''; if ($identifyMethod->getName() === 'account') { $userId = $identifyMethod->getEntity()->getIdentifierValue(); diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index b8ab1407b..a56c78018 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -234,7 +234,7 @@ class Notifier implements INotifier { $parameters = $notification->getSubjectParameters(); $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath(Application::APP_ID, 'app-dark.svg'))); - + if (isset($parameters['from']) && isset($parameters['file'])) { $subject = $l->t('{from} canceled the signature request for {file}'); $notification->setParsedSubject( diff --git a/lib/Service/RequestSignatureService.php b/lib/Service/RequestSignatureService.php index 56122dd78..11b3541d6 100644 --- a/lib/Service/RequestSignatureService.php +++ b/lib/Service/RequestSignatureService.php @@ -479,7 +479,7 @@ class RequestSignatureService { return $signRequest; } - public function unassociateToUser(int $fileId, int $signRequestId): void { + public function unassociateToUser(int $fileId, int $signRequestId): void { $signRequest = $this->signRequestMapper->getByFileIdAndSignRequestId($fileId, $signRequestId); $deletedOrder = $signRequest->getSigningOrder();