diff options
Diffstat (limited to 'lib/Service/PlatformService.php')
-rw-r--r-- | lib/Service/PlatformService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/PlatformService.php b/lib/Service/PlatformService.php index 3962681..44cd71e 100644 --- a/lib/Service/PlatformService.php +++ b/lib/Service/PlatformService.php @@ -31,9 +31,9 @@ use OC\App\AppManager; use OCA\FullTextSearch\Exceptions\PlatformDoesNotExistException; use OCA\FullTextSearch\Exceptions\PlatformIsNotCompatibleException; use OCA\FullTextSearch\Exceptions\PlatformNotSelectedException; -use OCA\FullTextSearch\IFullTextSearchPlatform; use OCA\FullTextSearch\Model\PlatformWrapper; use OCP\AppFramework\QueryException; +use OCP\FullTextSearch\IFullTextSearchPlatform; class PlatformService { @@ -161,7 +161,7 @@ class PlatformService { $platform = \OC::$server->query((string)$selected->getClass()); if (!($platform instanceof IFullTextSearchPlatform)) { throw new PlatformIsNotCompatibleException( - $selected . ' is not a compatible FullTextSearchPlatform' + $selected->getClass() . ' is not a compatible FullTextSearchPlatform' ); } @@ -177,7 +177,7 @@ class PlatformService { * @throws PlatformDoesNotExistException * @throws PlatformNotSelectedException */ - private function getSelectedPlatform() { + private function getSelectedPlatform(): PlatformWrapper { $selected = $this->configService->getAppValue(ConfigService::SEARCH_PLATFORM); if ($selected === '') { |