Skip to content

Commit f6a7dee

Browse files
chore: simplify code, remove unecessary method
Signed-off-by: Vitor Mattos <[email protected]>
1 parent c22e064 commit f6a7dee

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/Dashboard/PendingSignaturesWidget.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function getItemsV2(string $userId, ?string $since = null, int $limit = 7
104104
}
105105

106106
$item = new WidgetItem(
107-
$this->getDocumentTitle($fileEntity),
107+
$fileEntity->getName(),
108108
$this->getSubtitle($signRequest, $fileEntity),
109109
$this->urlGenerator->linkToRouteAbsolute('libresign.page.signFPath', ['uuid' => $signRequest->getUuid(), 'path' => 'pdf']),
110110
$this->urlGenerator->getAbsoluteURL(
@@ -123,10 +123,6 @@ public function getItemsV2(string $userId, ?string $since = null, int $limit = 7
123123
);
124124
}
125125

126-
private function getDocumentTitle(\OCA\Libresign\Db\File $fileEntity): string {
127-
return $fileEntity->getName();
128-
}
129-
130126
private function getSubtitle(\OCA\Libresign\Db\SignRequest $signRequest, \OCA\Libresign\Db\File $fileEntity): string {
131127
$displayName = $signRequest->getDisplayName();
132128
$createdAt = $fileEntity->getCreatedAt();

0 commit comments

Comments
 (0)