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 final class Base64Url
{ {
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/** /**
* Encode source text * Encode source text
* *

View File

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

View File

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

View File

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

View File

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

View File

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