Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed Sep 19, 2024
1 parent ca9cf8b commit 797abda
Show file tree
Hide file tree
Showing 41 changed files with 145 additions and 95 deletions.
37 changes: 20 additions & 17 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 @@ -79,7 +79,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 @@ -165,7 +165,7 @@ public function createToSign(string $uuid, string $email, string $password, ?str
#[NoCSRFRequired]
#[ApiRoute(verb: 'POST', url: '/api/{apiVersion}/account/signature', requirements: ['apiVersion' => '(v1)'])]
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 @@ -81,7 +81,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 @@ -116,7 +116,7 @@ public function generateCertificateCfssl(
#[ApiRoute(verb: 'POST', url: '/api/{apiVersion}/admin/certificate/openssl', requirements: ['apiVersion' => '(v1)'])]
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 @@ -80,7 +80,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 @@ -264,7 +264,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 @@ -46,7 +46,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 @@ -77,7 +77,7 @@ public function __construct(
private FileService $fileService,
private ValidateHelper $validateHelper,
private IEventDispatcher $eventDispatcher,
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 @@ -54,7 +54,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 @@ -37,7 +37,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 @@ -60,7 +60,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 @@ -62,7 +62,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
4 changes: 2 additions & 2 deletions lib/Handler/CfsslServerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function createConfigServer(
string $commonName,
array $names,
string $key,
string $configPath
string $configPath,
): void {
$this->putCsrServer(
$commonName,
Expand All @@ -47,7 +47,7 @@ public function createConfigServer(
private function putCsrServer(
string $commonName,
array $names,
string $configPath
string $configPath,
): void {
$filename = $configPath . DIRECTORY_SEPARATOR . self::CSR_FILE;
$content = [
Expand Down
2 changes: 1 addition & 1 deletion lib/Handler/FooterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function getTemplateVars(): array {

$this->templateVars['validationSite'] = $this->appConfig->getAppValue('validation_site');
if ($this->templateVars['validationSite']) {
$this->templateVars['validationSite'] = rtrim($this->templateVars['validationSite'], '/').'/'.$this->fileEntity->getUuid();
$this->templateVars['validationSite'] = rtrim($this->templateVars['validationSite'], '/') . '/' . $this->fileEntity->getUuid();
} else {
$this->templateVars['validationSite'] = $this->urlGenerator->linkToRouteAbsolute('libresign.page.validationFileWithShortUrl', [
'uuid' => $this->fileEntity->getUuid(),
Expand Down
2 changes: 1 addition & 1 deletion lib/Handler/ISignHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ interface ISignHandler {
public function sign(
File $inputFile,
File $certificate,
string $password
string $password,
): string;
}
2 changes: 1 addition & 1 deletion lib/Handler/SignEngineInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ interface SignEngineInterface {
public function sign(
File $inputFile,
File $certificate,
string $password
string $password,
): string;
}
2 changes: 1 addition & 1 deletion lib/Listener/BeforeNodeDeletedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class BeforeNodeDeletedListener implements IEventListener {
public function __construct(
private FileMapper $fileMapper,
private RequestSignatureService $requestSignatureService,
private IDBConnection $db
private IDBConnection $db,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Migration/Version8000Date20230410230327.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Version8000Date20230410230327 extends SimpleMigrationStep {

public function __construct(
protected IAppConfig $appConfig,
protected IAppDataFactory $appDataFactory
protected IAppDataFactory $appDataFactory,
) {
$this->appData = $appDataFactory->get('libresign');
}
Expand Down
Loading

0 comments on commit 797abda

Please sign in to comment.