From 82aacb62f0bf6e74e12ae8a2be1c041f5ceb0adc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 8 Dec 2023 21:52:33 +0000 Subject: [PATCH] bug fixes --- Controller/ApiController.php | 2 +- Models/Label.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 680d17a..da6fbab 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -114,7 +114,7 @@ final class ApiController extends Controller __DIR__ . '/../../../Modules/Media/Files' . $path ); - // @todo: I think we need to add the uploaded files to the collection. + // @todo I think we need to add the uploaded files to the collection. // The frontend should work without it because of some "smart" corrections (virtualPath), but it is not correct. // In the db there should be a relationship defined, no? // If that is the case, maybe we also need to adjust the api. Either the uploadFiles should create the collection (if specified) diff --git a/Models/Label.php b/Models/Label.php index 86d9cf3..047facf 100644 --- a/Models/Label.php +++ b/Models/Label.php @@ -65,7 +65,7 @@ class Label foreach ($this->elements as $element) { $color = 0; - // @todo: replace int type with enum + // @todo replace int type with enum if ($element instanceof Shape) { if ($element->type === ShapeType::LINE) { if ($element->borderThickness === 1) {