cosmetic type hint
This commit is contained in:
parent
9ff0b56fda
commit
478416d063
@ -35,12 +35,12 @@ class My
|
||||
'_disabled',
|
||||
];
|
||||
|
||||
public static function id()
|
||||
public static function id(): string
|
||||
{
|
||||
return basename(dirname(__DIR__));
|
||||
}
|
||||
|
||||
public static function name()
|
||||
public static function name(): string
|
||||
{
|
||||
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ class Utils
|
||||
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)) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user