From 39f44e1452c67b1b3da5a85c89d3fc3856d19ab8 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 28 Mar 2018 12:24:32 +0200 Subject: Add typehints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/theming/lib/ImageManager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/theming/lib/ImageManager.php') diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index 06cc37a3d1b..d268552bf94 100644 --- a/apps/theming/lib/ImageManager.php +++ b/apps/theming/lib/ImageManager.php @@ -25,6 +25,7 @@ namespace OCA\Theming; use OCP\Files\SimpleFS\ISimpleFile; +use OCP\Files\SimpleFS\ISimpleFolder; use OCP\IConfig; use OCP\Files\IAppData; use OCP\Files\NotFoundException; @@ -132,7 +133,7 @@ class ImageManager { * @return \OCP\Files\SimpleFS\ISimpleFile * @throws NotPermittedException */ - public function getCachedImage($filename): ISimpleFile { + public function getCachedImage(string $filename): ISimpleFile { $currentFolder = $this->getCacheFolder(); return $currentFolder->getFile($filename); } @@ -146,7 +147,7 @@ class ImageManager { * @throws NotFoundException * @throws NotPermittedException */ - public function setCachedImage($filename, $data): ISimpleFile { + public function setCachedImage(string $filename, string $data): ISimpleFile { $currentFolder = $this->getCacheFolder(); if ($currentFolder->fileExists($filename)) { $file = $currentFolder->getFile($filename); -- cgit v1.2.3