aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/MimeIconProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/MimeIconProvider.php')
-rw-r--r--lib/private/Preview/MimeIconProvider.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/private/Preview/MimeIconProvider.php b/lib/private/Preview/MimeIconProvider.php
index 167dd21b262..d1963fe882b 100644
--- a/lib/private/Preview/MimeIconProvider.php
+++ b/lib/private/Preview/MimeIconProvider.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -22,7 +23,7 @@ class MimeIconProvider implements IMimeIconProvider {
) {
}
- public function getMimeIconUrl(string $mime): null|string {
+ public function getMimeIconUrl(string $mime): ?string {
if (!$mime) {
return null;
}
@@ -54,8 +55,8 @@ class MimeIconProvider implements IMimeIconProvider {
return null;
}
-
- private function searchfileName(string $fileName): null|string {
+
+ private function searchfileName(string $fileName): ?string {
// If the file exists in the current enabled legacy
// custom theme, let's return it
$theme = $this->config->getSystemValue('theme', '');
@@ -65,7 +66,7 @@ class MimeIconProvider implements IMimeIconProvider {
return $this->urlGenerator->getAbsoluteURL($path);
}
}
-
+
// Previously, we used to pass this through Theming
// But it was only used to colour icons containing
// 0082c9. Since with vue we moved to inline svg icons,