Make strict

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-02-04 11:15:33 +01:00
parent 36571111c5
commit 1e7c92bd31
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 8 additions and 3 deletions

View File

@ -25,6 +25,7 @@ declare(strict_types=1);
namespace OCA\Registration\Settings;
use OCA\Registration\AppInfo\Application;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IGroupManager;
@ -85,7 +86,7 @@ class RegistrationSettings implements ISettings {
}
public function getSection(): string {
return 'registration';
return Application::APP_ID;
}
public function getPriority(): int {

View File

@ -1,4 +1,7 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2021 Jonas Rittershofer <jotoeri@users.noreply.github.com>
*
@ -23,6 +26,7 @@
namespace OCA\Registration\Settings;
use OCA\Registration\AppInfo\Application;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
@ -44,7 +48,7 @@ class RegistrationSettingsSection implements IIconSection {
* @return string
*/
public function getID(): string {
return 'registration';
return Application::APP_ID;
}
/**
@ -68,6 +72,6 @@ class RegistrationSettingsSection implements IIconSection {
* @return string
*/
public function getIcon(): string {
return $this->urlGenerator->imagePath('registration', 'app-dark.svg');
return $this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg');
}
}