mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
Composer cs:fix
This commit is contained in:
parent
6dbfe50200
commit
934639a86f
7 changed files with 21 additions and 21 deletions
|
|
@ -118,14 +118,14 @@ class AccountFileMapper extends QBMapper {
|
|||
private function getUserAccountFile(array $filter = [], bool $count = false): Pagination {
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
$qb->select(
|
||||
'f.id',
|
||||
'f.uuid',
|
||||
'f.name',
|
||||
'f.callback',
|
||||
'f.status',
|
||||
'f.node_id',
|
||||
'af.file_type'
|
||||
)
|
||||
'f.id',
|
||||
'f.uuid',
|
||||
'f.name',
|
||||
'f.callback',
|
||||
'f.status',
|
||||
'f.node_id',
|
||||
'af.file_type'
|
||||
)
|
||||
->selectAlias('u.uid_lower', 'account_uid')
|
||||
->selectAlias('u.displayname', 'account_displayname')
|
||||
->selectAlias('f.created_at', 'request_date')
|
||||
|
|
|
|||
|
|
@ -289,12 +289,12 @@ class FileUserMapper extends QBMapper {
|
|||
private function getFilesAssociatedFilesWithMeStmt(string $userId, bool $count = false): Pagination {
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
$qb->select(
|
||||
'f.id',
|
||||
'f.uuid',
|
||||
'f.name',
|
||||
'f.callback',
|
||||
'f.node_id'
|
||||
)
|
||||
'f.id',
|
||||
'f.uuid',
|
||||
'f.name',
|
||||
'f.callback',
|
||||
'f.node_id'
|
||||
)
|
||||
->selectAlias('u.uid_lower', 'requested_by_uid')
|
||||
->selectAlias('u.displayname', 'requested_by_dislpayname')
|
||||
->selectAlias('f.created_at', 'request_date')
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ class CfsslHandler {
|
|||
if ($th->getHandlerContext() && $th->getHandlerContext()['error']) {
|
||||
throw new \Exception($th->getHandlerContext()['error'], 1);
|
||||
}
|
||||
throw new LibresignException($th->getMessage(), 500);
|
||||
throw new LibresignException($th->getMessage(), 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -338,13 +338,13 @@ class ValidateHelper {
|
|||
if ($mimetype !== 'application/pdf') {
|
||||
throw new LibresignException($this->l10n->t('File type: %s. Must be a fileID of %s format.', [$this->getTypeOfFile($type), 'PDF']));
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case self::TYPE_VISIBLE_ELEMENT_PDF:
|
||||
case self::TYPE_VISIBLE_ELEMENT_USER:
|
||||
if ($mimetype !== 'image/png') {
|
||||
throw new LibresignException($this->l10n->t('File type: %s. Must be a fileID of %s format.', [$this->getTypeOfFile($type), 'png']));
|
||||
}
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ class Version2040Date20211027183759 extends SimpleMigrationStep {
|
|||
/** @var array */
|
||||
private $rows;
|
||||
public function __construct(IDBConnection $connection,
|
||||
IRootFolder $root,
|
||||
PdfParserService $PdfParserService) {
|
||||
IRootFolder $root,
|
||||
PdfParserService $PdfParserService) {
|
||||
$this->connection = $connection;
|
||||
$this->install = $install;
|
||||
$this->config = $config;
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ class FolderService {
|
|||
if (!empty($data['name'])) {
|
||||
$folderName[] = $data['name'];
|
||||
}
|
||||
break;
|
||||
break;
|
||||
case 'userId':
|
||||
$folderName[] = $owner->getUID();
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
script('libresign', 'libresign-settings');
|
||||
?>
|
||||
?>
|
||||
<div id="libresign-admin-settings" class="section">
|
||||
</div>
|
||||
Loading…
Add table
Reference in a new issue