new cs rule: single_line_empty_body

Rule is added to the last version of php-cs-fixer
This commit is contained in:
2023-09-12 15:58:59 +02:00
parent b9231a91a3
commit d2323e91ca
606 changed files with 639 additions and 1804 deletions

View File

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

View File

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

View File

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

View 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
{

View File

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

View File

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

View File

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