Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/TestService.php')
-rw-r--r--lib/Service/TestService.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Service/TestService.php b/lib/Service/TestService.php
index 2954a99..f362d88 100644
--- a/lib/Service/TestService.php
+++ b/lib/Service/TestService.php
@@ -26,10 +26,10 @@
namespace OCA\FullTextSearch\Service;
-use OCA\FullTextSearch\Model\DocumentAccess;
-use OCA\FullTextSearch\Model\IndexDocument;
-use OCA\FullTextSearch\Model\IndexOptions;
use OCA\FullTextSearch\Provider\TestProvider;
+use OCP\FullTextSearch\Model\DocumentAccess;
+use OCP\FullTextSearch\Model\IIndexOptions;
+use OCP\FullTextSearch\Model\IndexDocument;
class TestService {
@@ -65,11 +65,11 @@ class TestService {
/**
- * @param IndexOptions $options
+ * @param IIndexOptions $options
*
* @return IndexDocument
*/
- public function generateIndexDocumentContentLicense(IndexOptions $options = null) {
+ public function generateIndexDocumentContentLicense(IIndexOptions $options) {
$indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_LICENSE);
$content = file_get_contents(__DIR__ . '/../../LICENSE');
@@ -92,11 +92,11 @@ class TestService {
/**
- * @param IndexOptions $options
+ * @param IIndexOptions $options
*
* @return IndexDocument
*/
- public function generateIndexDocumentSimple(IndexOptions $options) {
+ public function generateIndexDocumentSimple(IIndexOptions $options) {
$indexDocument = $this->generateIndexDocument(self::DOCUMENT_TYPE_SIMPLE);
$indexDocument->setContent('document is a simple test');