Skip to content

Commit 202ab91

Browse files
committed
refactor: Correction of Namespaces
1 parent 5fb51d1 commit 202ab91

32 files changed

+107
-75
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ A set of classes that provide basic web pages creation utilities in addition to
5757

5858
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:
5959
``` php
60-
use webfiori\ui\HTMLDoc;
60+
use WebFiori\UI\HTMLDoc;
6161

6262
//This code will create HTML5 Document, get the <body> node and, add text to it.
6363
$doc = new HTMLDoc();
@@ -85,7 +85,7 @@ The output of this code is HTML 5 document. The structure of the document will b
8585
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.
8686

8787
``` php
88-
use webfiori\ui\HTMLDoc;
88+
use WebFiori\UI\HTMLDoc;
8989

9090
//Create new instance of "HTMLDoc".
9191
$doc = new HTMLDoc();

WebFiori/UI/Anchor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

1313
/**
1414
* A class that represents &lt;a&gt; tag.

WebFiori/UI/Br.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

1313
/**
1414
* A class that represents &lt;br&gt; tag.

WebFiori/UI/CodeSnippet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

1313
/**
1414
* A class that can be used to display code snippets in good-looking way.

WebFiori/UI/Exceptions/InvalidNodeNameException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui\exceptions;
11+
namespace WebFiori\UI\Exceptions;
1212

1313
use Exception;
1414
/**

WebFiori/UI/Exceptions/TemplateNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui\exceptions;
11+
namespace WebFiori\UI\Exceptions;
1212

1313
use Exception;
1414
/**

WebFiori/UI/HTMLDoc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

13-
use webfiori\collections\LinkedList;
14-
use webfiori\ui\exceptions\InvalidNodeNameException;
13+
use WebFiori\Collections\LinkedList;
14+
use WebFiori\UI\exceptions\InvalidNodeNameException;
1515
/**
1616
* A class that represents HTML document.
1717
*

WebFiori/UI/HTMLList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

1313
/**
1414
* A class that represents ordered list or unordered list.

WebFiori/UI/HTMLNode.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

1313
use Countable;
1414
use Iterator;
1515
use ReturnTypeWillChange;
16-
use webfiori\collections\LinkedList;
17-
use webfiori\collections\Stack;
18-
use webfiori\ui\exceptions\InvalidNodeNameException;
19-
use webfiori\ui\exceptions\TemplateNotFoundException;
16+
use WebFiori\Collections\LinkedList;
17+
use WebFiori\Collections\Stack;
18+
use WebFiori\UI\Exceptions\InvalidNodeNameException;
19+
use WebFiori\UI\Exceptions\TemplateNotFoundException;
2020
/**
2121
* A class that represents HTML element.
2222
*

WebFiori/UI/HTMLTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* https://github.com/WebFiori/.github/blob/main/LICENSE
99
*
1010
*/
11-
namespace webfiori\ui;
11+
namespace WebFiori\UI;
1212

1313
use InvalidArgumentException;
1414
/**

0 commit comments

Comments
 (0)