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/Cron/Index.php')
-rw-r--r--lib/Cron/Index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Cron/Index.php b/lib/Cron/Index.php
index 4cf8497..f54d47b 100644
--- a/lib/Cron/Index.php
+++ b/lib/Cron/Index.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* FullTextSearch - Full text search framework for Nextcloud
@@ -25,8 +27,10 @@
*
*/
+
namespace OCA\FullTextSearch\Cron;
+
use Exception;
use OC\BackgroundJob\TimedJob;
use OCA\FullTextSearch\AppInfo\Application;
@@ -73,7 +77,7 @@ class Index extends TimedJob {
/**
- * @param $argument
+ * @param mixed $argument
*
* @throws QueryException
*/
@@ -137,7 +141,7 @@ class Index extends TimedJob {
/**
* @return bool
*/
- private function shouldWeGetAllIndex() {
+ private function shouldWeGetAllIndex(): bool {
$lastErrReset = (int)$this->configService->getAppValue(ConfigService::CRON_LAST_ERR_RESET);
if ($lastErrReset === 0) {