mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
6caf605fe2
commit
e01b06fb85
80 changed files with 173 additions and 218 deletions
|
@ -92,7 +92,7 @@ class LabelProfile extends AttachmentContainingDBElement
|
|||
return $this->comment;
|
||||
}
|
||||
|
||||
public function setComment(string $new_comment): string
|
||||
public function setComment(string $new_comment): self
|
||||
{
|
||||
$this->comment = $new_comment;
|
||||
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,7 +41,7 @@ trait ParametersTrait
|
|||
*
|
||||
* @psalm-return Collection<int, PartParameter>
|
||||
*/
|
||||
public function getParameters(): \Doctrine\Common\Collections\Collection
|
||||
public function getParameters(): Collection
|
||||
{
|
||||
return $this->parameters;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue