mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 08:48:26 +01:00
Fixed some inspection issues.
This commit is contained in:
@@ -93,11 +93,7 @@ class SecurityEventLogEntry extends AbstractLogEntry
|
||||
public function getEventType(): string
|
||||
{
|
||||
$key = $this->extra['e'];
|
||||
if (isset(static::SECURITY_TYPE_MAPPING[$key])) {
|
||||
return static::SECURITY_TYPE_MAPPING[$key];
|
||||
}
|
||||
|
||||
return 'unkown';
|
||||
return static::SECURITY_TYPE_MAPPING[$key] ?? 'unkown';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user