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