diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-07-28 14:34:58 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-07-28 14:34:58 +0300 |
commit | 5f7fcbb25d6bc498db58baa15e1cece66e47fdc0 (patch) | |
tree | 339007bb949a767b9784a4404d70fe76a1aa731d /lib | |
parent | db557cd93f3bdbe15599240b4e5d2eb74cae40f2 (diff) |
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Check.php | 2 | ||||
-rw-r--r-- | lib/Command/Configure.php | 3 | ||||
-rw-r--r-- | lib/Controller/TemplatesController.php | 2 | ||||
-rw-r--r-- | lib/Model/Runner.php | 1 | ||||
-rw-r--r-- | lib/Model/SearchRequest.php | 60 | ||||
-rw-r--r-- | lib/Service/TestService.php | 5 |
6 files changed, 32 insertions, 41 deletions
diff --git a/lib/Command/Check.php b/lib/Command/Check.php index 66d3be1..e016ed9 100644 --- a/lib/Command/Check.php +++ b/lib/Command/Check.php @@ -111,6 +111,8 @@ class Check extends ExtendedBase { private function displayAsJson() { + $resultPlatform = []; + try { $platforms = $this->platformService->getPlatforms(); $ak = array_keys($platforms); diff --git a/lib/Command/Configure.php b/lib/Command/Configure.php index 8deedbe..7bc71b7 100644 --- a/lib/Command/Configure.php +++ b/lib/Command/Configure.php @@ -30,11 +30,8 @@ use Exception; use OCA\FullTextSearch\Model\ExtendedBase; use OCA\FullTextSearch\Service\ConfigService; use OCA\FullTextSearch\Service\MiscService; -use OCA\FullTextSearch\Service\PlatformService; -use OCA\FullTextSearch\Service\ProviderService; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; diff --git a/lib/Controller/TemplatesController.php b/lib/Controller/TemplatesController.php index eff6cc1..9cec6d8 100644 --- a/lib/Controller/TemplatesController.php +++ b/lib/Controller/TemplatesController.php @@ -30,7 +30,6 @@ use Exception; use OC\AppFramework\Http; use OCA\FullTextSearch\AppInfo\Application; use OCA\FullTextSearch\Exceptions\ProviderDoesNotExistException; -use OCA\FullTextSearch\IFullTextSearchProvider; use OCA\FullTextSearch\Service\ConfigService; use OCA\FullTextSearch\Service\MiscService; use OCA\FullTextSearch\Service\ProviderService; @@ -39,7 +38,6 @@ use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\Http\TemplateResponse; use OCP\IConfig; use OCP\IRequest; -use OCP\Util; class TemplatesController extends Controller { diff --git a/lib/Model/Runner.php b/lib/Model/Runner.php index eeccf37..57a9a3d 100644 --- a/lib/Model/Runner.php +++ b/lib/Model/Runner.php @@ -27,7 +27,6 @@ namespace OCA\FullTextSearch\Model; -use Exception; use OCA\FullTextSearch\Exceptions\InterruptException; use OCA\FullTextSearch\Exceptions\RunnerAlreadyUpException; use OCA\FullTextSearch\Exceptions\TickDoesNotExistException; diff --git a/lib/Model/SearchRequest.php b/lib/Model/SearchRequest.php index 5afb2db..158524e 100644 --- a/lib/Model/SearchRequest.php +++ b/lib/Model/SearchRequest.php @@ -361,7 +361,7 @@ class SearchRequest implements \JsonSerializable { /** - * @param array $query + * @param string $field * * @return $this */ @@ -378,35 +378,35 @@ class SearchRequest implements \JsonSerializable { return $this->wildcardFields; } - - /** - * @param array $query - * - * @return $this - */ - public function addWildcardQuery($field) { - $this->addWildcardQueries([$query]); - - return $this; - } - - /** - * @param array $query - * - * @return $this - */ - public function addWildcardQueries($query) { - array_push($this->wildcardQueries, $query); - - return $this; - } - - /** - * @return array - */ - public function getWildcardQueries() { - return $this->wildcardQueries; - } +// +// /** +// * @param array $query +// * +// * @return $this +// */ +// public function addWildcardQuery($query) { +// $this->addWildcardQueries([$query]); +// +// return $this; +// } +// +// /** +// * @param array $query +// * +// * @return $this +// */ +// public function addWildcardQueries($query) { +// array_push($this->wildcardQueries, $query); +// +// return $this; +// } +// +// /** +// * @return array +// */ +// public function getWildcardQueries() { +// return $this->wildcardQueries; +// } /** diff --git a/lib/Service/TestService.php b/lib/Service/TestService.php index b11075d..4900c69 100644 --- a/lib/Service/TestService.php +++ b/lib/Service/TestService.php @@ -26,15 +26,10 @@ namespace OCA\FullTextSearch\Service; -use OCA\FullTextSearch\AppInfo\Application; -use OCA\FullTextSearch\Exceptions\ProviderOptionsDoesNotExistException; use OCA\FullTextSearch\Model\DocumentAccess; use OCA\FullTextSearch\Model\IndexDocument; use OCA\FullTextSearch\Model\IndexOptions; use OCA\FullTextSearch\Provider\TestProvider; -use OCP\IConfig; -use OCP\PreConditionNotMetException; -use OCP\Util; class TestService { |