summaryrefslogtreecommitdiffstats
path: root/lib/private/preview.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-24 14:13:40 +0200
committerLukas Reschke <lukas@owncloud.com>2014-10-24 14:13:40 +0200
commitb3a04840b54464457298807d6609d525d68d8953 (patch)
tree408d7c8103a788cbb7c714f64649be180f54ed4d /lib/private/preview.php
parent77b8e1543a697dbc5fad0bdbbc6bb6c271448066 (diff)
downloadnextcloud-server-b3a04840b54464457298807d6609d525d68d8953.tar.gz
nextcloud-server-b3a04840b54464457298807d6609d525d68d8953.zip
Add type hinting to functions
It's only reasonable to have proper type hinting here which might even help us to catch bugs.
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r--lib/private/preview.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php
index f8b19f11cb0..dbbe173bf80 100644
--- a/lib/private/preview.php
+++ b/lib/private/preview.php
@@ -779,7 +779,7 @@ class Preview {
* @param \OC\Files\FileInfo $file
* @return bool
*/
- public static function isAvailable($file) {
+ public static function isAvailable(\OC\Files\FileInfo $file) {
if (!\OC_Config::getValue('enable_previews', true)) {
return false;
}