mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +00:00
Static classes
This commit is contained in:
parent
96f9db5395
commit
b447c0772c
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user