Make strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
36571111c5
commit
1e7c92bd31
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue