Skip to content

Commit

Permalink
fix: Remove comments
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <[email protected]>
  • Loading branch information
elzody committed Jul 16, 2024
1 parent fe503ff commit 5dc7bf1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/public/Files/Template/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ public function __construct($index, $content, $type, $id = null, $tag = null) {
$this->index = $index;
$this->id = $id;
$this->tag = $tag;

// TODO: Sanitize content
$this->content = $content;

if ($type instanceof FieldType) {
$this->type = $type;
} else {
// TODO: Throw a proper enum with descriptive message
$this->type = FieldType::tryFrom($type) ?? throw new InvalidFieldTypeException();
}
}
Expand Down

0 comments on commit 5dc7bf1

Please sign in to comment.