mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Cleaned up some user/image areas of the app
Further cleanup of docblocks and standardisation of repos.
This commit is contained in:
@ -205,12 +205,12 @@ abstract class Entity extends Ownable
|
||||
}
|
||||
|
||||
/**
|
||||
* Get entity type.
|
||||
* @return mixed
|
||||
* Get the entity type as a simple lowercase word.
|
||||
*/
|
||||
public static function getType()
|
||||
public static function getType(): string
|
||||
{
|
||||
return strtolower(static::getClassName());
|
||||
$className = array_slice(explode('\\', static::class), -1, 1)[0];
|
||||
return strtolower($className);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user