Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/Search/FileSearch/FileIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
use OCP\Files\NotPermittedException;
use OCP\Lock\LockedException;
use PDO;
use TeamTNT\TNTSearch\Contracts\EngineContract;
use TeamTNT\TNTSearch\Engines\EngineInterface;
use TeamTNT\TNTSearch\Indexer\TNTIndexer;
use TeamTNT\TNTSearch\Support\Collection;

/**
* @property PDO|null $index
*/
class FileIndexer extends TNTIndexer {
public function __construct(EngineContract $engine) {
public function __construct(EngineInterface $engine) {
parent::__construct($engine);
$this->disableOutput(true);
}

public function loadConfig(array $config): void {
parent::loadConfig($config);
$this->engine->config['storage'] = '';

Check failure on line 35 in lib/Search/FileSearch/FileIndexer.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

NoInterfaceProperties

lib/Search/FileSearch/FileIndexer.php:35:3: NoInterfaceProperties: Interfaces cannot have properties (see https://psalm.dev/028)
}

private function getDirectoryFiles(Folder $folder, bool $recursive = false): array {
Expand Down Expand Up @@ -115,6 +115,6 @@
}

public function getIndex(): ?PDO {
return $this->engine->index;

Check failure on line 118 in lib/Search/FileSearch/FileIndexer.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

NoInterfaceProperties

lib/Search/FileSearch/FileIndexer.php:118:10: NoInterfaceProperties: Interfaces cannot have properties (see https://psalm.dev/028)
}
}
2 changes: 1 addition & 1 deletion lib/Search/FileSearch/FileSearcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use OCP\Files\File;
use OCP\Files\NotFoundException;
use PDO;
use TeamTNT\TNTSearch\Support\TokenizerInterface;
use TeamTNT\TNTSearch\Tokenizer\TokenizerInterface;
use TeamTNT\TNTSearch\TNTSearch;

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Search/FileSearch/WordTokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace OCA\Collectives\Search\FileSearch;

use TeamTNT\TNTSearch\Support\ProductTokenizer;
use TeamTNT\TNTSearch\Tokenizer\ProductTokenizer;

/**
* This tokenizer is based on the ProductTokenizer but strips away non-letters and non-numbers characters.
Expand Down
Loading