chore: code cleanup
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user