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/private/preview/provider.php | 2 +- lib/private/preview/txt.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/preview') diff --git a/lib/private/preview/provider.php b/lib/private/preview/provider.php index caf71fd2219..3cce8c2ab85 100644 --- a/lib/private/preview/provider.php +++ b/lib/private/preview/provider.php @@ -26,7 +26,7 @@ abstract class Provider implements IProvider { * @param \OCP\Files\FileInfo $file * @return bool */ - public function isAvailable($file) { + public function isAvailable(\OCP\Files\FileInfo $file) { return true; } diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php index 8b414dc5726..772b56c72cc 100644 --- a/lib/private/preview/txt.php +++ b/lib/private/preview/txt.php @@ -18,7 +18,7 @@ class TXT extends Provider { /** * {@inheritDoc} */ - public function isAvailable($file) { + public function isAvailable(\OCP\Files\FileInfo $file) { return $file->getSize() > 5; } -- cgit v1.2.3