summaryrefslogtreecommitdiffstats
path: root/lib/private/preview/txt.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/preview/txt.php')
-rw-r--r--lib/private/preview/txt.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php
index 7f01b980c0e..ff612e2509a 100644
--- a/lib/private/preview/txt.php
+++ b/lib/private/preview/txt.php
@@ -8,28 +8,22 @@
namespace OC\Preview;
class TXT extends Provider {
-
+ /**
+ * {@inheritDoc}
+ */
public function getMimeType() {
return '/text\/plain/';
}
/**
- * Check if a preview can be generated for $path
- *
- * @param \OC\Files\FileInfo $file
- * @return bool
+ * {@inheritDoc}
*/
public function isAvailable($file) {
return $file->getSize() > 5;
}
/**
- * @param string $path
- * @param int $maxX
- * @param int $maxY
- * @param boolean $scalingup
- * @param \OC\Files\View $fileview
- * @return bool|\OC_Image
+ * {@inheritDoc}
*/
public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
@@ -80,14 +74,9 @@ class TXT extends Provider {
}
}
-\OC\Preview::registerProvider('OC\Preview\TXT');
-
class MarkDown extends TXT {
-
public function getMimeType() {
return '/text\/(x-)?markdown/';
}
}
-
-\OC\Preview::registerProvider('OC\Preview\MarkDown');