From e518eacba6837a059381e1ffa2af4a10eba0e8ae Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 12 Mar 2015 12:20:39 +0100 Subject: Add more type hinting --- lib/public/ipreview.php | 2 +- lib/public/preview/iprovider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/public') diff --git a/lib/public/ipreview.php b/lib/public/ipreview.php index e1562bce58f..c1bc4cb680c 100644 --- a/lib/public/ipreview.php +++ b/lib/public/ipreview.php @@ -41,7 +41,7 @@ interface IPreview { * In order to improve lazy loading a closure can be registered which will be * called in case preview providers are actually requested * - * $callable has to return an instance of \OC\Preview\Provider + * $callable has to return an instance of \OCP\Preview\IProvider * * @param string $mimeTypeRegex Regex with the mime types that are supported by this provider * @param \Closure $callable diff --git a/lib/public/preview/iprovider.php b/lib/public/preview/iprovider.php index 96bde3d5a26..74e5cca05d9 100644 --- a/lib/public/preview/iprovider.php +++ b/lib/public/preview/iprovider.php @@ -23,7 +23,7 @@ interface IProvider { * @param \OCP\Files\FileInfo $file * @return bool */ - public function isAvailable($file); + public function isAvailable(\OCP\Files\FileInfo $file); /** * get thumbnail for file at path $path -- cgit v1.2.3