Skip to content

Commit 125fb28

Browse files
committed
refactor: Port away from OC_Util::tearDownFS
Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 0aafc14 commit 125fb28

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

apps/files/lib/BackgroundJob/ScanFiles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function runScanner(string $user): void {
5656
} catch (\Exception $e) {
5757
$this->logger->error($e->getMessage(), ['exception' => $e, 'app' => 'files']);
5858
}
59-
\OC_Util::tearDownFS();
59+
$this->setupManager->tearDown();
6060
}
6161

6262
/**
@@ -127,7 +127,7 @@ private function getAllMountedStorages(): array {
127127
* @throws \Exception
128128
*/
129129
#[\Override]
130-
protected function run($argument) {
130+
protected function run($argument): void {
131131
if ($this->config->getSystemValueBool('files_no_background_scan', false)) {
132132
return;
133133
}

apps/files/lib/Collaboration/Resources/Listener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use OCP\Share\Events\ShareCreatedEvent;
1616
use OCP\Share\Events\ShareDeletedEvent;
1717
use OCP\Share\Events\ShareDeletedFromSelfEvent;
18+
use Override;
1819

1920
/**
2021
* @template-implements IEventListener<ShareCreatedEvent|ShareDeletedEvent|ShareDeletedFromSelfEvent>
@@ -26,6 +27,7 @@ public function __construct(
2627
) {
2728
}
2829

30+
#[Override]
2931
public function handle(Event $event): void {
3032
if ($event instanceof ShareDeletedFromSelfEvent || $event instanceof ShareDeletedEvent || $event instanceof ShareCreatedEvent) {
3133
$this->shareModification();

build/psalm-baseline.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,14 +1399,6 @@
13991399
<code><![CDATA[$this->fileIsEncrypted]]></code>
14001400
</TypeDoesNotContainType>
14011401
</file>
1402-
<file src="apps/files/lib/BackgroundJob/ScanFiles.php">
1403-
<DeprecatedClass>
1404-
<code><![CDATA[\OC_Util::tearDownFS()]]></code>
1405-
</DeprecatedClass>
1406-
<DeprecatedMethod>
1407-
<code><![CDATA[\OC_Util::tearDownFS()]]></code>
1408-
</DeprecatedMethod>
1409-
</file>
14101402
<file src="apps/files/lib/Command/Object/Multi/Users.php">
14111403
<DeprecatedMethod>
14121404
<code><![CDATA[getUsersForUserValue]]></code>

0 commit comments

Comments
 (0)