Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Sep 19, 2024
1 parent 734b65f commit 5f2eb79
Show file tree
Hide file tree
Showing 40 changed files with 156 additions and 105 deletions.
52 changes: 28 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/BackgroundJob/UserDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
protected IdentifyMethodMapper $identifyMethodMapper,
protected UserElementMapper $userElementMapper,
protected ITimeFactory $time,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
parent::__construct($time);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class Base extends CommandBase {
public function __construct(
public InstallService $installService,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Command/Developer/Reset.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Reset extends Base {
public function __construct(
private IConfig $config,
private IDBConnection $db,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct();
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function __construct(
protected IUserSession $userSession,
protected SessionService $sessionService,
private IPreview $preview,
private ValidateHelper $validateHelper
private ValidateHelper $validateHelper,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down Expand Up @@ -162,7 +162,7 @@ public function createToSign(string $uuid, string $email, string $password, ?str
#[NoAdminRequired]
#[NoCSRFRequired]
public function signatureGenerate(
string $signPassword
string $signPassword,
): DataResponse {
try {
$identify = $this->userSession->getUser()->getEMailAddress();
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(
public function generateCertificateCfssl(
array $rootCert,
string $cfsslUri = '',
string $configPath = ''
string $configPath = '',
): DataResponse {
try {
$engineHandler = $this->generateCertificate($rootCert, [
Expand Down Expand Up @@ -113,7 +113,7 @@ public function generateCertificateCfssl(
#[NoCSRFRequired]
public function generateCertificateOpenSsl(
array $rootCert,
string $configPath = ''
string $configPath = '',
): DataResponse {
try {
$engineHandler = $this->generateCertificate($rootCert, [
Expand Down
4 changes: 2 additions & 2 deletions lib/Controller/FileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function __construct(
private IPreview $preview,
private IMimeIconProvider $mimeIconProvider,
private FileService $fileService,
private ValidateHelper $validateHelper
private ValidateHelper $validateHelper,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down Expand Up @@ -258,7 +258,7 @@ public function getThumbnail(
bool $a = false,
bool $forceIcon = true,
string $mode = 'fill',
bool $mimeFallback = false
bool $mimeFallback = false,
) {
if ($nodeId === -1 || $x === 0 || $y === 0) {
return new DataResponse([], Http::STATUS_BAD_REQUEST);
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/FileElementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct(
private FileElementService $fileElementService,
private IUserSession $userSession,
private ValidateHelper $validateHelper,
private LoggerInterface $logger
private LoggerInterface $logger,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct(
private IAppConfig $appConfig,
private FileService $fileService,
private ValidateHelper $validateHelper,
private IURLGenerator $url
private IURLGenerator $url,
) {
parent::__construct(
request: $request,
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/RequestSignatureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(
protected IUserSession $userSession,
protected FileService $fileService,
protected ValidateHelper $validateHelper,
protected RequestSignatureService $requestSignatureService
protected RequestSignatureService $requestSignatureService,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/SettingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
class SettingController extends AEnvironmentAwareController {
public function __construct(
IRequest $request,
private CertificateEngineHandler $certificateEngineHandler
private CertificateEngineHandler $certificateEngineHandler,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/SignFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
protected SignFileService $signFileService,
private IdentifyMethodService $identifyMethodService,
private FileService $fileService,
protected LoggerInterface $logger
protected LoggerInterface $logger,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/SignatureElementsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(
protected SessionService $sessionService,
protected SignFileService $signFileService,
private IPreview $preview,
private ValidateHelper $validateHelper
private ValidateHelper $validateHelper,
) {
parent::__construct(Application::APP_ID, $request);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/AccountFileMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function __construct(
private IURLGenerator $urlGenerator,
private FileMapper $fileMapper,
private SignRequestMapper $signRequestMapper,
private FileTypeMapper $fileTypeMapper
private FileTypeMapper $fileTypeMapper,
) {
parent::__construct($db, 'libresign_account_file');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/FileMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FileMapper extends QBMapper {

public function __construct(
IDBConnection $db,
private IL10N $l
private IL10N $l,
) {
parent::__construct($db, 'libresign_file');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/FileTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FileTypeMapper extends QBMapper {

public function __construct(
IDBConnection $db,
private IL10N $l
private IL10N $l,
) {
parent::__construct($db, 'libresign_file_type');
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Events/ASignedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class ASignedEvent extends Event {
public function __construct(
public SignFileService $fileService,
public File $signedFile,
public bool $allSigned
public bool $allSigned,
) {
parent::__construct();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Handler/CertificateEngine/AEngineHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct(

protected function exportToPkcs12(
OpenSSLCertificate|string $certificate,
OpenSSLAsymmetricKey|OpenSSLCertificate|string $privateKey
OpenSSLAsymmetricKey|OpenSSLCertificate|string $privateKey,
): string {
if (empty($certificate) || empty($privateKey)) {
throw new EmptyCertificateException();
Expand Down
4 changes: 2 additions & 2 deletions lib/Handler/CertificateEngine/CfsslHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct(

public function generateRootCert(
string $commonName,
array $names = []
array $names = [],
): string {
$key = bin2hex(random_bytes(16));

Expand Down Expand Up @@ -253,7 +253,7 @@ private function wakeUp(): void {
}
$cmd = 'nohup ' . $binary . ' serve -address=127.0.0.1 ' .
'-ca-key ' . $configPath . DIRECTORY_SEPARATOR . 'ca-key.pem ' .
'-ca ' . $configPath . DIRECTORY_SEPARATOR . 'ca.pem '.
'-ca ' . $configPath . DIRECTORY_SEPARATOR . 'ca.pem ' .
'-config ' . $configPath . DIRECTORY_SEPARATOR . 'config_server.json > /dev/null 2>&1 & echo $!';
shell_exec($cmd);
$loops = 0;
Expand Down
Loading

0 comments on commit 5f2eb79

Please sign in to comment.