PHP CS Fixer updated (3.63.1 -> v3.64.0)

This commit is contained in:
2024-09-04 14:38:56 +02:00
parent 063bc2857f
commit 313fb9ffdf
302 changed files with 391 additions and 391 deletions

View File

@@ -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'];
}

View File

@@ -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);
}

View File

@@ -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;
/**

View File

@@ -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

View File

@@ -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());
}

View File

@@ -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);
}