[MODULES] Use snake_case for module config keys

This commit is contained in:
Hugo Sales 2021-08-22 20:46:58 +01:00
parent 033c4db914
commit 626f50080b
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -20,6 +20,7 @@
namespace App\Core\Modules;
use App\Util\Common;
use App\Util\Formatting;
/**
* Base class for all GNU social modules (plugins and components)
@ -41,9 +42,9 @@ abstract class Module
}
}
public static function name(): string
public function name(): string
{
return mb_strtolower(explode('\\', static::class)[2]);
return Formatting::camelCaseToSnakeCase(explode('\\', static::class)[2]);
}
/**