chore: code cleanup

This commit is contained in:
Björn Fromme
2025-08-21 14:20:43 +02:00
parent c4e28818e0
commit e36009008c
273 changed files with 547 additions and 531 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
$this->uuid = Uuid::v4();
}
public static function fromUploadDto(UploadDto $uploadDto, User $owner, string $type, Upload $instance = null): static
public static function fromUploadDto(UploadDto $uploadDto, User $owner, string $type, ?Upload $instance = null): static
{
$instance = $instance ?? new static();
$instance
@@ -127,7 +127,7 @@ class Upload implements BlameableEntityInterface, TimestampableEntityInterface
public function getTypeLabel(): string
{
return match($this->getType()) {
return match ($this->getType()) {
self::TYPE_PHOTO => 'Foto',
self::TYPE_CERTIFICATE => 'Lizenz',
self::TYPE_CONTRACT => 'Honorarvertrag',