1
0
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:
Dan Brown
2020-12-08 23:46:38 +00:00
parent 6c09334ba0
commit 00308ad4ab
10 changed files with 146 additions and 157 deletions

View File

@ -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);
}
/**