From bd324753f38997d0a60af17caa905c655895a09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 19 Jan 2023 13:28:13 +0100 Subject: [PATCH] DX: fix cs --- src/Bundle/ChillWopiBundle/src/Resources/config/services.php | 3 +-- .../src/Service/Wopi/ChillDocumentLockManager.php | 2 +- .../ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillWopiBundle/src/Resources/config/services.php b/src/Bundle/ChillWopiBundle/src/Resources/config/services.php index 5f38ebb74..fc19e9c0d 100644 --- a/src/Bundle/ChillWopiBundle/src/Resources/config/services.php +++ b/src/Bundle/ChillWopiBundle/src/Resources/config/services.php @@ -49,8 +49,7 @@ return static function (ContainerConfigurator $container) { $services ->set(ChillDocumentLockManager::class) - ->decorate(DocumentLockManagerInterface::class) - ; + ->decorate(DocumentLockManagerInterface::class); $services ->set(AuthorizationManager::class); diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php index 185256238..fce25de58 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php @@ -22,7 +22,7 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface private const LOCK_DURATION = 60 * 30; /** - * Number of seconds to keep the lock after the delete lock operation + * Number of seconds to keep the lock after the delete lock operation. */ private const LOCK_GRACEFUL_DURATION_TIME = 3; diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php index 7eb738469..19b4dc9b4 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php @@ -87,8 +87,8 @@ final class ChillDocumentManager implements DocumentManagerInterface public function deleteLock(Document $document): void { - if (false ===$this->documentLockManager->deleteLock($document, $this->request)) { - throw new \RuntimeException("could not remove the lock"); + if (false === $this->documentLockManager->deleteLock($document, $this->request)) { + throw new RuntimeException('could not remove the lock'); } }