]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Remove comments
authorElizabeth Danzberger <lizzy7128@tutanota.de>
Fri, 12 Jul 2024 18:40:32 +0000 (14:40 -0400)
committerJulius Härtl <jus@bitgrid.net>
Thu, 25 Jul 2024 09:11:39 +0000 (11:11 +0200)
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
lib/public/Files/Template/Field.php

index 86f6a3e72fa182ae8eaded697ed2079a18f04702..628fef20a0adaa7d3d599a347874cfb2c30103a8 100644 (file)
@@ -20,14 +20,11 @@ class Field implements \JsonSerializable {
                $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();
                }
        }