diff options
author | Thomas Citharel <tcit@tcit.fr> | 2023-10-19 16:27:07 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2024-03-14 17:24:36 +0100 |
commit | ffeb797eccfc90e5cf53d5737d58bfb1346f8718 (patch) | |
tree | 45365f709a97182e4cdaebe9f530e23e4ff89cc4 /lib/public | |
parent | f316edb9ff448077fa8494dbbb2c6fdacd158bed (diff) | |
download | nextcloud-server-ffeb797eccfc90e5cf53d5737d58bfb1346f8718.tar.gz nextcloud-server-ffeb797eccfc90e5cf53d5737d58bfb1346f8718.zip |
refactor(mimeloader): modernize MimeTypeLoader
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/IMimeTypeLoader.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/Files/IMimeTypeLoader.php b/lib/public/Files/IMimeTypeLoader.php index d4f2767bc17..39a5db85c1a 100644 --- a/lib/public/Files/IMimeTypeLoader.php +++ b/lib/public/Files/IMimeTypeLoader.php @@ -35,7 +35,7 @@ interface IMimeTypeLoader { * @return string|null * @since 8.2.0 */ - public function getMimetypeById($id); + public function getMimetypeById(int $id): ?string; /** * Get a mimetype ID, adding the mimetype to the DB if it does not exist @@ -44,7 +44,7 @@ interface IMimeTypeLoader { * @return int * @since 8.2.0 */ - public function getId($mimetype); + public function getId(string $mimetype): int; /** * Test if a mimetype exists in the database @@ -53,12 +53,12 @@ interface IMimeTypeLoader { * @return bool * @since 8.2.0 */ - public function exists($mimetype); + public function exists(string $mimetype): bool; /** * Clear all loaded mimetypes, allow for re-loading * * @since 8.2.0 */ - public function reset(); + public function reset(): void; } |