cosmetic
This commit is contained in:
parent
1c11d73f61
commit
bbe63c1b0b
@ -37,7 +37,9 @@ class My
|
|||||||
*/
|
*/
|
||||||
public static function name(): string
|
public static function name(): string
|
||||||
{
|
{
|
||||||
return __((string) dcCore::app()->plugins->moduleInfo(self::id(), 'name'));
|
$name = dcCore::app()->plugins->moduleInfo(self::id(), 'name');
|
||||||
|
|
||||||
|
return __(is_string($name) ? $name : self::id());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,7 +22,7 @@ use Dotclear\Helper\File\Path;
|
|||||||
*/
|
*/
|
||||||
trait TraitCleanerDir
|
trait TraitCleanerDir
|
||||||
{
|
{
|
||||||
/** @var array The excluded files */
|
/** @var array<int,string> The excluded files */
|
||||||
public const EXCLUDED = [
|
public const EXCLUDED = [
|
||||||
'.',
|
'.',
|
||||||
'..',
|
'..',
|
||||||
|
Loading…
Reference in New Issue
Block a user