mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 03:23:48 +00:00
new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
This commit is contained in:
@@ -13,6 +13,4 @@ namespace Chill\WopiBundle;
|
||||
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
final class ChillWopiBundle extends Bundle
|
||||
{
|
||||
}
|
||||
final class ChillWopiBundle extends Bundle {}
|
||||
|
@@ -38,9 +38,7 @@ use Twig\Environment;
|
||||
*/
|
||||
final readonly class Editor
|
||||
{
|
||||
public function __construct(private ConfigurationInterface $wopiConfiguration, private DiscoveryInterface $wopiDiscovery, private DocumentManagerInterface $documentManager, private \Twig\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 \Twig\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
|
||||
{
|
||||
|
@@ -22,9 +22,7 @@ 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,
|
||||
|
@@ -19,9 +19,7 @@ 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
|
||||
{
|
||||
|
@@ -29,8 +29,7 @@ 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
|
||||
{
|
||||
|
@@ -17,9 +17,7 @@ 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,
|
||||
|
@@ -17,9 +17,7 @@ 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
|
||||
{
|
||||
|
Reference in New Issue
Block a user