mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-16 08:28:41 +00:00
Started to fix via cs
This commit is contained in:
parent
029fdb4600
commit
f74c2e49c8
|
|
@ -121,6 +121,8 @@ class Group implements ArrayableInterface, \JsonSerializable
|
|||
*
|
||||
* @param string $name Group name
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setName(string $name) /* : void */
|
||||
|
|
@ -145,6 +147,8 @@ class Group implements ArrayableInterface, \JsonSerializable
|
|||
*
|
||||
* @param string $description Group description
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDescription(string $description) /* : void */
|
||||
|
|
@ -169,11 +173,18 @@ class Group implements ArrayableInterface, \JsonSerializable
|
|||
*
|
||||
* @param int $status Group status
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws InvalidEnumValue
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setStatus(int $status) /* : void */
|
||||
{
|
||||
// todo: check valid
|
||||
if (!GroupStatus::isValidValue($status)) {
|
||||
throw new InvalidEnumValue($status);
|
||||
}
|
||||
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,6 +17,10 @@ namespace phpOMS;
|
|||
/**
|
||||
* Application class.
|
||||
*
|
||||
* This class contains all necessary application members. Access to them
|
||||
* is restricted to write once in order to prevent manipulation
|
||||
* and afterwards read only.
|
||||
*
|
||||
* @property mixed orgId
|
||||
* @property string appName
|
||||
* @property \phpOMS\DataStorage\Database\DatabasePool dbPool
|
||||
|
|
@ -31,7 +35,7 @@ namespace phpOMS;
|
|||
* @property \phpOMS\Account\AccountManager accountManager
|
||||
* @property \phpOMS\Log\FileLogger logger
|
||||
*
|
||||
* @package Framework
|
||||
* @package phpOMS
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -15,9 +15,11 @@ declare(strict_types = 1);
|
|||
namespace phpOMS;
|
||||
|
||||
/**
|
||||
* Permission exception class.
|
||||
* Autoloader exception
|
||||
*
|
||||
* @package Framework
|
||||
* This exception is thrown if a file couldn't be autoloaded
|
||||
*
|
||||
* @package phpOMS
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -19,7 +19,7 @@ spl_autoload_register('\phpOMS\Autoloader::default_autoloader');
|
|||
/**
|
||||
* Autoloader class.
|
||||
*
|
||||
* @package Framework
|
||||
* @package phpOMS
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -335,7 +335,8 @@ class Http implements UriInterface
|
|||
*/
|
||||
public function getAuthority() : string
|
||||
{
|
||||
return ($this->getUser() !== '' ? $this->getUser() . '@' : '') . $this->host . (isset($this->port) && $this->port !== 0 ? ':' . $this->port : '');
|
||||
return ($this->getUser() !== '' ? $this->getUser() . '@' : '') . $this->host
|
||||
. (isset($this->port) && $this->port !== 0 ? ':' . $this->port : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ class ArrayUtils
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function arrayToCSV(array $data, string $delimiter = ';', string $enclosure = '"', string $escape = '\\') : string
|
||||
public static function arrayToCsv(array $data, string $delimiter = ';', string $enclosure = '"', string $escape = '\\') : string
|
||||
{
|
||||
$outstream = fopen('php://memory', 'r+');
|
||||
/** @noinspection PhpMethodParametersCountMismatchInspection */
|
||||
|
|
|
|||
|
|
@ -308,9 +308,23 @@ abstract class C128Abstract
|
|||
$cur_size = $location + (int) (substr($codeString, ($position - 1), 1));
|
||||
|
||||
if ($this->orientation === OrientationType::HORIZONTAL) {
|
||||
imagefilledrectangle($image, $location + $this->margin, 0 + $this->margin, $cur_size + $this->margin, $dimensions['height'] - $this->margin, ($position % 2 == 0 ? $white : $black));
|
||||
imagefilledrectangle(
|
||||
$image,
|
||||
$location + $this->margin,
|
||||
0 + $this->margin,
|
||||
$cur_size + $this->margin,
|
||||
$dimensions['height'] - $this->margin,
|
||||
($position % 2 == 0 ? $white : $black)
|
||||
);
|
||||
} else {
|
||||
imagefilledrectangle($image, 0 + $this->margin, $location + $this->margin, $dimensions['width'] - $this->margin, $cur_size + $this->margin, ($position % 2 == 0 ? $white : $black));
|
||||
imagefilledrectangle(
|
||||
$image,
|
||||
0 + $this->margin,
|
||||
$location + $this->margin,
|
||||
$dimensions['width'] - $this->margin,
|
||||
$cur_size + $this->margin,
|
||||
($position % 2 == 0 ? $white : $black)
|
||||
);
|
||||
}
|
||||
|
||||
$location = $cur_size;
|
||||
|
|
|
|||
|
|
@ -25,12 +25,19 @@ namespace phpOMS\Utils\Barcode;
|
|||
class HIBCC
|
||||
{
|
||||
private $identifier = '';
|
||||
|
||||
private $productId = '';
|
||||
|
||||
private $measureOfUnit = 0;
|
||||
|
||||
private $dateFormat = '';
|
||||
|
||||
private $expirationDate = null;
|
||||
|
||||
private $productionDate = null;
|
||||
|
||||
private $lot = '';
|
||||
|
||||
private $checkValue = 0;
|
||||
|
||||
public function __construct()
|
||||
|
|
@ -98,12 +105,12 @@ class HIBCC
|
|||
return $this->productionDate;
|
||||
}
|
||||
|
||||
public function setLOT(string $lot) /* : void */
|
||||
public function setLot(string $lot) /* : void */
|
||||
{
|
||||
$this->lot = $lot;
|
||||
}
|
||||
|
||||
public function getLOT() : string
|
||||
public function getLot() : string
|
||||
{
|
||||
return $this->lot;
|
||||
}
|
||||
|
|
@ -113,14 +120,13 @@ class HIBCC
|
|||
return $this->checkValue;
|
||||
}
|
||||
|
||||
public function getPrimaryDI() : string
|
||||
public function getPrimaryDi() : string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
public function getSecondaryDI() : string
|
||||
public function getSecondaryDi() : string
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,12 +83,10 @@ class LZW implements CompressionInterface
|
|||
|
||||
if ($dictionary[$k]) {
|
||||
$entry = $dictionary[$k];
|
||||
} else {
|
||||
if ($k !== $dictSize) {
|
||||
throw new \Exception('Wrong dictionary size!' . $k . '.' . $dictSize);
|
||||
}
|
||||
|
||||
} elseif ($k === $dictSize) {
|
||||
$entry = $w . $w[0];
|
||||
} else {
|
||||
throw new \Exception('Wrong dictionary size!' . $k . '.' . $dictSize);
|
||||
}
|
||||
|
||||
$result .= $entry;
|
||||
|
|
|
|||
|
|
@ -36,6 +36,13 @@ class Ip
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert ip to float
|
||||
*
|
||||
* @param string $ip IP
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function ip2Float(string $ip) : float
|
||||
{
|
||||
$split = explode('.', $ip);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,11 @@ class Numeric
|
|||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
/* public */ const ROMANS = ['M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50, 'XL' => 40, 'X' => 10, 'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1];
|
||||
/* public */ const ROMANS = [
|
||||
'M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100,
|
||||
'XC' => 90, 'L' => 50, 'XL' => 40, 'X' => 10,
|
||||
'IX' => 9, 'V' => 5, 'IV' => 4, 'I' => 1
|
||||
];
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
|
@ -72,7 +76,13 @@ class Numeric
|
|||
$newOutput = 0;
|
||||
|
||||
for ($i = 1; $i <= $numberLen; $i++) {
|
||||
$newOutput = bcadd((string) $newOutput, bcmul((string) array_search($number[$i - 1], $fromBase), bcpow((string) $fromLen, (string) ($numberLen - $i))));
|
||||
$newOutput = bcadd(
|
||||
(string) $newOutput,
|
||||
bcmul(
|
||||
(string) array_search($number[$i - 1], $fromBase),
|
||||
bcpow((string) $fromLen, (string) ($numberLen - $i))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return $newOutput;
|
||||
|
|
|
|||
|
|
@ -157,9 +157,14 @@ class Repository
|
|||
private function run(string $cmd) : array
|
||||
{
|
||||
if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
|
||||
$cmd = 'cd ' . escapeshellarg(dirname(Git::getBin())) . ' && ' . basename(Git::getBin()) . ' -C ' . escapeshellarg($this->path) . ' ' . $cmd;
|
||||
$cmd = 'cd ' . escapeshellarg(dirname(Git::getBin()))
|
||||
. ' && ' . basename(Git::getBin())
|
||||
. ' -C ' . escapeshellarg($this->path) . ' '
|
||||
. $cmd;
|
||||
} else {
|
||||
$cmd = escapeshellarg(Git::getBin()) . ' -C ' . escapeshellarg($this->path) . ' ' . $cmd;
|
||||
$cmd = escapeshellarg(Git::getBin())
|
||||
. ' -C ' . escapeshellarg($this->path) . ' '
|
||||
. $cmd;
|
||||
}
|
||||
|
||||
$pipes = [];
|
||||
|
|
@ -626,7 +631,7 @@ class Repository
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getLOC(array $extensions = ['*']) : int
|
||||
public function getLoc(array $extensions = ['*']) : int
|
||||
{
|
||||
$lines = $this->run('ls-files');
|
||||
$loc = 0;
|
||||
|
|
@ -750,7 +755,12 @@ class Repository
|
|||
}
|
||||
|
||||
$addremove = ['added' => 0, 'removed' => 0];
|
||||
$lines = $this->run('log --author=' . escapeshellarg($author->getName()) . ' --since="' . $start->format('Y-m-d') . '" --before="' . $end->format('Y-m-d') . '" --pretty=tformat: --numstat');
|
||||
$lines = $this->run(
|
||||
'log --author=' . escapeshellarg($author->getName())
|
||||
. ' --since="' . $start->format('Y-m-d')
|
||||
. '" --before="' . $end->format('Y-m-d')
|
||||
. '" --pretty=tformat: --numstat'
|
||||
);
|
||||
|
||||
foreach ($lines as $line) {
|
||||
$nums = explode(' ', $line);
|
||||
|
|
@ -801,7 +811,11 @@ class Repository
|
|||
$author = ' --author=' . escapeshellarg($author->getName()) . '';
|
||||
}
|
||||
|
||||
$lines = $this->run('git log --before="' . $end->format('Y-m-d') . '" --after="' . $start->format('Y-m-d') . '"' . $author . ' --reverse --date=short');
|
||||
$lines = $this->run(
|
||||
'git log --before="' . $end->format('Y-m-d')
|
||||
. '" --after="' . $start->format('Y-m-d') . '"'
|
||||
. $author . ' --reverse --date=short');
|
||||
|
||||
$count = count($lines);
|
||||
$commits = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -87,5 +87,4 @@ class Tag
|
|||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -25,7 +25,9 @@ class CsvDatabaseMapper implements IODatabaseMapper
|
|||
private $sources = [];
|
||||
|
||||
private $delimiter = ';';
|
||||
|
||||
private $enclosure = '"';
|
||||
|
||||
private $lineBuffer = 500;
|
||||
|
||||
private $autoIdentifyCsvSettings = false;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ use phpOMS\Utils\IO\IODatabaseMapper;
|
|||
class ExcelDatabaseMapper implements IODatabaseMapper
|
||||
{
|
||||
private $sources = [];
|
||||
|
||||
private $lineBuffer = 500;
|
||||
|
||||
public function addSource(string $source)
|
||||
|
|
@ -40,4 +41,3 @@ class ExcelDatabaseMapper implements IODatabaseMapper
|
|||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace phpOMS\Utils\IO\Zip;
|
||||
|
||||
/**
|
||||
* Archive interface
|
||||
*
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace phpOMS\Utils\IO\Zip;
|
||||
|
||||
/**
|
||||
* Zip class for handling zip files.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace phpOMS\Utils\IO\Zip;
|
||||
|
||||
/**
|
||||
* Zip class for handling zip files.
|
||||
*
|
||||
|
|
@ -44,7 +46,10 @@ class Tar implements ArchiveInterface
|
|||
}
|
||||
|
||||
if (is_dir($source)) {
|
||||
$files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($source), \RecursiveIteratorIterator::SELF_FIRST);
|
||||
$files = new \RecursiveIteratorIterator(
|
||||
new \RecursiveDirectoryIterator($source),
|
||||
\RecursiveIteratorIterator::SELF_FIRST
|
||||
);
|
||||
|
||||
foreach ($files as $file) {
|
||||
$file = str_replace('\\', '/', $file);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace phpOMS\Utils\IO\Zip;
|
||||
|
||||
/**
|
||||
* Zip class for handling zip files.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -27,9 +27,13 @@ use phpOMS\Stdlib\Queue\PriorityQueue;
|
|||
class JobQueue
|
||||
{
|
||||
private $queue = null;
|
||||
|
||||
private $run = true;
|
||||
|
||||
private $suspended = false;
|
||||
|
||||
private $isTerminating = true;
|
||||
|
||||
private $isDeamonized;
|
||||
|
||||
public function __construct()
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ class Markdown
|
|||
public static function parse(string $text) : string
|
||||
{
|
||||
self::$definitionData = [];
|
||||
|
||||
$text = str_replace(["\r\n", "\r"], "\n", $text);
|
||||
$text = trim($text, "\n");
|
||||
$lines = explode("\n", $text);
|
||||
|
|
@ -250,15 +251,13 @@ class Markdown
|
|||
return;
|
||||
}
|
||||
|
||||
$text = substr($lineArray['body'], 4);
|
||||
|
||||
return [
|
||||
'element' => [
|
||||
'name' => 'pre',
|
||||
'handler' => 'element',
|
||||
'text' => [
|
||||
'name' => 'code',
|
||||
'text' => $text,
|
||||
'text' => substr($lineArray['body'], 4),
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
@ -277,17 +276,13 @@ class Markdown
|
|||
}
|
||||
|
||||
$block['element']['text']['text'] .= "\n";
|
||||
$text = substr($lineArray['body'], 4);
|
||||
$block['element']['text']['text'] .= $text;
|
||||
$block['element']['text']['text'] .= substr($lineArray['body'], 4);
|
||||
|
||||
return $block;
|
||||
}
|
||||
|
||||
protected static function blockCodeComplete(array $block) : array
|
||||
{
|
||||
$text = $block['element']['text']['text'];
|
||||
$block['element']['text']['text'] = $text;
|
||||
|
||||
return $block;
|
||||
}
|
||||
|
||||
|
|
@ -344,9 +339,6 @@ class Markdown
|
|||
|
||||
protected static function blockFencedCodeComplete(array $block) : array
|
||||
{
|
||||
$text = $block['element']['text']['text'];
|
||||
$block['element']['text']['text'] = $text;
|
||||
|
||||
return $block;
|
||||
}
|
||||
|
||||
|
|
@ -365,12 +357,10 @@ class Markdown
|
|||
return;
|
||||
}
|
||||
|
||||
$text = trim($lineArray['text'], '# ');
|
||||
|
||||
return [
|
||||
'element' => [
|
||||
'name' => 'h' . min(6, $level),
|
||||
'text' => $text,
|
||||
'text' => trim($lineArray['text'], '# '),
|
||||
'handler' => 'line',
|
||||
],
|
||||
];
|
||||
|
|
@ -395,6 +385,10 @@ class Markdown
|
|||
|
||||
if ($name === 'ol') {
|
||||
$listStart = stristr($matches[0], '.', true);
|
||||
|
||||
if ($listStart !== '1') {
|
||||
$block['element']['attributes'] = ['start' => $listStart];
|
||||
}
|
||||
}
|
||||
|
||||
$block['li'] = [
|
||||
|
|
@ -421,12 +415,11 @@ class Markdown
|
|||
|
||||
unset($block['li']);
|
||||
|
||||
$text = isset($matches[1]) ? $matches[1] : '';
|
||||
$block['li'] = [
|
||||
'name' => 'li',
|
||||
'handler' => 'li',
|
||||
'text' => [
|
||||
$text,
|
||||
isset($matches[1]) ? $matches[1] : '',
|
||||
],
|
||||
];
|
||||
|
||||
|
|
@ -440,16 +433,14 @@ class Markdown
|
|||
}
|
||||
|
||||
if (!isset($block['interrupted'])) {
|
||||
$text = preg_replace('/^[ ]{0,4}/', '', $lineArray['body']);
|
||||
$block['li']['text'][] = $text;
|
||||
$block['li']['text'][] = preg_replace('/^[ ]{0,4}/', '', $lineArray['body']);
|
||||
|
||||
return $block;
|
||||
}
|
||||
|
||||
if ($lineArray['indent'] > 0) {
|
||||
$block['li']['text'][] = '';
|
||||
$text = preg_replace('/^[ ]{0,4}/', '', $lineArray['body']);
|
||||
$block['li']['text'][] = $text;
|
||||
$block['li']['text'][] = preg_replace('/^[ ]{0,4}/', '', $lineArray['body']);
|
||||
|
||||
unset($block['interrupted']);
|
||||
|
||||
|
|
@ -527,13 +518,12 @@ class Markdown
|
|||
return;
|
||||
}
|
||||
|
||||
$id = strtolower($matches[1]);
|
||||
$data = [
|
||||
'url' => $matches[2],
|
||||
'title' => $matches[3] ?? null,
|
||||
];
|
||||
|
||||
self::$definitionData['Reference'][$id] = $data;
|
||||
self::$definitionData['Reference'][strtolower($matches[1])] = $data;
|
||||
|
||||
return ['hidden' => true];
|
||||
}
|
||||
|
|
@ -578,17 +568,15 @@ class Markdown
|
|||
$headerCells = explode('|', $header);
|
||||
|
||||
foreach ($headerCells as $index => $headerCell) {
|
||||
$headerCell = trim($headerCell);
|
||||
$headerElement = [
|
||||
'name' => 'th',
|
||||
'text' => $headerCell,
|
||||
'text' => trim($headerCell),
|
||||
'handler' => 'line',
|
||||
];
|
||||
|
||||
if (isset($alignments[$index])) {
|
||||
$alignment = $alignments[$index];
|
||||
$headerElement['attributes'] = [
|
||||
'style' => 'text-align: ' . $alignment . ';',
|
||||
'style' => 'text-align: ' . $alignments[$index] . ';',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -640,11 +628,10 @@ class Markdown
|
|||
preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]+`|`)+/', $row, $matches);
|
||||
|
||||
foreach ($matches[0] as $index => $cell) {
|
||||
$cell = trim($cell);
|
||||
$element = [
|
||||
'name' => 'td',
|
||||
'handler' => 'line',
|
||||
'text' => $cell,
|
||||
'text' => trim($cell),
|
||||
];
|
||||
|
||||
if (isset($block['alignments'][$index])) {
|
||||
|
|
@ -656,12 +643,11 @@ class Markdown
|
|||
$elements[] = $element;
|
||||
}
|
||||
|
||||
$element = [
|
||||
$block['element']['text'][1]['text'][] = [
|
||||
'name' => 'tr',
|
||||
'handler' => 'elements',
|
||||
'text' => $elements,
|
||||
];
|
||||
$block['element']['text'][1]['text'][] = $element;
|
||||
|
||||
return $block;
|
||||
}
|
||||
|
|
@ -728,13 +714,11 @@ class Markdown
|
|||
return;
|
||||
}
|
||||
|
||||
$text = preg_replace("/[ ]*\n/", ' ', $matches[2]);
|
||||
|
||||
return [
|
||||
'extent' => strlen($matches[0]),
|
||||
'element' => [
|
||||
'name' => 'code',
|
||||
'text' => $text,
|
||||
'text' => preg_replace("/[ ]*\n/", ' ', $matches[2]),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
@ -843,6 +827,7 @@ class Markdown
|
|||
'title' => null,
|
||||
],
|
||||
];
|
||||
|
||||
$extent = 0;
|
||||
$remainder = $excerpt['text'];
|
||||
|
||||
|
|
@ -866,6 +851,7 @@ class Markdown
|
|||
if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches)) {
|
||||
$definition = strlen($matches[1]) ? $matches[1] : $element['text'];
|
||||
$definition = strtolower($definition);
|
||||
|
||||
$extent += strlen($matches[0]);
|
||||
} else {
|
||||
$definition = strtolower($element['text']);
|
||||
|
|
@ -876,6 +862,7 @@ class Markdown
|
|||
}
|
||||
|
||||
$def = self::$definitionData['Reference'][$definition];
|
||||
|
||||
$element['attributes']['href'] = $def['url'];
|
||||
$element['attributes']['title'] = $def['title'];
|
||||
}
|
||||
|
|
@ -954,15 +941,13 @@ class Markdown
|
|||
return;
|
||||
}
|
||||
|
||||
$url = $matches[1];
|
||||
|
||||
return [
|
||||
'extent' => strlen($matches[0]),
|
||||
'element' => [
|
||||
'name' => 'a',
|
||||
'text' => $url,
|
||||
'text' => $matches[1],
|
||||
'attributes' => [
|
||||
'href' => $url,
|
||||
'href' => $matches[1],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -24,7 +24,20 @@ namespace phpOMS\Utils\RnG;
|
|||
*/
|
||||
class LinearCongruentialGenerator
|
||||
{
|
||||
/**
|
||||
* BSD seed value.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static $bsdSeed = 0;
|
||||
|
||||
/**
|
||||
* MSVCRT seed value.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static $msvcrtSeed = 0;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -469,17 +469,18 @@ class Name
|
|||
'female' => ['none'],
|
||||
'male' => ['none'],
|
||||
'family' => [
|
||||
'Հովհաննիսյան', 'Հարությունյան', 'Սարգսյան', 'Խաչատրյան', 'Գրիգորյան',
|
||||
'আহমেদ', 'আলী', 'আক্তার', 'বন্দ্যোপাধ্যায়', 'নিক', 'ব্যাপারী', 'বড়ুয়া', 'বিশ্বাস', 'ভৌমিক', 'বসু',
|
||||
'王', '李', '张', '刘', '陈', '杨', '黄', '赵', '吴', '周', '徐', '孙', '马', '朱', '胡', '郭', '何', '高', '林', '罗',
|
||||
'כהן', 'לוי', 'מזרחי', 'פרץ', 'ביטון', 'דהן', 'אברהם', 'פרידמן', 'מלכה', 'אזולאי', 'כץ', 'יוסף', 'דוד', 'עמר', 'אוחיון',
|
||||
'김', '리', '박', '최', '정', '강', '조', '윤', '장', '림', '한', '신', '서', '권', '황', '안', '송', '홍', '고', '문', '손', '량',
|
||||
'Yılmaz', 'Kaya', 'Demir', 'Şahin', 'Çelik', 'Yıldız', 'Yıldırım', 'Öztürk', 'Aydın', 'Özdemir', 'Arslan', 'Doğan', 'Kılıç', 'Aslan', 'Çetin', 'Kara', 'Koç', 'Kurt', 'Özkan', 'Şimşek',
|
||||
'Հովհաննիսյան', 'Հարությունյան', 'Սարգսյան', 'Խաչատրյան', 'Գրիգորյան', 'আহমেদ', 'আলী', 'আক্তার',
|
||||
'বন্দ্যোপাধ্যায়', 'নিক', 'ব্যাপারী', 'বড়ুয়া', 'বিশ্বাস', 'ভৌমিক', 'বসু', '王', '李', '张', '刘', '陈', '杨',
|
||||
'黄', '赵', '吴', '周', '徐', '孙', '马', '朱', '胡', '郭', '何', '高', '林', '罗', 'כהן', 'לוי',
|
||||
'מזרחי', 'פרץ', 'ביטון', 'דהן', 'אברהם', 'פרידמן', 'מלכה', 'אזולאי', 'כץ', 'יוסף', 'דוד', 'עמר',
|
||||
'אוחיון', '김', '리', '박', '최', '정', '강', '조', '윤', '장', '림', '한', '신', '서', '권', '황',
|
||||
'안', '송', '홍', '고', '문', '손', '량', 'Yılmaz', 'Kaya', 'Demir', 'Şahin', 'Çelik', 'Yıldız',
|
||||
'Yıldırım', 'Öztürk', 'Aydın', 'Özdemir', 'Arslan', 'Doğan', 'Kılıç', 'Aslan', 'Çetin', 'Kara',
|
||||
'Koç', 'Kurt', 'Özkan', 'Şimşek',
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* Get a random string.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -55,7 +55,10 @@ class Phone
|
|||
$numberParts = substr_count($layout['struct'], '$');
|
||||
|
||||
for ($i = ($isInt ? 2 : 1); $i < $numberParts; $i++) {
|
||||
$numberString = str_replace('$' . $i, StringUtils::generateString($layout['size'][$i - 1][0], $layout['size'][$i - 1][1], '0123456789'), $numberString);
|
||||
$numberString = str_replace(
|
||||
'$' . $i, StringUtils::generateString($layout['size'][$i - 1][0], $layout['size'][$i - 1][1], '0123456789'),
|
||||
$numberString
|
||||
);
|
||||
}
|
||||
|
||||
return $numberString;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,9 @@ class StringUtils
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function generateString(int $min = 10, int $max = 10, string $charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ') : string
|
||||
public static function generateString(int $min = 10, int $max = 10,
|
||||
string $charset = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
||||
) : string
|
||||
{
|
||||
$length = mt_rand($min, $max);
|
||||
$charactersLength = strlen($charset);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Text
|
|||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static $words_west = [
|
||||
private static $wordsWest = [
|
||||
'lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipiscing', 'elit', 'curabitur', 'vel', 'hendrerit', 'libero',
|
||||
'eleifend', 'blandit', 'nunc', 'ornare', 'odio', 'ut', 'orci', 'gravida', 'imperdiet', 'nullam', 'purus', 'lacinia', 'a',
|
||||
'pretium', 'quis', 'congue', 'praesent', 'sagittis', 'laoreet', 'auctor', 'mauris', 'non', 'velit', 'eros', 'dictum',
|
||||
|
|
@ -131,7 +131,7 @@ class Text
|
|||
}
|
||||
|
||||
if ($words === null) {
|
||||
$words = self::$words_west;
|
||||
$words = self::$wordsWest;
|
||||
}
|
||||
|
||||
$punctuation = $this->generatePunctuation($length);
|
||||
|
|
|
|||
|
|
@ -168,7 +168,12 @@ class StringCompare
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function fuzzyMatch(string $s1, string $s2, float $phraseWeight = 0.5, float $wordWeight = 1, float $minWeight = 10, float $maxWeight = 1, float $lengthWeight = -0.3) : float
|
||||
public static function fuzzyMatch(
|
||||
string $s1, string $s2,
|
||||
float $phraseWeight = 0.5, float $wordWeight = 1,
|
||||
float $minWeight = 10, float $maxWeight = 1,
|
||||
float $lengthWeight = -0.3
|
||||
) : float
|
||||
{
|
||||
$phraseValue = self::valuePhrase($s1, $s2);
|
||||
$wordValue = self::valueWords($s1, $s2);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
declare(strict_types = 1);
|
||||
|
||||
namespace phpOMS\Utils\TaskSchedule;
|
||||
|
||||
use phpOMS\System\File\PathException;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -91,10 +91,10 @@ abstract class TaskAbstract
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(string $name, string $cmd = '') {
|
||||
public function __construct(string $name, string $cmd = '')
|
||||
{
|
||||
$this->id = $name;
|
||||
$this->command = $cmd;
|
||||
|
||||
$this->lastRunTime = new \DateTime('1900-01-01');
|
||||
$this->nextRunTime = new \DateTime('1900-01-01');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
|
||||
namespace phpOMS\Utils;
|
||||
|
||||
/**
|
||||
* Test utils.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace phpOMS\Validation\Base;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Validate date.
|
||||
*
|
||||
* @package Validation
|
||||
* @license OMS License 1.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,14 +17,14 @@ namespace phpOMS\Validation\Finance;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Validate BIC
|
||||
*
|
||||
* @package Validation
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class BIC extends ValidatorAbstract
|
||||
abstract class BIC extends ValidatorAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,9 +17,9 @@ namespace phpOMS\Validation\Finance;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Credit card validation
|
||||
*
|
||||
* @package Validation
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,9 +17,9 @@ namespace phpOMS\Validation\Finance;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Iban validation.
|
||||
*
|
||||
* @package Validation
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -19,7 +19,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
/**
|
||||
* Iban layout definition.
|
||||
*
|
||||
* @package Framework
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -19,7 +19,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
/**
|
||||
* Iban error type enum.
|
||||
*
|
||||
* @package Framework
|
||||
* @package phpOMS\Validation\Finance
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Network
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,14 +17,14 @@ namespace phpOMS\Validation\Network;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Validate email.
|
||||
*
|
||||
* @package Validation
|
||||
* @package phpOMS\Validation\Network
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Email extends ValidatorAbstract
|
||||
abstract class Email extends ValidatorAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Network
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,9 +17,9 @@ namespace phpOMS\Validation\Network;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Validate hostname.
|
||||
*
|
||||
* @package Validation
|
||||
* @package phpOMS\Validation\Network
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @package phpOMS\Validation\Network
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
@ -17,14 +17,14 @@ namespace phpOMS\Validation\Network;
|
|||
use phpOMS\Validation\ValidatorAbstract;
|
||||
|
||||
/**
|
||||
* Validator abstract.
|
||||
* Validate IP.
|
||||
*
|
||||
* @package Validation
|
||||
* @package phpOMS\Validation\Network
|
||||
* @license OMS License 1.0
|
||||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Ip extends ValidatorAbstract
|
||||
abstract class Ip extends ValidatorAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -58,11 +58,7 @@ abstract class ValidatorAbstract implements ValidatorInterface
|
|||
}
|
||||
|
||||
/**
|
||||
* Reset error information
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function resetError() /* : void */
|
||||
{
|
||||
|
|
|
|||
|
|
@ -54,4 +54,13 @@ interface ValidatorInterface
|
|||
* @since 1.0.0
|
||||
*/
|
||||
public static function getErrorCode() : int;
|
||||
|
||||
/**
|
||||
* Reset error information
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function resetError() /* : void */;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use phpOMS\Module\Exception\InvalidModuleException;
|
|||
use phpOMS\Module\Exception\InvalidThemeException;
|
||||
|
||||
/**
|
||||
* List view.
|
||||
* Basic view which can be used as basis for specific implementations.
|
||||
*
|
||||
* @package phpOMS\Views
|
||||
* @license OMS License 1.0
|
||||
|
|
@ -89,6 +89,8 @@ class View extends ViewAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Get data attached to view
|
||||
*
|
||||
* @param string $id Data Id
|
||||
*
|
||||
* @return mixed
|
||||
|
|
@ -101,6 +103,8 @@ class View extends ViewAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Set data of view
|
||||
*
|
||||
* @param string $id Data ID
|
||||
* @param mixed $data Data
|
||||
*
|
||||
|
|
@ -134,6 +138,8 @@ class View extends ViewAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Add data to view
|
||||
*
|
||||
* @param string $id Data ID
|
||||
* @param mixed $data Data
|
||||
*
|
||||
|
|
@ -226,6 +232,8 @@ class View extends ViewAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Get request of view
|
||||
*
|
||||
* @return RequestAbstract
|
||||
*
|
||||
* @since 1.0.0
|
||||
|
|
@ -236,6 +244,8 @@ class View extends ViewAbstract
|
|||
}
|
||||
|
||||
/**
|
||||
* Get response of view
|
||||
*
|
||||
* @return ResponseAbstract
|
||||
*
|
||||
* @since 1.0.0
|
||||
|
|
@ -244,5 +254,4 @@ class View extends ViewAbstract
|
|||
{
|
||||
return $this->response;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ namespace phpOMS\Views;
|
|||
use phpOMS\System\File\PathException;
|
||||
|
||||
/**
|
||||
* List view.
|
||||
* View Abstract.
|
||||
*
|
||||
* @package phpOMS\Views
|
||||
* @license OMS License 1.0
|
||||
|
|
@ -46,7 +46,7 @@ abstract class ViewAbstract implements \Serializable
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
|
@ -60,7 +60,7 @@ abstract class ViewAbstract implements \Serializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private static function viewSort(array $a, array $b) : int
|
||||
{
|
||||
|
|
@ -76,7 +76,7 @@ abstract class ViewAbstract implements \Serializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getTemplate() : string
|
||||
{
|
||||
|
|
@ -86,11 +86,11 @@ abstract class ViewAbstract implements \Serializable
|
|||
/**
|
||||
* Set the template.
|
||||
*
|
||||
* @param string $template
|
||||
* @param string $template View template
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setTemplate(string $template) /* : void */
|
||||
{
|
||||
|
|
@ -98,9 +98,11 @@ abstract class ViewAbstract implements \Serializable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns all views
|
||||
*
|
||||
* @return View[]
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getViews() : array
|
||||
{
|
||||
|
|
@ -108,11 +110,13 @@ abstract class ViewAbstract implements \Serializable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a specific view
|
||||
*
|
||||
* @param string $id View ID
|
||||
*
|
||||
* @return false|View
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getView($id)
|
||||
{
|
||||
|
|
@ -124,13 +128,13 @@ abstract class ViewAbstract implements \Serializable
|
|||
}
|
||||
|
||||
/**
|
||||
* Remove view.
|
||||
* Remove view bz id
|
||||
*
|
||||
* @param string $id View ID
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function removeView(string $id) : bool
|
||||
{
|
||||
|
|
@ -147,13 +151,13 @@ abstract class ViewAbstract implements \Serializable
|
|||
* Add view.
|
||||
*
|
||||
* @param string $id View ID
|
||||
* @param View $view
|
||||
* @param View $view View to add
|
||||
* @param int $order Order of view
|
||||
* @param bool $overwrite Overwrite existing view
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function addView(string $id, View $view, int $order = 0, bool $overwrite = true) : bool
|
||||
{
|
||||
|
|
@ -175,7 +179,7 @@ abstract class ViewAbstract implements \Serializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function serialize()
|
||||
{
|
||||
|
|
@ -191,7 +195,7 @@ abstract class ViewAbstract implements \Serializable
|
|||
*
|
||||
* @return array
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function toArray() : array
|
||||
{
|
||||
|
|
@ -211,11 +215,11 @@ abstract class ViewAbstract implements \Serializable
|
|||
/**
|
||||
* Get view/template response.
|
||||
*
|
||||
* @param array $data Data to pass to renderer
|
||||
* @param array ...$data Data to pass to renderer
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function render(...$data) : string
|
||||
{
|
||||
|
|
@ -249,11 +253,10 @@ abstract class ViewAbstract implements \Serializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0 <d.eichhorn@oms.com>
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function unserialize($raw)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
* PHP Version 7.1
|
||||
*
|
||||
* @package TBD
|
||||
* @author OMS Development Team <dev@oms.com>
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user