Skip to content

Commit 209276c

Browse files
committed
refactor: Port away from OC_Util::tearDownFS
Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 7063680 commit 209276c

2 files changed

Lines changed: 2 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
/**
@@ -126,7 +126,7 @@ private function getAllMountedStorages(): array {
126126
* @param $argument
127127
* @throws \Exception
128128
*/
129-
protected function run($argument) {
129+
protected function run($argument): void {
130130
if ($this->config->getSystemValueBool('files_no_background_scan', false)) {
131131
return;
132132
}

build/psalm-baseline.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,14 +1201,6 @@
12011201
<code><![CDATA[$this->fileIsEncrypted]]></code>
12021202
</TypeDoesNotContainType>
12031203
</file>
1204-
<file src="apps/files/lib/BackgroundJob/ScanFiles.php">
1205-
<DeprecatedClass>
1206-
<code><![CDATA[\OC_Util::tearDownFS()]]></code>
1207-
</DeprecatedClass>
1208-
<DeprecatedMethod>
1209-
<code><![CDATA[\OC_Util::tearDownFS()]]></code>
1210-
</DeprecatedMethod>
1211-
</file>
12121204
<file src="apps/files/lib/Command/Object/Multi/Users.php">
12131205
<DeprecatedMethod>
12141206
<code><![CDATA[getUsersForUserValue]]></code>

0 commit comments

Comments
 (0)