DX: fix cs

This commit is contained in:
Julien Fastré 2023-01-19 13:28:13 +01:00
parent 7915aae86f
commit bd324753f3
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
3 changed files with 4 additions and 5 deletions

View File

@ -49,8 +49,7 @@ return static function (ContainerConfigurator $container) {
$services
->set(ChillDocumentLockManager::class)
->decorate(DocumentLockManagerInterface::class)
;
->decorate(DocumentLockManagerInterface::class);
$services
->set(AuthorizationManager::class);

View File

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

View File

@ -88,7 +88,7 @@ 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");
throw new RuntimeException('could not remove the lock');
}
}