summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-03-12 12:20:39 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2015-03-16 12:44:11 +0100
commite518eacba6837a059381e1ffa2af4a10eba0e8ae (patch)
treed5757def7edac0c06035870340e64c6e58d5047c /lib/private
parent1a1dc9b3356ee9d8604aff3158bd854fbfeb49e4 (diff)
downloadnextcloud-server-e518eacba6837a059381e1ffa2af4a10eba0e8ae.tar.gz
nextcloud-server-e518eacba6837a059381e1ffa2af4a10eba0e8ae.zip
Add more type hinting
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/preview/provider.php2
-rw-r--r--lib/private/preview/txt.php2
2 files changed, 2 insertions, 2 deletions
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;
}