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 0074dd9 commit 6ee8935
Show file tree
Hide file tree
Showing 43 changed files with 178 additions and 116 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 @@ -15,7 +15,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 @@ -22,7 +22,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 @@ -63,7 +63,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 @@ -149,7 +149,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 @@ -65,7 +65,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 @@ -100,7 +100,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 @@ -64,7 +64,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 @@ -248,7 +248,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 @@ -30,7 +30,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 @@ -61,7 +61,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 @@ -38,7 +38,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 @@ -21,7 +21,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 @@ -44,7 +44,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 @@ -46,7 +46,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 @@ -28,7 +28,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 @@ -27,7 +27,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 @@ -23,7 +23,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 @@ -16,7 +16,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 @@ -72,7 +72,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 @@ -51,7 +51,7 @@ public function __construct(

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

Expand Down Expand Up @@ -237,7 +237,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 @@ -18,7 +18,7 @@ public function createConfigServer(
string $commonName,
array $names,
string $key,
string $configPath
string $configPath,
): void {
$this->putCsrServer(
$commonName,
Expand All @@ -31,7 +31,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 @@ -126,7 +126,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 @@ -14,6 +14,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 @@ -19,6 +19,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 @@ -25,7 +25,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 @@ -20,7 +20,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 6ee8935

Please sign in to comment.