From 4623506dfb8f9048e1d3c7b3d38da9ba3d431ec8 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:30:42 +0300 Subject: [PATCH 1/7] refactor: Renamed Folders Prepare to move files from `UI` to `Ui` --- WebFiori/{UI => UI - Copy}/Anchor.php | 0 WebFiori/{UI => UI - Copy}/Br.php | 0 WebFiori/{UI => UI - Copy}/CodeSnippet.php | 0 .../{UI => UI - Copy}/Exceptions/InvalidNodeNameException.php | 0 .../{UI => UI - Copy}/Exceptions/TemplateNotFoundException.php | 0 WebFiori/{UI => UI - Copy}/HTMLDoc.php | 0 WebFiori/{UI => UI - Copy}/HTMLList.php | 0 WebFiori/{UI => UI - Copy}/HTMLNode.php | 0 WebFiori/{UI => UI - Copy}/HTMLTable.php | 0 WebFiori/{UI => UI - Copy}/HeadNode.php | 0 WebFiori/{UI => UI - Copy}/Input.php | 0 WebFiori/{UI => UI - Copy}/JsCode.php | 0 WebFiori/{UI => UI - Copy}/Label.php | 0 WebFiori/{UI => UI - Copy}/ListItem.php | 0 WebFiori/{UI => UI - Copy}/OrderedList.php | 0 WebFiori/{UI => UI - Copy}/Paragraph.php | 0 WebFiori/{UI => UI - Copy}/RadioGroup.php | 0 WebFiori/{UI => UI - Copy}/TableCell.php | 0 WebFiori/{UI => UI - Copy}/TableRow.php | 0 WebFiori/{UI => UI - Copy}/TemplateCompiler.php | 0 WebFiori/{UI => UI - Copy}/UnorderedList.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/HTMLDocTest.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/HTMLNodeTest.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/HTMLTableTest.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/HeadNodeTest.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/InputTest.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/LoadTemplateTest.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/sub-component.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/template.html | 0 tests/WebFiori/Tests/{UI => UI - Copy}/template.php | 0 tests/WebFiori/Tests/{UI => UI - Copy}/template2.php | 0 31 files changed, 0 insertions(+), 0 deletions(-) rename WebFiori/{UI => UI - Copy}/Anchor.php (100%) rename WebFiori/{UI => UI - Copy}/Br.php (100%) rename WebFiori/{UI => UI - Copy}/CodeSnippet.php (100%) rename WebFiori/{UI => UI - Copy}/Exceptions/InvalidNodeNameException.php (100%) rename WebFiori/{UI => UI - Copy}/Exceptions/TemplateNotFoundException.php (100%) rename WebFiori/{UI => UI - Copy}/HTMLDoc.php (100%) rename WebFiori/{UI => UI - Copy}/HTMLList.php (100%) rename WebFiori/{UI => UI - Copy}/HTMLNode.php (100%) rename WebFiori/{UI => UI - Copy}/HTMLTable.php (100%) rename WebFiori/{UI => UI - Copy}/HeadNode.php (100%) rename WebFiori/{UI => UI - Copy}/Input.php (100%) rename WebFiori/{UI => UI - Copy}/JsCode.php (100%) rename WebFiori/{UI => UI - Copy}/Label.php (100%) rename WebFiori/{UI => UI - Copy}/ListItem.php (100%) rename WebFiori/{UI => UI - Copy}/OrderedList.php (100%) rename WebFiori/{UI => UI - Copy}/Paragraph.php (100%) rename WebFiori/{UI => UI - Copy}/RadioGroup.php (100%) rename WebFiori/{UI => UI - Copy}/TableCell.php (100%) rename WebFiori/{UI => UI - Copy}/TableRow.php (100%) rename WebFiori/{UI => UI - Copy}/TemplateCompiler.php (100%) rename WebFiori/{UI => UI - Copy}/UnorderedList.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/HTMLDocTest.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/HTMLNodeTest.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/HTMLTableTest.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/HeadNodeTest.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/InputTest.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/LoadTemplateTest.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/sub-component.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/template.html (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/template.php (100%) rename tests/WebFiori/Tests/{UI => UI - Copy}/template2.php (100%) diff --git a/WebFiori/UI/Anchor.php b/WebFiori/UI - Copy/Anchor.php similarity index 100% rename from WebFiori/UI/Anchor.php rename to WebFiori/UI - Copy/Anchor.php diff --git a/WebFiori/UI/Br.php b/WebFiori/UI - Copy/Br.php similarity index 100% rename from WebFiori/UI/Br.php rename to WebFiori/UI - Copy/Br.php diff --git a/WebFiori/UI/CodeSnippet.php b/WebFiori/UI - Copy/CodeSnippet.php similarity index 100% rename from WebFiori/UI/CodeSnippet.php rename to WebFiori/UI - Copy/CodeSnippet.php diff --git a/WebFiori/UI/Exceptions/InvalidNodeNameException.php b/WebFiori/UI - Copy/Exceptions/InvalidNodeNameException.php similarity index 100% rename from WebFiori/UI/Exceptions/InvalidNodeNameException.php rename to WebFiori/UI - Copy/Exceptions/InvalidNodeNameException.php diff --git a/WebFiori/UI/Exceptions/TemplateNotFoundException.php b/WebFiori/UI - Copy/Exceptions/TemplateNotFoundException.php similarity index 100% rename from WebFiori/UI/Exceptions/TemplateNotFoundException.php rename to WebFiori/UI - Copy/Exceptions/TemplateNotFoundException.php diff --git a/WebFiori/UI/HTMLDoc.php b/WebFiori/UI - Copy/HTMLDoc.php similarity index 100% rename from WebFiori/UI/HTMLDoc.php rename to WebFiori/UI - Copy/HTMLDoc.php diff --git a/WebFiori/UI/HTMLList.php b/WebFiori/UI - Copy/HTMLList.php similarity index 100% rename from WebFiori/UI/HTMLList.php rename to WebFiori/UI - Copy/HTMLList.php diff --git a/WebFiori/UI/HTMLNode.php b/WebFiori/UI - Copy/HTMLNode.php similarity index 100% rename from WebFiori/UI/HTMLNode.php rename to WebFiori/UI - Copy/HTMLNode.php diff --git a/WebFiori/UI/HTMLTable.php b/WebFiori/UI - Copy/HTMLTable.php similarity index 100% rename from WebFiori/UI/HTMLTable.php rename to WebFiori/UI - Copy/HTMLTable.php diff --git a/WebFiori/UI/HeadNode.php b/WebFiori/UI - Copy/HeadNode.php similarity index 100% rename from WebFiori/UI/HeadNode.php rename to WebFiori/UI - Copy/HeadNode.php diff --git a/WebFiori/UI/Input.php b/WebFiori/UI - Copy/Input.php similarity index 100% rename from WebFiori/UI/Input.php rename to WebFiori/UI - Copy/Input.php diff --git a/WebFiori/UI/JsCode.php b/WebFiori/UI - Copy/JsCode.php similarity index 100% rename from WebFiori/UI/JsCode.php rename to WebFiori/UI - Copy/JsCode.php diff --git a/WebFiori/UI/Label.php b/WebFiori/UI - Copy/Label.php similarity index 100% rename from WebFiori/UI/Label.php rename to WebFiori/UI - Copy/Label.php diff --git a/WebFiori/UI/ListItem.php b/WebFiori/UI - Copy/ListItem.php similarity index 100% rename from WebFiori/UI/ListItem.php rename to WebFiori/UI - Copy/ListItem.php diff --git a/WebFiori/UI/OrderedList.php b/WebFiori/UI - Copy/OrderedList.php similarity index 100% rename from WebFiori/UI/OrderedList.php rename to WebFiori/UI - Copy/OrderedList.php diff --git a/WebFiori/UI/Paragraph.php b/WebFiori/UI - Copy/Paragraph.php similarity index 100% rename from WebFiori/UI/Paragraph.php rename to WebFiori/UI - Copy/Paragraph.php diff --git a/WebFiori/UI/RadioGroup.php b/WebFiori/UI - Copy/RadioGroup.php similarity index 100% rename from WebFiori/UI/RadioGroup.php rename to WebFiori/UI - Copy/RadioGroup.php diff --git a/WebFiori/UI/TableCell.php b/WebFiori/UI - Copy/TableCell.php similarity index 100% rename from WebFiori/UI/TableCell.php rename to WebFiori/UI - Copy/TableCell.php diff --git a/WebFiori/UI/TableRow.php b/WebFiori/UI - Copy/TableRow.php similarity index 100% rename from WebFiori/UI/TableRow.php rename to WebFiori/UI - Copy/TableRow.php diff --git a/WebFiori/UI/TemplateCompiler.php b/WebFiori/UI - Copy/TemplateCompiler.php similarity index 100% rename from WebFiori/UI/TemplateCompiler.php rename to WebFiori/UI - Copy/TemplateCompiler.php diff --git a/WebFiori/UI/UnorderedList.php b/WebFiori/UI - Copy/UnorderedList.php similarity index 100% rename from WebFiori/UI/UnorderedList.php rename to WebFiori/UI - Copy/UnorderedList.php diff --git a/tests/WebFiori/Tests/UI/HTMLDocTest.php b/tests/WebFiori/Tests/UI - Copy/HTMLDocTest.php similarity index 100% rename from tests/WebFiori/Tests/UI/HTMLDocTest.php rename to tests/WebFiori/Tests/UI - Copy/HTMLDocTest.php diff --git a/tests/WebFiori/Tests/UI/HTMLNodeTest.php b/tests/WebFiori/Tests/UI - Copy/HTMLNodeTest.php similarity index 100% rename from tests/WebFiori/Tests/UI/HTMLNodeTest.php rename to tests/WebFiori/Tests/UI - Copy/HTMLNodeTest.php diff --git a/tests/WebFiori/Tests/UI/HTMLTableTest.php b/tests/WebFiori/Tests/UI - Copy/HTMLTableTest.php similarity index 100% rename from tests/WebFiori/Tests/UI/HTMLTableTest.php rename to tests/WebFiori/Tests/UI - Copy/HTMLTableTest.php diff --git a/tests/WebFiori/Tests/UI/HeadNodeTest.php b/tests/WebFiori/Tests/UI - Copy/HeadNodeTest.php similarity index 100% rename from tests/WebFiori/Tests/UI/HeadNodeTest.php rename to tests/WebFiori/Tests/UI - Copy/HeadNodeTest.php diff --git a/tests/WebFiori/Tests/UI/InputTest.php b/tests/WebFiori/Tests/UI - Copy/InputTest.php similarity index 100% rename from tests/WebFiori/Tests/UI/InputTest.php rename to tests/WebFiori/Tests/UI - Copy/InputTest.php diff --git a/tests/WebFiori/Tests/UI/LoadTemplateTest.php b/tests/WebFiori/Tests/UI - Copy/LoadTemplateTest.php similarity index 100% rename from tests/WebFiori/Tests/UI/LoadTemplateTest.php rename to tests/WebFiori/Tests/UI - Copy/LoadTemplateTest.php diff --git a/tests/WebFiori/Tests/UI/sub-component.php b/tests/WebFiori/Tests/UI - Copy/sub-component.php similarity index 100% rename from tests/WebFiori/Tests/UI/sub-component.php rename to tests/WebFiori/Tests/UI - Copy/sub-component.php diff --git a/tests/WebFiori/Tests/UI/template.html b/tests/WebFiori/Tests/UI - Copy/template.html similarity index 100% rename from tests/WebFiori/Tests/UI/template.html rename to tests/WebFiori/Tests/UI - Copy/template.html diff --git a/tests/WebFiori/Tests/UI/template.php b/tests/WebFiori/Tests/UI - Copy/template.php similarity index 100% rename from tests/WebFiori/Tests/UI/template.php rename to tests/WebFiori/Tests/UI - Copy/template.php diff --git a/tests/WebFiori/Tests/UI/template2.php b/tests/WebFiori/Tests/UI - Copy/template2.php similarity index 100% rename from tests/WebFiori/Tests/UI/template2.php rename to tests/WebFiori/Tests/UI - Copy/template2.php From 82b2fa2698f7f7fde4f4e01b0f30394df768c072 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:32:06 +0300 Subject: [PATCH 2/7] refactor: Moved from `UI` to `Ui` --- WebFiori/{UI - Copy => Ui}/Anchor.php | 0 WebFiori/{UI - Copy => Ui}/Br.php | 0 WebFiori/{UI - Copy => Ui}/CodeSnippet.php | 0 .../{UI - Copy => Ui}/Exceptions/InvalidNodeNameException.php | 0 .../{UI - Copy => Ui}/Exceptions/TemplateNotFoundException.php | 0 WebFiori/{UI - Copy => Ui}/HTMLDoc.php | 0 WebFiori/{UI - Copy => Ui}/HTMLList.php | 0 WebFiori/{UI - Copy => Ui}/HTMLNode.php | 0 WebFiori/{UI - Copy => Ui}/HTMLTable.php | 0 WebFiori/{UI - Copy => Ui}/HeadNode.php | 0 WebFiori/{UI - Copy => Ui}/Input.php | 0 WebFiori/{UI - Copy => Ui}/JsCode.php | 0 WebFiori/{UI - Copy => Ui}/Label.php | 0 WebFiori/{UI - Copy => Ui}/ListItem.php | 0 WebFiori/{UI - Copy => Ui}/OrderedList.php | 0 WebFiori/{UI - Copy => Ui}/Paragraph.php | 0 WebFiori/{UI - Copy => Ui}/RadioGroup.php | 0 WebFiori/{UI - Copy => Ui}/TableCell.php | 0 WebFiori/{UI - Copy => Ui}/TableRow.php | 0 WebFiori/{UI - Copy => Ui}/TemplateCompiler.php | 0 WebFiori/{UI - Copy => Ui}/UnorderedList.php | 0 21 files changed, 0 insertions(+), 0 deletions(-) rename WebFiori/{UI - Copy => Ui}/Anchor.php (100%) rename WebFiori/{UI - Copy => Ui}/Br.php (100%) rename WebFiori/{UI - Copy => Ui}/CodeSnippet.php (100%) rename WebFiori/{UI - Copy => Ui}/Exceptions/InvalidNodeNameException.php (100%) rename WebFiori/{UI - Copy => Ui}/Exceptions/TemplateNotFoundException.php (100%) rename WebFiori/{UI - Copy => Ui}/HTMLDoc.php (100%) rename WebFiori/{UI - Copy => Ui}/HTMLList.php (100%) rename WebFiori/{UI - Copy => Ui}/HTMLNode.php (100%) rename WebFiori/{UI - Copy => Ui}/HTMLTable.php (100%) rename WebFiori/{UI - Copy => Ui}/HeadNode.php (100%) rename WebFiori/{UI - Copy => Ui}/Input.php (100%) rename WebFiori/{UI - Copy => Ui}/JsCode.php (100%) rename WebFiori/{UI - Copy => Ui}/Label.php (100%) rename WebFiori/{UI - Copy => Ui}/ListItem.php (100%) rename WebFiori/{UI - Copy => Ui}/OrderedList.php (100%) rename WebFiori/{UI - Copy => Ui}/Paragraph.php (100%) rename WebFiori/{UI - Copy => Ui}/RadioGroup.php (100%) rename WebFiori/{UI - Copy => Ui}/TableCell.php (100%) rename WebFiori/{UI - Copy => Ui}/TableRow.php (100%) rename WebFiori/{UI - Copy => Ui}/TemplateCompiler.php (100%) rename WebFiori/{UI - Copy => Ui}/UnorderedList.php (100%) diff --git a/WebFiori/UI - Copy/Anchor.php b/WebFiori/Ui/Anchor.php similarity index 100% rename from WebFiori/UI - Copy/Anchor.php rename to WebFiori/Ui/Anchor.php diff --git a/WebFiori/UI - Copy/Br.php b/WebFiori/Ui/Br.php similarity index 100% rename from WebFiori/UI - Copy/Br.php rename to WebFiori/Ui/Br.php diff --git a/WebFiori/UI - Copy/CodeSnippet.php b/WebFiori/Ui/CodeSnippet.php similarity index 100% rename from WebFiori/UI - Copy/CodeSnippet.php rename to WebFiori/Ui/CodeSnippet.php diff --git a/WebFiori/UI - Copy/Exceptions/InvalidNodeNameException.php b/WebFiori/Ui/Exceptions/InvalidNodeNameException.php similarity index 100% rename from WebFiori/UI - Copy/Exceptions/InvalidNodeNameException.php rename to WebFiori/Ui/Exceptions/InvalidNodeNameException.php diff --git a/WebFiori/UI - Copy/Exceptions/TemplateNotFoundException.php b/WebFiori/Ui/Exceptions/TemplateNotFoundException.php similarity index 100% rename from WebFiori/UI - Copy/Exceptions/TemplateNotFoundException.php rename to WebFiori/Ui/Exceptions/TemplateNotFoundException.php diff --git a/WebFiori/UI - Copy/HTMLDoc.php b/WebFiori/Ui/HTMLDoc.php similarity index 100% rename from WebFiori/UI - Copy/HTMLDoc.php rename to WebFiori/Ui/HTMLDoc.php diff --git a/WebFiori/UI - Copy/HTMLList.php b/WebFiori/Ui/HTMLList.php similarity index 100% rename from WebFiori/UI - Copy/HTMLList.php rename to WebFiori/Ui/HTMLList.php diff --git a/WebFiori/UI - Copy/HTMLNode.php b/WebFiori/Ui/HTMLNode.php similarity index 100% rename from WebFiori/UI - Copy/HTMLNode.php rename to WebFiori/Ui/HTMLNode.php diff --git a/WebFiori/UI - Copy/HTMLTable.php b/WebFiori/Ui/HTMLTable.php similarity index 100% rename from WebFiori/UI - Copy/HTMLTable.php rename to WebFiori/Ui/HTMLTable.php diff --git a/WebFiori/UI - Copy/HeadNode.php b/WebFiori/Ui/HeadNode.php similarity index 100% rename from WebFiori/UI - Copy/HeadNode.php rename to WebFiori/Ui/HeadNode.php diff --git a/WebFiori/UI - Copy/Input.php b/WebFiori/Ui/Input.php similarity index 100% rename from WebFiori/UI - Copy/Input.php rename to WebFiori/Ui/Input.php diff --git a/WebFiori/UI - Copy/JsCode.php b/WebFiori/Ui/JsCode.php similarity index 100% rename from WebFiori/UI - Copy/JsCode.php rename to WebFiori/Ui/JsCode.php diff --git a/WebFiori/UI - Copy/Label.php b/WebFiori/Ui/Label.php similarity index 100% rename from WebFiori/UI - Copy/Label.php rename to WebFiori/Ui/Label.php diff --git a/WebFiori/UI - Copy/ListItem.php b/WebFiori/Ui/ListItem.php similarity index 100% rename from WebFiori/UI - Copy/ListItem.php rename to WebFiori/Ui/ListItem.php diff --git a/WebFiori/UI - Copy/OrderedList.php b/WebFiori/Ui/OrderedList.php similarity index 100% rename from WebFiori/UI - Copy/OrderedList.php rename to WebFiori/Ui/OrderedList.php diff --git a/WebFiori/UI - Copy/Paragraph.php b/WebFiori/Ui/Paragraph.php similarity index 100% rename from WebFiori/UI - Copy/Paragraph.php rename to WebFiori/Ui/Paragraph.php diff --git a/WebFiori/UI - Copy/RadioGroup.php b/WebFiori/Ui/RadioGroup.php similarity index 100% rename from WebFiori/UI - Copy/RadioGroup.php rename to WebFiori/Ui/RadioGroup.php diff --git a/WebFiori/UI - Copy/TableCell.php b/WebFiori/Ui/TableCell.php similarity index 100% rename from WebFiori/UI - Copy/TableCell.php rename to WebFiori/Ui/TableCell.php diff --git a/WebFiori/UI - Copy/TableRow.php b/WebFiori/Ui/TableRow.php similarity index 100% rename from WebFiori/UI - Copy/TableRow.php rename to WebFiori/Ui/TableRow.php diff --git a/WebFiori/UI - Copy/TemplateCompiler.php b/WebFiori/Ui/TemplateCompiler.php similarity index 100% rename from WebFiori/UI - Copy/TemplateCompiler.php rename to WebFiori/Ui/TemplateCompiler.php diff --git a/WebFiori/UI - Copy/UnorderedList.php b/WebFiori/Ui/UnorderedList.php similarity index 100% rename from WebFiori/UI - Copy/UnorderedList.php rename to WebFiori/Ui/UnorderedList.php From bce4097cdd54acce4fe973ad8961fdd26cc217a5 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:36:23 +0300 Subject: [PATCH 3/7] refactor: Moved to Folder `Ui` --- tests/WebFiori/Tests/{UI - Copy => Ui}/HTMLDocTest.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/HTMLNodeTest.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/HTMLTableTest.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/HeadNodeTest.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/InputTest.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/LoadTemplateTest.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/sub-component.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/template.html | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/template.php | 0 tests/WebFiori/Tests/{UI - Copy => Ui}/template2.php | 0 10 files changed, 0 insertions(+), 0 deletions(-) rename tests/WebFiori/Tests/{UI - Copy => Ui}/HTMLDocTest.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/HTMLNodeTest.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/HTMLTableTest.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/HeadNodeTest.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/InputTest.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/LoadTemplateTest.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/sub-component.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/template.html (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/template.php (100%) rename tests/WebFiori/Tests/{UI - Copy => Ui}/template2.php (100%) diff --git a/tests/WebFiori/Tests/UI - Copy/HTMLDocTest.php b/tests/WebFiori/Tests/Ui/HTMLDocTest.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/HTMLDocTest.php rename to tests/WebFiori/Tests/Ui/HTMLDocTest.php diff --git a/tests/WebFiori/Tests/UI - Copy/HTMLNodeTest.php b/tests/WebFiori/Tests/Ui/HTMLNodeTest.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/HTMLNodeTest.php rename to tests/WebFiori/Tests/Ui/HTMLNodeTest.php diff --git a/tests/WebFiori/Tests/UI - Copy/HTMLTableTest.php b/tests/WebFiori/Tests/Ui/HTMLTableTest.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/HTMLTableTest.php rename to tests/WebFiori/Tests/Ui/HTMLTableTest.php diff --git a/tests/WebFiori/Tests/UI - Copy/HeadNodeTest.php b/tests/WebFiori/Tests/Ui/HeadNodeTest.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/HeadNodeTest.php rename to tests/WebFiori/Tests/Ui/HeadNodeTest.php diff --git a/tests/WebFiori/Tests/UI - Copy/InputTest.php b/tests/WebFiori/Tests/Ui/InputTest.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/InputTest.php rename to tests/WebFiori/Tests/Ui/InputTest.php diff --git a/tests/WebFiori/Tests/UI - Copy/LoadTemplateTest.php b/tests/WebFiori/Tests/Ui/LoadTemplateTest.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/LoadTemplateTest.php rename to tests/WebFiori/Tests/Ui/LoadTemplateTest.php diff --git a/tests/WebFiori/Tests/UI - Copy/sub-component.php b/tests/WebFiori/Tests/Ui/sub-component.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/sub-component.php rename to tests/WebFiori/Tests/Ui/sub-component.php diff --git a/tests/WebFiori/Tests/UI - Copy/template.html b/tests/WebFiori/Tests/Ui/template.html similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/template.html rename to tests/WebFiori/Tests/Ui/template.html diff --git a/tests/WebFiori/Tests/UI - Copy/template.php b/tests/WebFiori/Tests/Ui/template.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/template.php rename to tests/WebFiori/Tests/Ui/template.php diff --git a/tests/WebFiori/Tests/UI - Copy/template2.php b/tests/WebFiori/Tests/Ui/template2.php similarity index 100% rename from tests/WebFiori/Tests/UI - Copy/template2.php rename to tests/WebFiori/Tests/Ui/template2.php From ca23307b4f8bff93ea67bf353e515bc16fa9080d Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:38:38 +0300 Subject: [PATCH 4/7] refactor: Namespace Correction --- WebFiori/Ui/Anchor.php | 2 +- WebFiori/Ui/Br.php | 2 +- WebFiori/Ui/CodeSnippet.php | 2 +- .../Ui/Exceptions/InvalidNodeNameException.php | 2 +- .../Ui/Exceptions/TemplateNotFoundException.php | 2 +- WebFiori/Ui/HTMLDoc.php | 4 ++-- WebFiori/Ui/HTMLList.php | 2 +- WebFiori/Ui/HTMLNode.php | 6 +++--- WebFiori/Ui/HTMLTable.php | 2 +- WebFiori/Ui/HeadNode.php | 2 +- WebFiori/Ui/Input.php | 2 +- WebFiori/Ui/JsCode.php | 2 +- WebFiori/Ui/Label.php | 2 +- WebFiori/Ui/ListItem.php | 4 ++-- WebFiori/Ui/OrderedList.php | 2 +- WebFiori/Ui/Paragraph.php | 2 +- WebFiori/Ui/RadioGroup.php | 2 +- WebFiori/Ui/TableCell.php | 2 +- WebFiori/Ui/TableRow.php | 2 +- WebFiori/Ui/TemplateCompiler.php | 6 +++--- WebFiori/Ui/UnorderedList.php | 2 +- composer.json | 2 +- my-page.html | 2 +- tests/WebFiori/Tests/Ui/HTMLDocTest.php | 6 +++--- tests/WebFiori/Tests/Ui/HTMLNodeTest.php | 14 +++++++------- tests/WebFiori/Tests/Ui/HTMLTableTest.php | 8 ++++---- tests/WebFiori/Tests/Ui/HeadNodeTest.php | 6 +++--- tests/WebFiori/Tests/Ui/InputTest.php | 6 +++--- tests/WebFiori/Tests/Ui/LoadTemplateTest.php | 12 ++++++------ tests/phpunit.xml | 12 ++++++------ tests/phpunit10.xml | 14 +++++++------- 31 files changed, 68 insertions(+), 68 deletions(-) diff --git a/WebFiori/Ui/Anchor.php b/WebFiori/Ui/Anchor.php index b607778..4920d0d 100644 --- a/WebFiori/Ui/Anchor.php +++ b/WebFiori/Ui/Anchor.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents <a> tag. diff --git a/WebFiori/Ui/Br.php b/WebFiori/Ui/Br.php index 5c0a692..19ca347 100644 --- a/WebFiori/Ui/Br.php +++ b/WebFiori/Ui/Br.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents <br> tag. diff --git a/WebFiori/Ui/CodeSnippet.php b/WebFiori/Ui/CodeSnippet.php index bfb1ad9..b018f08 100644 --- a/WebFiori/Ui/CodeSnippet.php +++ b/WebFiori/Ui/CodeSnippet.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that can be used to display code snippets in good-looking way. diff --git a/WebFiori/Ui/Exceptions/InvalidNodeNameException.php b/WebFiori/Ui/Exceptions/InvalidNodeNameException.php index fc82769..06d01e9 100644 --- a/WebFiori/Ui/Exceptions/InvalidNodeNameException.php +++ b/WebFiori/Ui/Exceptions/InvalidNodeNameException.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI\Exceptions; +namespace WebFiori\Ui\Exceptions; use Exception; /** diff --git a/WebFiori/Ui/Exceptions/TemplateNotFoundException.php b/WebFiori/Ui/Exceptions/TemplateNotFoundException.php index b7413d9..7f64c11 100644 --- a/WebFiori/Ui/Exceptions/TemplateNotFoundException.php +++ b/WebFiori/Ui/Exceptions/TemplateNotFoundException.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI\Exceptions; +namespace WebFiori\Ui\Exceptions; use Exception; /** diff --git a/WebFiori/Ui/HTMLDoc.php b/WebFiori/Ui/HTMLDoc.php index e8c6141..50de390 100644 --- a/WebFiori/Ui/HTMLDoc.php +++ b/WebFiori/Ui/HTMLDoc.php @@ -8,10 +8,10 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; use WebFiori\Collections\LinkedList; -use WebFiori\UI\Exceptions\InvalidNodeNameException; +use WebFiori\Ui\Exceptions\InvalidNodeNameException; /** * A class that represents HTML document. * diff --git a/WebFiori/Ui/HTMLList.php b/WebFiori/Ui/HTMLList.php index 6ed3657..c914427 100644 --- a/WebFiori/Ui/HTMLList.php +++ b/WebFiori/Ui/HTMLList.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents ordered list or unordered list. diff --git a/WebFiori/Ui/HTMLNode.php b/WebFiori/Ui/HTMLNode.php index 20f1e5f..fffecc8 100644 --- a/WebFiori/Ui/HTMLNode.php +++ b/WebFiori/Ui/HTMLNode.php @@ -8,15 +8,15 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; use Countable; use Iterator; use ReturnTypeWillChange; use WebFiori\Collections\LinkedList; use WebFiori\Collections\Stack; -use WebFiori\UI\Exceptions\InvalidNodeNameException; -use WebFiori\UI\Exceptions\TemplateNotFoundException; +use WebFiori\Ui\Exceptions\InvalidNodeNameException; +use WebFiori\Ui\Exceptions\TemplateNotFoundException; /** * A class that represents HTML element. * diff --git a/WebFiori/Ui/HTMLTable.php b/WebFiori/Ui/HTMLTable.php index d33578d..8c151ba 100644 --- a/WebFiori/Ui/HTMLTable.php +++ b/WebFiori/Ui/HTMLTable.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; use InvalidArgumentException; /** diff --git a/WebFiori/Ui/HeadNode.php b/WebFiori/Ui/HeadNode.php index 18c7ac0..9eaa41d 100644 --- a/WebFiori/Ui/HeadNode.php +++ b/WebFiori/Ui/HeadNode.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; use WebFiori\Collections\LinkedList; /** diff --git a/WebFiori/Ui/Input.php b/WebFiori/Ui/Input.php index 99395ee..d177e68 100644 --- a/WebFiori/Ui/Input.php +++ b/WebFiori/Ui/Input.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents any input element. diff --git a/WebFiori/Ui/JsCode.php b/WebFiori/Ui/JsCode.php index 0122e86..1dba552 100644 --- a/WebFiori/Ui/JsCode.php +++ b/WebFiori/Ui/JsCode.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A node that represents in line JavaScript code that can be inserted on a diff --git a/WebFiori/Ui/Label.php b/WebFiori/Ui/Label.php index e88b07f..06721b8 100644 --- a/WebFiori/Ui/Label.php +++ b/WebFiori/Ui/Label.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents <label> tag. diff --git a/WebFiori/Ui/ListItem.php b/WebFiori/Ui/ListItem.php index 8d7a855..4d4e1a1 100644 --- a/WebFiori/Ui/ListItem.php +++ b/WebFiori/Ui/ListItem.php @@ -8,9 +8,9 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; -use WebFiori\UI\Exceptions\InvalidNodeNameException; +use WebFiori\Ui\Exceptions\InvalidNodeNameException; /** * A class that represents List Item node. diff --git a/WebFiori/Ui/OrderedList.php b/WebFiori/Ui/OrderedList.php index 07b3c3d..150b6e7 100644 --- a/WebFiori/Ui/OrderedList.php +++ b/WebFiori/Ui/OrderedList.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents ordered list (ol). diff --git a/WebFiori/Ui/Paragraph.php b/WebFiori/Ui/Paragraph.php index c4b8e65..38fd1ec 100644 --- a/WebFiori/Ui/Paragraph.php +++ b/WebFiori/Ui/Paragraph.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents a paragraph element. diff --git a/WebFiori/Ui/RadioGroup.php b/WebFiori/Ui/RadioGroup.php index a9056ca..df30267 100644 --- a/WebFiori/Ui/RadioGroup.php +++ b/WebFiori/Ui/RadioGroup.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class which can be used to represent a group of radio buttons inserted diff --git a/WebFiori/Ui/TableCell.php b/WebFiori/Ui/TableCell.php index 32f261c..879454b 100644 --- a/WebFiori/Ui/TableCell.php +++ b/WebFiori/Ui/TableCell.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents a cell in HTML table. diff --git a/WebFiori/Ui/TableRow.php b/WebFiori/Ui/TableRow.php index 6e97d26..d719e94 100644 --- a/WebFiori/Ui/TableRow.php +++ b/WebFiori/Ui/TableRow.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents <tr> node. diff --git a/WebFiori/Ui/TemplateCompiler.php b/WebFiori/Ui/TemplateCompiler.php index e910618..91a66b0 100644 --- a/WebFiori/Ui/TemplateCompiler.php +++ b/WebFiori/Ui/TemplateCompiler.php @@ -8,12 +8,12 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; use InvalidArgumentException; use WebFiori\Collections\Queue; -use WebFiori\UI\Exceptions\InvalidNodeNameException; -use WebFiori\UI\Exceptions\TemplateNotFoundException; +use WebFiori\Ui\Exceptions\InvalidNodeNameException; +use WebFiori\Ui\Exceptions\TemplateNotFoundException; /** * A class which is used to compile and load php/html templates to objects diff --git a/WebFiori/Ui/UnorderedList.php b/WebFiori/Ui/UnorderedList.php index 5485045..9f3f265 100644 --- a/WebFiori/Ui/UnorderedList.php +++ b/WebFiori/Ui/UnorderedList.php @@ -8,7 +8,7 @@ * https://github.com/WebFiori/.github/blob/main/LICENSE * */ -namespace WebFiori\UI; +namespace WebFiori\Ui; /** * A class that represents Unordered List HTML element (ul) diff --git a/composer.json b/composer.json index bbfedb2..7734a07 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ ], "autoload": { "psr-4": { - "WebFiori\\UI\\": "WebFiori/UI/" + "WebFiori\\Ui\\": "WebFiori/Ui/" } }, "require-dev": { diff --git a/my-page.html b/my-page.html index b2a9e21..734a3a7 100644 --- a/my-page.html +++ b/my-page.html @@ -1 +1 @@ -Default \ No newline at end of file +Default \ No newline at end of file diff --git a/tests/WebFiori/Tests/Ui/HTMLDocTest.php b/tests/WebFiori/Tests/Ui/HTMLDocTest.php index fec4924..43a1d43 100644 --- a/tests/WebFiori/Tests/Ui/HTMLDocTest.php +++ b/tests/WebFiori/Tests/Ui/HTMLDocTest.php @@ -1,8 +1,8 @@ - ../WebFiori/UI/HTMLNode.php - ../WebFiori/UI/HeadNode.php - ../WebFiori/UI/HTMLDoc.php - ../WebFiori/UI/Input.php - ../WebFiori/UI/HTMLTable.php - ../WebFiori/UI/TemplateCompiler.php + ../WebFiori/Ui/HTMLNode.php + ../WebFiori/Ui/HeadNode.php + ../WebFiori/Ui/HTMLDoc.php + ../WebFiori/Ui/Input.php + ../WebFiori/Ui/HTMLTable.php + ../WebFiori/Ui/TemplateCompiler.php diff --git a/tests/phpunit10.xml b/tests/phpunit10.xml index 1f76101..fef0805 100644 --- a/tests/phpunit10.xml +++ b/tests/phpunit10.xml @@ -10,17 +10,17 @@ - ./WebFiori/Tests/UI + ./WebFiori/Tests/Ui - ../WebFiori/UI/HTMLNode.php - ../WebFiori/UI/HeadNode.php - ../WebFiori/UI/HTMLDoc.php - ../WebFiori/UI/Input.php - ../WebFiori/UI/HTMLTable.php - ../WebFiori/UI/TemplateCompiler.php + ../WebFiori/Ui/HTMLNode.php + ../WebFiori/Ui/HeadNode.php + ../WebFiori/Ui/HTMLDoc.php + ../WebFiori/Ui/Input.php + ../WebFiori/Ui/HTMLTable.php + ../WebFiori/Ui/TemplateCompiler.php From f9bd4c9942341942c83f3b7e535c3db1d95f2d02 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:40:22 +0300 Subject: [PATCH 5/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bbb22e2..c3a28ea 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ A set of classes that provide basic web pages creation utilities in addition to The basic use case is to have HTML document with some text in its body. The class `HTMLDoc` represent HTML document. Simply, create an instance of this class and use it to build the whole HTML document. The class can be used as follows: ``` php -use WebFiori\UI\HTMLDoc; +use WebFiori\Ui\HTMLDoc; //This code will create HTML5 Document, get the node and, add text to it. $doc = new HTMLDoc(); @@ -85,7 +85,7 @@ The output of this code is HTML 5 document. The structure of the document will b All HTML elements are represented as an instance of the class `HTMLNode`. Developers can extend this class to create custom UI components as classes. The library has already pre-made components which are used in the next code sample. In addition to that, the class has methods which utilize theses components and fasten the process of adding them as children of any HTML element. The following code shows a code which is used to create a basic login form. ``` php -use WebFiori\UI\HTMLDoc; +use WebFiori\Ui\HTMLDoc; //Create new instance of "HTMLDoc". $doc = new HTMLDoc(); From 01ef31b806b65afc02c77e9709aeff4aae2dc924 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:51:42 +0300 Subject: [PATCH 6/7] ci: Fix Missing Input --- .github/workflows/php83.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/php83.yaml b/.github/workflows/php83.yaml index 8ecb808..56bbbd1 100644 --- a/.github/workflows/php83.yaml +++ b/.github/workflows/php83.yaml @@ -32,8 +32,6 @@ jobs: name: Code Quality needs: test uses: WebFiori/workflows/.github/workflows/quality-sonarcloud.yaml@main - with: - coverage-file: 'php-8.3-coverage.xml' secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} From 08637164e4f7a1e1750383f6d3a79cf8ea01a784 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 7 Oct 2025 23:52:06 +0300 Subject: [PATCH 7/7] test: Fix PHPUnit Config --- tests/phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 95125be..656b9bb 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -17,7 +17,7 @@ - ./WebFiori/Tests/UI + ./WebFiori/Tests/Ui \ No newline at end of file