mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
update cs after php-cs-fixer upgrade
This commit is contained in:
@@ -46,7 +46,7 @@ class Convert
|
||||
private readonly Security $security,
|
||||
private readonly StoredObjectManagerInterface $storedObjectManager,
|
||||
private readonly LoggerInterface $logger,
|
||||
ParameterBagInterface $parameters
|
||||
ParameterBagInterface $parameters,
|
||||
) {
|
||||
$this->collaboraDomain = $parameters->get('wopi')['server'];
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ final readonly class Responder implements ResponderInterface
|
||||
public function file(
|
||||
$file,
|
||||
?string $filename = null,
|
||||
string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT
|
||||
string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT,
|
||||
): BinaryFileResponse {
|
||||
$response = new BinaryFileResponse($file);
|
||||
|
||||
@@ -41,7 +41,7 @@ final readonly class Responder implements ResponderInterface
|
||||
$data,
|
||||
int $status = 200,
|
||||
array $headers = [],
|
||||
array $context = []
|
||||
array $context = [],
|
||||
): JsonResponse {
|
||||
return new JsonResponse(
|
||||
$this
|
||||
@@ -66,7 +66,7 @@ final readonly class Responder implements ResponderInterface
|
||||
string $route,
|
||||
array $parameters = [],
|
||||
int $status = 302,
|
||||
array $headers = []
|
||||
array $headers = [],
|
||||
): RedirectResponse {
|
||||
return $this->redirect($this->urlGenerator->generate($route, $parameters), $status, $headers);
|
||||
}
|
||||
|
@@ -28,7 +28,7 @@ interface ResponderInterface
|
||||
public function file(
|
||||
$file,
|
||||
?string $filename = null,
|
||||
string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT
|
||||
string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT,
|
||||
): BinaryFileResponse;
|
||||
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ interface ResponderInterface
|
||||
mixed $data,
|
||||
int $status = 200,
|
||||
array $headers = [],
|
||||
array $context = []
|
||||
array $context = [],
|
||||
): JsonResponse;
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ interface ResponderInterface
|
||||
string $route,
|
||||
array $parameters = [],
|
||||
int $status = 302,
|
||||
array $headers = []
|
||||
array $headers = [],
|
||||
): RedirectResponse;
|
||||
|
||||
/**
|
||||
|
@@ -27,7 +27,7 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface
|
||||
|
||||
public function __construct(
|
||||
private readonly ChillRedis $redis,
|
||||
private readonly int $ttlAfterDeleteSeconds = self::LOCK_GRACEFUL_DURATION_TIME
|
||||
private readonly int $ttlAfterDeleteSeconds = self::LOCK_GRACEFUL_DURATION_TIME,
|
||||
) {}
|
||||
|
||||
public function deleteLock(Document $document, RequestInterface $request): bool
|
||||
|
@@ -38,7 +38,7 @@ final readonly class ChillDocumentManager implements DocumentManagerInterface
|
||||
private Psr17Interface $psr17,
|
||||
RequestStack $requestStack,
|
||||
private StoredObjectManagerInterface $storedObjectManager,
|
||||
private StoredObjectRepository $storedObjectRepository
|
||||
private StoredObjectRepository $storedObjectRepository,
|
||||
) {
|
||||
$this->request = $httpMessageFactory->createRequest($requestStack->getCurrentRequest());
|
||||
}
|
||||
|
@@ -22,7 +22,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
public function checkFileInfo(
|
||||
string $fileId,
|
||||
?string $accessToken,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->checkFileInfo($fileId, $accessToken, $request, [
|
||||
'SupportsRename' => false,
|
||||
@@ -37,7 +37,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
public function enumerateAncestors(
|
||||
string $fileId,
|
||||
?string $accessToken,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->enumerateAncestors($fileId, $accessToken, $request);
|
||||
}
|
||||
@@ -55,7 +55,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
public function getShareUrl(
|
||||
string $fileId,
|
||||
?string $accessToken,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->getShareUrl($fileId, $accessToken, $request);
|
||||
}
|
||||
@@ -64,7 +64,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
string $fileId,
|
||||
?string $accessToken,
|
||||
string $xWopiLock,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->lock($fileId, $accessToken, $xWopiLock, $request);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
?string $accessToken,
|
||||
string $xWopiLock,
|
||||
string $xWopiEditors,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->putFile($fileId, $accessToken, $xWopiLock, $xWopiEditors, $request);
|
||||
}
|
||||
@@ -93,7 +93,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
string $fileId,
|
||||
?string $accessToken,
|
||||
string $xWopiLock,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->refreshLock($fileId, $accessToken, $xWopiLock, $request);
|
||||
}
|
||||
@@ -103,7 +103,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
?string $accessToken,
|
||||
string $xWopiLock,
|
||||
string $xWopiRequestedName,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->renameFile($fileId, $accessToken, $xWopiLock, $xWopiRequestedName, $request);
|
||||
}
|
||||
@@ -112,7 +112,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
string $fileId,
|
||||
?string $accessToken,
|
||||
string $xWopiLock,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->unlock($fileId, $accessToken, $xWopiLock, $request);
|
||||
}
|
||||
@@ -122,7 +122,7 @@ final readonly class ChillWopi implements WopiInterface
|
||||
?string $accessToken,
|
||||
string $xWopiLock,
|
||||
string $xWopiOldLock,
|
||||
RequestInterface $request
|
||||
RequestInterface $request,
|
||||
): ResponseInterface {
|
||||
return $this->wopi->unlockAndRelock($fileId, $accessToken, $xWopiLock, $xWopiOldLock, $request);
|
||||
}
|
||||
|
Reference in New Issue
Block a user