php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -13,4 +13,6 @@ namespace Chill\WopiBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class ChillWopiBundle extends Bundle {}
final class ChillWopiBundle extends Bundle
{
}

View File

@@ -37,7 +37,9 @@ use Twig\Environment;
*/
final readonly class Editor
{
public function __construct(private ConfigurationInterface $wopiConfiguration, private DiscoveryInterface $wopiDiscovery, private DocumentManagerInterface $documentManager, private Environment $engine, private JWTTokenManagerInterface $JWTTokenManager, private NormalizerInterface $normalizer, private ResponderInterface $responder, private Security $security, private Psr17Interface $psr17, private RouterInterface $router) {}
public function __construct(private ConfigurationInterface $wopiConfiguration, private DiscoveryInterface $wopiDiscovery, private DocumentManagerInterface $documentManager, private Environment $engine, private JWTTokenManagerInterface $JWTTokenManager, private NormalizerInterface $normalizer, private ResponderInterface $responder, private Security $security, private Psr17Interface $psr17, private RouterInterface $router)
{
}
public function __invoke(string $fileId, Request $request): Response
{

View File

@@ -19,5 +19,5 @@ return static function (RoutingConfigurator $routes) {
$routes
->add('chill_wopi_object_convert', '/convert/{uuid}')
->controller(\Chill\WopiBundle\Controller\Convert::class);
->controller(Chill\WopiBundle\Controller\Convert::class);
};

View File

@@ -22,7 +22,9 @@ use Twig\Environment;
final readonly class Responder implements ResponderInterface
{
public function __construct(private Environment $twig, private UrlGeneratorInterface $urlGenerator, private SerializerInterface $serializer) {}
public function __construct(private Environment $twig, private UrlGeneratorInterface $urlGenerator, private SerializerInterface $serializer)
{
}
public function file(
$file,

View File

@@ -19,7 +19,9 @@ use Symfony\Component\Security\Core\Security;
class AuthorizationManager implements \ChampsLibres\WopiBundle\Contracts\AuthorizationManagerInterface
{
public function __construct(private readonly JWTTokenManagerInterface $tokenManager, private readonly Security $security) {}
public function __construct(private readonly JWTTokenManagerInterface $tokenManager, private readonly Security $security)
{
}
public function isRestrictedWebViewOnly(string $accessToken, Document $document, RequestInterface $request): bool
{

View File

@@ -28,7 +28,8 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface
public function __construct(
private readonly ChillRedis $redis,
private readonly int $ttlAfterDeleteSeconds = self::LOCK_GRACEFUL_DURATION_TIME
) {}
) {
}
public function deleteLock(Document $document, RequestInterface $request): bool
{

View File

@@ -17,7 +17,9 @@ use Psr\Http\Message\ResponseInterface;
final readonly class ChillWopi implements WopiInterface
{
public function __construct(private WopiInterface $wopi) {}
public function __construct(private WopiInterface $wopi)
{
}
public function checkFileInfo(
string $fileId,

View File

@@ -17,7 +17,9 @@ use Symfony\Component\Security\Core\Security;
class UserManager implements \ChampsLibres\WopiBundle\Contracts\UserManagerInterface
{
public function __construct(private readonly Security $security) {}
public function __construct(private readonly Security $security)
{
}
public function getUserFriendlyName(string $accessToken, string $fileId, RequestInterface $request): ?string
{