Skip to content

Commit a77cc56

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

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
/**
@@ -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
}

build/psalm-baseline.xml

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

0 commit comments

Comments
 (0)