Skip to content

Commit bb589c2

Browse files
authored
Merge pull request #46 from WebFiori/dev
refactor: Change Namespaces to Pascal Case
2 parents 9268450 + f2bfaa6 commit bb589c2

37 files changed

+110
-72
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ composer.lock
99
php-cs-fixer-v2.phar
1010
.idea/*
1111
/release-please-config.json
12+
*.Identifier
13+
/tests/.phpunit.cache/code-coverage
14+
/tests/.phpunit.cache

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 renamed to 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 renamed to 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 renamed to 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 renamed to 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 renamed to 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 renamed to 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 renamed to 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 renamed to 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
*

0 commit comments

Comments
 (0)