mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
fix: cs
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
0cf44f0865
commit
f4f03eed71
5 changed files with 4 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ class MailNotifyListener implements IEventListener {
|
|||
if ($identifyMethod->getEntity()->isDeletedAccount()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$email = '';
|
||||
if ($identifyMethod->getName() === 'account') {
|
||||
$userId = $identifyMethod->getEntity()->getIdentifierValue();
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue