diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-12 11:57:56 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-03-16 12:44:11 +0100 |
commit | 227ff0a9e3a3106e58a352fe1fb1d5c7e01d3c28 (patch) | |
tree | 88a95150d9465ba526b0ebf603958f5a1bf86f4b /lib/private/previewmanager.php | |
parent | 0b37d5aea3c1bf4a30dece3ab7dfe838f50d36f2 (diff) | |
download | nextcloud-server-227ff0a9e3a3106e58a352fe1fb1d5c7e01d3c28.tar.gz nextcloud-server-227ff0a9e3a3106e58a352fe1fb1d5c7e01d3c28.zip |
Clean up some docs
Diffstat (limited to 'lib/private/previewmanager.php')
-rw-r--r-- | lib/private/previewmanager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/previewmanager.php b/lib/private/previewmanager.php index e0179232978..fca1000c938 100644 --- a/lib/private/previewmanager.php +++ b/lib/private/previewmanager.php @@ -15,6 +15,9 @@ class PreviewManager implements IPreview { /** @var array */ protected $providers = []; + /** @var array */ + protected $defaultProviders; + /** * Constructor */ @@ -71,7 +74,7 @@ class PreviewManager implements IPreview { * @param boolean $scaleUp Scale smaller images up to the thumbnail size or not. Might look ugly * @return \OCP\Image */ - function createPreview($file, $maxX = 100, $maxY = 75, $scaleUp = false) { + public function createPreview($file, $maxX = 100, $maxY = 75, $scaleUp = false) { $preview = new \OC\Preview('', '/', $file, $maxX, $maxY, $scaleUp); return $preview->getPreview(); } @@ -82,7 +85,7 @@ class PreviewManager implements IPreview { * @param string $mimeType * @return boolean */ - function isMimeSupported($mimeType = '*') { + public function isMimeSupported($mimeType = '*') { if (!\OC::$server->getConfig()->getSystemValue('enable_previews', true)) { return false; } @@ -102,7 +105,7 @@ class PreviewManager implements IPreview { * @param \OCP\Files\FileInfo $file * @return bool */ - function isAvailable($file) { + public function isAvailable(\OCP\Files\FileInfo $file) { if (!\OC::$server->getConfig()->getSystemValue('enable_previews', true)) { return false; } @@ -130,9 +133,6 @@ class PreviewManager implements IPreview { return false; } - /** @var array */ - protected $defaultProviders; - /** * List of enabled default providers * |