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/Settings/AdminSection.php')
-rw-r--r--lib/Settings/AdminSection.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/Settings/AdminSection.php b/lib/Settings/AdminSection.php
index 9365477..ed8d487 100644
--- a/lib/Settings/AdminSection.php
+++ b/lib/Settings/AdminSection.php
@@ -1,4 +1,7 @@
<?php
+declare(strict_types=1);
+
+
/**
* FullTextSearch - Full text search framework for Nextcloud
*
@@ -21,24 +24,34 @@
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+ *
*/
+
namespace OCA\FullTextSearch\Settings;
+
use OCA\FullTextSearch\AppInfo\Application;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
+
+/**
+ * Class AdminSection
+ *
+ * @package OCA\FullTextSearch\Settings
+ */
class AdminSection implements IIconSection {
+
/** @var IL10N */
private $l10n;
/** @var IURLGenerator */
private $urlGenerator;
+
/**
* @param IL10N $l10n
* @param IURLGenerator $urlGenerator
@@ -51,28 +64,28 @@ class AdminSection implements IIconSection {
/**
* {@inheritdoc}
*/
- public function getID() {
+ public function getID(): string {
return Application::APP_NAME;
}
/**
* {@inheritdoc}
*/
- public function getName() {
+ public function getName(): string {
return $this->l10n->t('Full text search');
}
/**
* {@inheritdoc}
*/
- public function getPriority() {
+ public function getPriority(): int {
return 55;
}
/**
* {@inheritdoc}
*/
- public function getIcon() {
+ public function getIcon(): string {
return $this->urlGenerator->imagePath(Application::APP_NAME, 'fulltextsearch_black.svg');
}
}