cosmetic type hint

2.28
Jean-Christian Paul Denis 2023-03-17 00:00:34 +01:00
parent 9ff0b56fda
commit 478416d063
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
2 changed files with 3 additions and 3 deletions

View File

@ -35,12 +35,12 @@ class My
'_disabled', '_disabled',
]; ];
public static function id() public static function id(): string
{ {
return basename(dirname(__DIR__)); return basename(dirname(__DIR__));
} }
public static function name() public static function name(): string
{ {
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name')); return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
} }

View File

@ -81,7 +81,7 @@ class Utils
return !(empty($path) || empty($file) || !is_writable(dirname($path . '/' . $file))); return !(empty($path) || empty($file) || !is_writable(dirname($path . '/' . $file)));
} }
public static function getRepositoryDir($dir) public static function getRepositoryDir(?string $dir): string
{ {
if (empty($dir)) { if (empty($dir)) {
try { try {