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/Command/Check.php')
-rw-r--r--lib/Command/Check.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/Command/Check.php b/lib/Command/Check.php
index 8b3aca1..8d7af2f 100644
--- a/lib/Command/Check.php
+++ b/lib/Command/Check.php
@@ -1,4 +1,7 @@
<?php
+declare(strict_types=1);
+
+
/**
* FullTextSearch - Full text search framework for Nextcloud
*
@@ -24,10 +27,12 @@
*
*/
+
namespace OCA\FullTextSearch\Command;
+
use Exception;
-use OCA\FullTextSearch\Model\ExtendedBase;
+use OC\Core\Command\Base;
use OCA\FullTextSearch\Service\ConfigService;
use OCA\FullTextSearch\Service\MiscService;
use OCA\FullTextSearch\Service\PlatformService;
@@ -37,7 +42,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
-class Check extends ExtendedBase {
+class Check extends Base {
/** @var ConfigService */
private $configService;
@@ -88,7 +93,6 @@ class Check extends ExtendedBase {
* @param InputInterface $input
* @param OutputInterface $output
*
- * @return int|null|void
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output) {
@@ -109,7 +113,10 @@ class Check extends ExtendedBase {
}
- private function displayAsJson() {
+ /**
+ * @return array
+ */
+ private function displayAsJson(): array {
$resultPlatform = [];
@@ -210,5 +217,3 @@ class Check extends ExtendedBase {
}
-
-