Skip to content

Commit

Permalink
Changes to be committed:
Browse files Browse the repository at this point in the history
	* Fix "psr-4 autoloading standard"
	modified:   README.md
	modified:   composer.json
	modified:   src/HtmlHelper.php
	modified:   src/MarkupFixer.php
	modified:   src/UniqueSluggifier.php
	modified:   src/table.php
  • Loading branch information
fxcjahid committed Apr 11, 2023
1 parent bd1bfbd commit 21b9ceb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ This package contains two main classes:
Basic Example:

```php
use Fxcjahid\LaravelTableOfContent\Table;
use Fxcjahid\LaravelTableOfContent\MarkupFixer;
use fxcjahid\LaravelTableOfContent\Table;
use fxcjahid\LaravelTableOfContent\MarkupFixer;

$content = <<<END
<h2>This is heading H2</h2>
Expand Down Expand Up @@ -100,8 +100,8 @@ Integration in controller
-------------------------

```php
use Fxcjahid\LaravelTableOfContent\Table;
use Fxcjahid\LaravelTableOfContent\MarkupFixer;
use fxcjahid\LaravelTableOfContent\Table;
use fxcjahid\LaravelTableOfContent\MarkupFixer;

/**
* Show the articles page.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "fxcjahid/laravel-table-of-content",
"type": "library",
"version": "2.1",
"description": "Laravel Table Of Content Generator",
"keywords": ["Laravel Table Of Content", "table of contents", "toc"],
"license": "MIT",
Expand All @@ -13,7 +14,7 @@
}
],
"require": {
"php": "^7.1||^8.1",
"php": "^7.0||^8.0",
"masterminds/html5": "^2.1",
"knplabs/knp-menu": "^2.0",
"cocur/slugify": "^2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/HtmlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/


namespace Fxcjahid\LaravelTableOfContent;
namespace fxcjahid\LaravelTableOfContent;

use ArrayIterator;
use DOMDocument;
Expand Down Expand Up @@ -80,4 +80,4 @@ protected function isFullHtmlDocument($markup)
{
return (strpos($markup, "<body") !== false && strpos($markup, "</body>") !== false);
}
}
}
2 changes: 1 addition & 1 deletion src/MarkupFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author: fxcjahid <[email protected]>
*/

namespace Fxcjahid\LaravelTableOfContent;
namespace fxcjahid\LaravelTableOfContent;


use Masterminds\HTML5;
Expand Down
2 changes: 1 addition & 1 deletion src/UniqueSluggifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author: fxcjahid <[email protected]>
*/

namespace Fxcjahid\LaravelTableOfContent;
namespace fxcjahid\LaravelTableOfContent;


use Cocur\Slugify\Slugify;
Expand Down
2 changes: 1 addition & 1 deletion src/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @author: fxcjahid <[email protected]>
*/

namespace Fxcjahid\LaravelTableOfContent;
namespace fxcjahid\LaravelTableOfContent;


use Knp\Menu\ItemInterface;
Expand Down

0 comments on commit 21b9ceb

Please sign in to comment.