-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dennis Eichhorn
committed
Jul 17, 2023
1 parent
ebbc08f
commit 27ac3f1
Showing
10 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -528,5 +528,5 @@ class ISO3166CharEnum extends Enum | |
|
||
public const _XXX = 'XXX'; | ||
|
||
use ISO3166RegionTrait; | ||
use ISO3166Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -528,5 +528,5 @@ class ISO3166NameEnum extends Enum | |
|
||
public const _XXX = 'XXX'; | ||
|
||
use ISO3166RegionTrait; | ||
use ISO3166Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -528,5 +528,5 @@ class ISO3166NumEnum extends Enum | |
|
||
public const _XXX = '000'; | ||
|
||
use ISO3166RegionTrait; | ||
use ISO3166Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -528,5 +528,5 @@ class ISO3166TwoEnum extends Enum | |
|
||
public const _XXX = 'XX'; | ||
|
||
use ISO3166RegionTrait; | ||
use ISO3166Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -396,5 +396,5 @@ class ISO639Enum extends Enum | |
|
||
public const _ZU = 'Zulu'; | ||
|
||
use ISO639CountryTrait; | ||
use ISO639Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -396,5 +396,5 @@ class ISO639x1Enum extends Enum | |
|
||
public const _ZH = 'zh'; | ||
|
||
use ISO639CountryTrait; | ||
use ISO639Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -396,5 +396,5 @@ class ISO639x2Enum extends Enum | |
|
||
public const _ZU = 'zul'; | ||
|
||
use ISO639CountryTrait; | ||
use ISO639Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* Jingga | ||
* | ||
* PHP Version 8.1 | ||
* | ||
* @package phpOMS\Utils\Formatter | ||
* @copyright Dennis Eichhorn | ||
* @license OMS License 2.0 | ||
* @version 1.0.0 | ||
* @link https://jingga.app | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace phpOMS\Utils\Formatter; | ||
|
||
/** | ||
* Gray encoding class | ||
* | ||
* @package phpOMS\Utils\Formatter | ||
* @license OMS License 2.0 | ||
* @link https://jingga.app | ||
* @since 1.0.0 | ||
*/ | ||
class HtmlFormatter | ||
{ | ||
public static function format(string $text) : string | ||
{ | ||
$dom = new \DOMDocument(); | ||
|
||
$dom->loadHTML($text); | ||
|
||
$dom->preserveWhiteSpace = false; | ||
$dom->formatOutput = true; | ||
|
||
return $dom->saveXML($dom->documentElement); | ||
} | ||
} |