Clean up some docs

This commit is contained in:
Joas Schilling 2015-03-12 11:57:56 +01:00
parent 0b37d5aea3
commit 227ff0a9e3
2 changed files with 9 additions and 9 deletions

View File

@ -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
*

View File

@ -69,7 +69,7 @@ interface 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);
/**
@ -77,7 +77,7 @@ interface IPreview {
* @param string $mimeType
* @return boolean
*/
function isMimeSupported($mimeType = '*');
public function isMimeSupported($mimeType = '*');
/**
* Check if a preview can be generated for a file
@ -85,5 +85,5 @@ interface IPreview {
* @param \OCP\Files\FileInfo $file
* @return bool
*/
function isAvailable($file);
public function isAvailable(\OCP\Files\FileInfo $file);
}