mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 01:25:00 +00:00
Rector changes and immplementations of required methods
This commit is contained in:
@@ -18,7 +18,7 @@ use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||
|
||||
final class ChillWopiExtension extends Extension
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $container)
|
||||
public function load(array $configs, ContainerBuilder $container): void
|
||||
{
|
||||
$config = $this->processConfiguration(new Configuration(), $configs);
|
||||
|
||||
|
@@ -28,7 +28,7 @@ class AuthorizationManager implements \ChampsLibres\WopiBundle\Contracts\Authori
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getRelatedStoredObject(Document $document)
|
||||
public function getRelatedStoredObject(Document $document): ?\Chill\DocStoreBundle\Entity\StoredObject
|
||||
{
|
||||
return $this->storedObjectRepository->findOneBy(['uuid' => $document->getWopiDocId()]);
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ final class ChillDocumentLockManagerTest extends KernelTestCase
|
||||
self::bootKernel();
|
||||
}
|
||||
|
||||
public function testRelock()
|
||||
public function testRelock(): void
|
||||
{
|
||||
$manager = $this->makeManager(1);
|
||||
$document = new StoredObject();
|
||||
@@ -55,7 +55,7 @@ final class ChillDocumentLockManagerTest extends KernelTestCase
|
||||
$this->assertFalse($manager->hasLock($document, $request->reveal()));
|
||||
}
|
||||
|
||||
public function testSingleLock()
|
||||
public function testSingleLock(): void
|
||||
{
|
||||
$manager = $this->makeManager(1);
|
||||
$document = new StoredObject();
|
||||
|
Reference in New Issue
Block a user