cosmetic type hint
parent
9ff0b56fda
commit
478416d063
|
@ -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'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue