Static classes

This commit is contained in:
Dennis Eichhorn 2023-11-26 21:26:16 +00:00
parent 96f9db5395
commit b447c0772c
6 changed files with 53 additions and 3 deletions

View File

@ -24,6 +24,16 @@ namespace phpOMS\Utils\Encoding;
*/
final class Base64Url
{
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/**
* Encode source text
*

View File

@ -40,6 +40,16 @@ class Caesar
*/
public const LIMIT_UPPER = 127;
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/**
* Encode source text
*

View File

@ -24,6 +24,16 @@ namespace phpOMS\Utils\Encoding;
*/
final class Gray
{
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/**
* Encode source text
*

View File

@ -24,6 +24,16 @@ namespace phpOMS\Utils\Encoding;
*/
final class XorEncoding
{
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/**
* Decode text
*

View File

@ -22,8 +22,18 @@ namespace phpOMS\Utils\Formatter;
* @link https://jingga.app
* @since 1.0.0
*/
class HtmlFormatter
final class HtmlFormatter
{
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/**
* Format html code
*

View File

@ -675,8 +675,8 @@ class Markdown
*/
protected function inlineCode(array $excerpt) : ?array
{
if (($this->options['code']['inline'] ?? true) !== true
|| ($this->options['code'] ?? true) !== true
if (!($this->options['code']['inline'] ?? true)
|| !($this->options['code'] ?? true)
) {
return null;
}