phpcs fixes

This commit is contained in:
Dennis Eichhorn 2018-02-16 15:28:07 +01:00
parent 11c7b0e626
commit 3059003191
39 changed files with 256 additions and 157 deletions

View File

@ -109,7 +109,7 @@ interface DataMapperInterface
/**
* Load.
*
* @param array $objects Objects to load
* @param array ...$objects Objects to load
*
* @return $this
*

View File

@ -145,6 +145,8 @@ abstract class GrammarAbstract
*
* @param string $prefix Table prefix
*
* @return void
*
* @since 1.0.0
*/
public function setTablePrefix(string $prefix) /* : void */

View File

@ -247,7 +247,7 @@ class Builder extends BuilderAbstract
/**
* Select.
*
* @param array $columns Columns
* @param array ...$columns Columns
*
* @return Builder
*
@ -273,7 +273,7 @@ class Builder extends BuilderAbstract
/**
* Select.
*
* @param array $columns Columns
* @param array ...$columns Columns
*
* @return Builder
*
@ -423,7 +423,7 @@ class Builder extends BuilderAbstract
/**
* From.
*
* @param string|array $tables Tables
* @param string|array ...$tables Tables
*
* @return Builder
*
@ -627,7 +627,7 @@ class Builder extends BuilderAbstract
/**
* Group by.
*
* @param string|array|\Closure $columns Grouping result
* @param string|array|\Closure ...$columns Grouping result
*
* @return Builder
*
@ -762,6 +762,8 @@ class Builder extends BuilderAbstract
/**
* Lock query.
*
* @return void
*
* @since 1.0.0
*/
public function lock()
@ -771,6 +773,8 @@ class Builder extends BuilderAbstract
/**
* Lock for update query.
*
* @return void
*
* @since 1.0.0
*/
public function lockUpdate()
@ -780,6 +784,8 @@ class Builder extends BuilderAbstract
/**
* Create query string.
*
* @return void
*
* @since 1.0.0
*/
public function __toString()
@ -790,6 +796,8 @@ class Builder extends BuilderAbstract
/**
* Find query.
*
* @return void
*
* @since 1.0.0
*/
public function find()
@ -814,6 +822,8 @@ class Builder extends BuilderAbstract
/**
* Select minimum.
*
* @return void
*
* @since 1.0.0
*/
public function min()
@ -823,6 +833,8 @@ class Builder extends BuilderAbstract
/**
* Select maximum.
*
* @return void
*
* @since 1.0.0
*/
public function max()
@ -832,6 +844,8 @@ class Builder extends BuilderAbstract
/**
* Select sum.
*
* @return void
*
* @since 1.0.0
*/
public function sum()
@ -841,6 +855,8 @@ class Builder extends BuilderAbstract
/**
* Select average.
*
* @return void
*
* @since 1.0.0
*/
public function avg()
@ -850,7 +866,7 @@ class Builder extends BuilderAbstract
/**
* Insert into columns.
*
* @param array $columns Columns
* @param array ...$columns Columns
*
* @return Builder
*
@ -892,7 +908,7 @@ class Builder extends BuilderAbstract
/**
* Values to insert.
*
* @param array $values Values
* @param array ...$values Values
*
* @return Builder
*
@ -928,7 +944,7 @@ class Builder extends BuilderAbstract
/**
* Values to insert.
*
* @param array $sets Values
* @param array ...$sets Values
*
* @return Builder
*
@ -961,7 +977,7 @@ class Builder extends BuilderAbstract
/**
* Update columns.
*
* @param array $tables Column names to update
* @param array ...$tables Column names to update
*
* @return Builder
*
@ -988,6 +1004,13 @@ class Builder extends BuilderAbstract
return $this;
}
/**
* Delete query
*
* @return Builder
*
* @since 1.0.0
*/
public function delete() : Builder
{
if ($this->isReadOnly) {
@ -1002,6 +1025,8 @@ class Builder extends BuilderAbstract
/**
* Increment value.
*
* @return void
*
* @since 1.0.0
*/
public function increment()
@ -1011,6 +1036,8 @@ class Builder extends BuilderAbstract
/**
* Decrement value.
*
* @return void
*
* @since 1.0.0
*/
public function decrement()
@ -1020,6 +1047,8 @@ class Builder extends BuilderAbstract
/**
* Join.
*
* @return Builder
*
* @since 1.0.0
*/
public function join($table1, $table2, $column1, $opperator, $column2)
@ -1030,6 +1059,8 @@ class Builder extends BuilderAbstract
/**
* Join where.
*
* @return void
*
* @since 1.0.0
*/
public function joinWhere()
@ -1039,6 +1070,8 @@ class Builder extends BuilderAbstract
/**
* Left join.
*
* @return void
*
* @since 1.0.0
*/
public function leftJoin()
@ -1048,6 +1081,8 @@ class Builder extends BuilderAbstract
/**
* Left join where.
*
* @return void
*
* @since 1.0.0
*/
public function leftJoinWhere()
@ -1057,6 +1092,8 @@ class Builder extends BuilderAbstract
/**
* Right join.
*
* @return void
*
* @since 1.0.0
*/
public function rightJoin()
@ -1066,6 +1103,8 @@ class Builder extends BuilderAbstract
/**
* Right join where.
*
* @return void
*
* @since 1.0.0
*/
public function rightJoinWhere()
@ -1087,6 +1126,8 @@ class Builder extends BuilderAbstract
/**
* On.
*
* @return void
*
* @since 1.0.0
*/
public function on()

View File

@ -63,7 +63,7 @@ class Dispatcher
* Dispatch controller.
*
* @param string|array|\Closure $controller Controller string
* @param mixed $data Data
* @param mixed ...$data Data
*
* @return array
*

View File

@ -194,7 +194,7 @@ class Money implements \Serializable
/**
* Add money.
*
* @param Money|string|int|float $value
* @param Money|string|int|float $value Value to add
*
* @return Money
*
@ -228,7 +228,7 @@ class Money implements \Serializable
/**
* Sub money.
*
* @param Money|string|int|float $value
* @param Money|string|int|float $value Value to subtract
*
* @return Money
*
@ -250,7 +250,7 @@ class Money implements \Serializable
/**
* Mult.
*
* @param int|float $value
* @param int|float $value Value to multiply with
*
* @return Money
*
@ -268,7 +268,7 @@ class Money implements \Serializable
/**
* Div.
*
* @param int|float $value
* @param int|float $value Value to divide by
*
* @return Money
*
@ -300,7 +300,7 @@ class Money implements \Serializable
/**
* Power.
*
* @param int|float $value
* @param int|float $value Value to power
*
* @return Money
*
@ -330,7 +330,7 @@ class Money implements \Serializable
/**
* Unserialize.
*
* @param mixed $value
* @param mixed $value Value to unserialize
*
* @return void
*

View File

@ -215,9 +215,9 @@ class FileLogger implements LoggerInterface
/**
* Interpolate context
*
* @param string $message
* @param array $context
* @param string $level
* @param string $message Log schema
* @param array $context Context to log
* @param string $level Log level
*
* @return string
*
@ -256,7 +256,7 @@ class FileLogger implements LoggerInterface
/**
* Write to file.
*
* @param string $message
* @param string $message Log message
*
* @return void
*
@ -285,14 +285,7 @@ class FileLogger implements LoggerInterface
}
/**
* System is unusable.
*
* @param string $message
* @param array $context
*
* @return null
*
* @since 1.0.0
* {@inheritdoc}
*/
public function emergency(string $message, array $context = []) /* : void */
{
@ -301,17 +294,7 @@ class FileLogger implements LoggerInterface
}
/**
* Action must be taken immediately.
*
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function alert(string $message, array $context = []) /* : void */
{
@ -320,16 +303,7 @@ class FileLogger implements LoggerInterface
}
/**
* Critical conditions.
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function critical(string $message, array $context = []) /* : void */
{
@ -338,15 +312,7 @@ class FileLogger implements LoggerInterface
}
/**
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function error(string $message, array $context = []) /* : void */
{
@ -355,17 +321,7 @@ class FileLogger implements LoggerInterface
}
/**
* Exceptional occurrences that are not errors.
*
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function warning(string $message, array $context = []) /* : void */
{
@ -374,14 +330,7 @@ class FileLogger implements LoggerInterface
}
/**
* Normal but significant events.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function notice(string $message, array $context = []) /* : void */
{
@ -390,16 +339,7 @@ class FileLogger implements LoggerInterface
}
/**
* Interesting events.
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function info(string $message, array $context = []) /* : void */
{
@ -408,14 +348,7 @@ class FileLogger implements LoggerInterface
}
/**
* Detailed debug information.
*
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function debug(string $message, array $context = []) /* : void */
{
@ -424,15 +357,7 @@ class FileLogger implements LoggerInterface
}
/**
* Logs with an arbitrary level.
*
* @param string $level
* @param string $message
* @param array $context
*
* @return void
*
* @since 1.0.0
* {@inheritdoc}
*/
public function log(string $level, string $message, array $context = []) /* : void */
{

View File

@ -28,8 +28,8 @@ interface LoggerInterface
/**
* System is unusable.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -41,8 +41,8 @@ interface LoggerInterface
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -53,8 +53,8 @@ interface LoggerInterface
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -64,8 +64,8 @@ interface LoggerInterface
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -77,8 +77,8 @@ interface LoggerInterface
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -87,8 +87,8 @@ interface LoggerInterface
/**
* Normal but significant events.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -99,8 +99,8 @@ interface LoggerInterface
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -109,8 +109,8 @@ interface LoggerInterface
/**
* Detailed debug information.
*
* @param string $message
* @param array $context
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/
@ -119,9 +119,9 @@ interface LoggerInterface
/**
* Logs with an arbitrary level.
*
* @param string $level
* @param string $message
* @param array $context
* @param string $level Log level/severeness
* @param string $message Logging message schema
* @param array $context Context to log
*
* @return null
*/

View File

@ -70,8 +70,8 @@ class Functions
*
* Example: (7, 2)
*
* @param int $n
* @param int $k
* @param int $n n
* @param int $k k
*
* @return int
*
@ -111,8 +111,8 @@ class Functions
/**
* Calculate ackermann function.
*
* @param int $m
* @param int $n
* @param int $m m
* @param int $n n
*
* @return int
*
@ -152,7 +152,7 @@ class Functions
/**
* Calculate inverse modular.
*
* @param int $a
* @param int $a a
* @param int $n Modulo
*
* @return int
@ -198,8 +198,8 @@ class Functions
/**
* Modular implementation for negative values.
*
* @param int $a
* @param int $b
* @param int $a a
* @param int $b b
*
* @return int
*

View File

@ -225,6 +225,8 @@ class Header extends HeaderAbstract
/**
* Push all headers.
*
* @return void
*
* @since 1.0.0
*/
public function push() /* : void */

View File

@ -46,28 +46,36 @@ interface UploadedFileInterface
/**
* Retrieve the file size.
*
* @return int
*
* @since 1.0.0
*/
public function getSize();
public function getSize() : int;
/**
* Retrieve the error associated with the uploaded file.
*
* @return int
*
* @since 1.0.0
*/
public function getError();
public function getError() : int;
/**
* Retrieve the filename sent by the client.
*
* @return string
*
* @since 1.0.0
*/
public function getClientFilename();
public function getClientFilename() : string;
/**
* Retrieve the media type sent by the client.
*
* @return string
*
* @since 1.0.0
*/
public function getClientMediaType();
public function getClientMediaType() : string;
}

View File

@ -102,6 +102,8 @@ class Head implements RenderableInterface
/**
* Set page meta.
*
* @return Meta
*
* @since 1.0.0
*/
public function getMeta() : Meta

View File

@ -111,6 +111,8 @@ class InfoManager
* @param mixed $data Scalar or array of data to set
* @param string $delim Delimiter of path
*
* @return void
*
* @since 1.0.0
*/
public function set(string $path, $data, string $delim = '/') /* : void */

View File

@ -95,6 +95,8 @@ class ModuleFactory
*
* @param ModuleAbstract $obj Current module
*
* @return void
*
* @since 1.0.0
*/
private static function registerRequesting(ModuleAbstract $obj) /* : void */
@ -113,6 +115,8 @@ class ModuleFactory
*
* @param ModuleAbstract $obj Current module
*
* @return void
*
* @since 1.0.0
*/
private static function registerProvided(ModuleAbstract $obj) /* : void */

View File

@ -210,6 +210,15 @@ class ModuleManager
return $this->active;
}
/**
* Is module active
*
* @param string $module Module name
*
* @return bool
*
* @since 1.0.0
*/
public function isActive(string $module) : bool
{
return in_array($module, $this->getActiveModules(false));
@ -294,7 +303,7 @@ class ModuleManager
*/
private function loadInfo(string $module) : InfoManager
{
$path = realpath($oldPath = $this->modulePath . '/' . $module . '/' . 'info.json');
$path = realpath($oldPath = $this->modulePath . '/' . $module . '/info.json');
if ($path === false) {
throw new PathException($oldPath);

View File

@ -263,18 +263,7 @@ class PackageManager
private function authenticate(string $signedHash, string $rawHash) : bool
{
// https://3v4l.org/PN9Xl
$publicKey = 'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjr73rerPRq3ZwWmrUKsN
Bjg8Wy5lnyWu9HCRQz0fix6grz+NOOsr4m/jazB2knfdtn7fi5XifbIbmrNJY8e6
musCJ0FTgJPVBqVk7XAFVSRe2gUaCPZrTPtfZ00C3cynjwTlxSdjNtU9N0ZAo17s
VWghH8ki4T2d5Mg1erGOtMJzp5yw47UHUa+KbxUmUV25WMcRYyi7+itD2xANF2AE
+PQZT1dSEU8++NI+zT6tXD/Orv5ikk0whoVqvo6duWejx5n5cpJB4EiMo4Q7epbw
9uMo9uIKqgQ9y3KdT36GBQkBErFf1dhf8KYJBGYMhO1UJE11dY3XrA7Ij1+zK+ai
duQHOc5EMClUGZQzCJAIU5lj4WEHQ4Lo0gop+fx9hzuBTDxdyOjWSJzkqyuWMkq3
zEpRBay785iaglaue9XDLee58wY+toiGLBfXe73gsbDqDSOll+cQYNjrronVN7sU
Dc2WyTIVW1Z8KFwK10D3SW0oEylCaGLtClyyihuW7JPu/8Or1Zjf87W82XTm31Fp
YkRgoEMDtVHZq0N2eHpLz1L8zKyT0ogZYN5eH5VlGrPcpwbAludNKlgAJ0hrgED1
9YsCBLwJQpFa4VZP7A5a/Qcw8EFAvNkgaPpBbAAtWoDbyOQsez6Jsdan/enfZ18+
LL7qOB5oFFM/pKlTIeVS+UsCAwEAAQ==';
$publicKey = 'MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAjr73rerPRq3ZwWmrUKsNBjg8Wy5lnyWu9HCRQz0fix6grz+NOOsr4m/jazB2knfdtn7fi5XifbIbmrNJY8e6musCJ0FTgJPVBqVk7XAFVSRe2gUaCPZrTPtfZ00C3cynjwTlxSdjNtU9N0ZAo17sVWghH8ki4T2d5Mg1erGOtMJzp5yw47UHUa+KbxUmUV25WMcRYyi7+itD2xANF2AE+PQZT1dSEU8++NI+zT6tXD/Orv5ikk0whoVqvo6duWejx5n5cpJB4EiMo4Q7epbw9uMo9uIKqgQ9y3KdT36GBQkBErFf1dhf8KYJBGYMhO1UJE11dY3XrA7Ij1+zK+aiduQHOc5EMClUGZQzCJAIU5lj4WEHQ4Lo0gop+fx9hzuBTDxdyOjWSJzkqyuWMkq3zEpRBay785iaglaue9XDLee58wY+toiGLBfXe73gsbDqDSOll+cQYNjrronVN7sUDc2WyTIVW1Z8KFwK10D3SW0oEylCaGLtClyyihuW7JPu/8Or1Zjf87W82XTm31FpYkRgoEMDtVHZq0N2eHpLz1L8zKyT0ogZYN5eH5VlGrPcpwbAludNKlgAJ0hrgED19YsCBLwJQpFa4VZP7A5a/Qcw8EFAvNkgaPpBbAAtWoDbyOQsez6Jsdan/enfZ18+LL7qOB5oFFM/pKlTIeVS+UsCAwEAAQ==';
$unsignedHash = \sodium_crypto_sign_open($signedHash, $publicKey);
return $unsignedHash === $rawHash;

View File

@ -24,6 +24,12 @@ namespace phpOMS\Security;
*/
class PhpCode
{
/**
* Deprecated functions
*
* @var array
* @since 1.0.0
*/
public static $deprecatedFunctions = [
'apache_child_terminate', 'apache_setenv', 'define_syslog_variables', 'escapeshellarg', 'escapeshellcmd', 'eval',
'exec', 'fp', 'fput', 'ftp_connect', 'ftp_exec', 'ftp_get', 'ftp_login', 'ftp_nb_fput', 'ftp_put', 'ftp_raw',
@ -33,16 +39,43 @@ class PhpCode
'posix_setuid', 'posix_uname', 'proc_close', 'proc_get_status',
];
/**
* Normalize source code for inspection
*
* @param string $source Source code
*
* @return string
*
* @since 1.0.0
*/
private static function normalizeSource(string $source) : string
{
return str_replace(["\n", "\r\n", "\r", "\t"], ['', '', '', ' '], $source);
}
/**
* Check if has source unicode
*
* @param string $source Source code
*
* @return bool
*
* @since 1.0.0
*/
public static function hasUnicode(string $source) : bool
{
return (bool) preg_match('/[^\x20-\x7f]/', $source) || !mb_check_encoding($source, 'ASCII');
}
/**
* Check if function is disabled
*
* @param array $functions Functions to check
*
* @return bool
*
* @since 1.0.0
*/
public static function isDisabled(array $functions) : bool
{
$disabled = ini_get('disable_functions');
@ -58,12 +91,21 @@ class PhpCode
return true;
}
/**
* Check if has deprecated functions
*
* @param string $source Source code
*
* @return bool
*
* @since 1.0.0
*/
public static function hasDeprecatedFunction(string $source) : bool
{
$source = self::normalizeSource($source);
foreach (self::$deprecatedFunctions as $function) {
if (preg_match('/' . $function . '\s*\(' . '/', $source) === 1) {
if (preg_match('/' . $function . '\s*\(/', $source) === 1) {
return true;
}
}

View File

@ -325,7 +325,9 @@ interface ContainerInterface
* This is used in order to initialize all resources.
* Sub-sub-resources are only initialized once they are needed.
*
* @return void
*
* @since 1.0.0
*/
public function index();
public function index(); /* : void */
}

View File

@ -120,7 +120,7 @@ interface UriInterface
/**
* Set root path.
*
* @param string $uri Uri
* @param string $root Root path
*
* @return void
*

View File

@ -232,7 +232,7 @@ class ArrayUtils
$str .= $key . ' => ' . $value . ', ';
break;
case 'string':
$str .= $key . ' => \'' . $value . '\'' . ', ';
$str .= $key . ' => \'' . $value . '\', ';
break;
case 'object':
$str .= $key . ' => ' . get_class($value['default']) . '()';

View File

@ -85,6 +85,8 @@ class C128a extends C128Abstract
*
* @param string $content Content to encrypt
*
* @return void
*
* @todo : add mirror parameter
*
* @since 1.0.0

View File

@ -54,6 +54,8 @@ class Currency
*
* Can be used in order to refresh them. Be careful currency rates only get updated once a day from the ECB website.
*
* @return void
*
* @since 1.0.0
*/
public static function resetCurrencies() /* : void */

View File

@ -61,6 +61,8 @@ class Branch
*
* @param string $name Branch name
*
* @return void
*
* @since 1.0.0
*/
public function setName(string $name) /* : void */

View File

@ -153,6 +153,8 @@ class Commit
*
* @param string $message Commit message
*
* @return void
*
* @since 1.0.0
*/
public function setMessage(string $message) /* : void */
@ -209,6 +211,8 @@ class Commit
*
* @param Author $author Commit author
*
* @return void
*
* @since 1.0.0
*/
public function setAuthor(Author $author) /* : void */
@ -233,6 +237,8 @@ class Commit
*
* @param Branch $branch Commit branch
*
* @return void
*
* @since 1.0.0
*/
public function setBranch(Branch $branch) /* : void */
@ -257,6 +263,8 @@ class Commit
*
* @param Tag $tag Commit tag
*
* @return void
*
* @since 1.0.0
*/
public function setTag(Tag $tag) /* : void */
@ -307,6 +315,8 @@ class Commit
*
* @param Repository $repository Commit repository
*
* @return void
*
* @since 1.0.0
*/
public function setRepository(Repository $repository) /* : void */
@ -322,6 +332,8 @@ class Commit
* @param string $old Old line
* @param string $new New line
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0

View File

@ -74,6 +74,8 @@ class Git
*
* @param string $path Git path
*
* @return void
*
* @throws PathException
*
* @since 1.0.0

View File

@ -77,6 +77,8 @@ class Repository
*
* @param string $path Path to repository
*
* @return void
*
* @throws PathException
*
* @since 1.0.0

View File

@ -77,13 +77,13 @@ class Text
/**
* Set if the text should have formatting.
*
* @param bool $hasFormatting
* @param bool $hasFormatting Text has formatting.
*
* @return void
*
* @since 1.0.0
*/
public function setFormatting($hasFormatting) /* : void */
public function setFormatting(bool $hasFormatting) /* : void */
{
$this->hasFormatting = $hasFormatting;
}
@ -91,13 +91,13 @@ class Text
/**
* Set if the text should have paragraphs.
*
* @param bool $hasParagraphs
* @param bool $hasParagraphs Text has paragraphs
*
* @return void
*
* @since 1.0.0
*/
public function setParagraphs($hasParagraphs) /* : void */
public function setParagraphs(bool $hasParagraphs) /* : void */
{
$this->hasParagraphs = $hasParagraphs;
}

View File

@ -110,6 +110,8 @@ class Interval implements \Serializable
*
* @param string $serialized String to unserialize
*
* @return void
*
* @since 1.0.0
*/
public function unserialize($serialized)
@ -279,6 +281,8 @@ class Interval implements \Serializable
* @param int $step Step
* @param bool $any Any
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0
@ -342,6 +346,8 @@ class Interval implements \Serializable
* @param int $step Step
* @param bool $any Any
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0
@ -380,6 +386,8 @@ class Interval implements \Serializable
* @param bool $last Last
* @param int $nearest Nearest day
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0
@ -447,6 +455,8 @@ class Interval implements \Serializable
* @param bool $any Any
* @param bool $last Last
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0
@ -509,6 +519,8 @@ class Interval implements \Serializable
* @param int $step Step
* @param bool $any Any
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0
@ -545,6 +557,8 @@ class Interval implements \Serializable
* @param int $step Step
* @param bool $any Any
*
* @return void
*
* @throws \Exception
*
* @since 1.0.0

View File

@ -53,6 +53,8 @@ abstract class SchedulerAbstract
*
* @param string $path Git path
*
* @return void
*
* @throws PathException
*
* @since 1.0.0
@ -92,7 +94,7 @@ abstract class SchedulerAbstract
/**
* Create task
*
* @param TaskAbstract
* @param TaskAbstract $task Task to create
*
* @return void
*

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class Barcode extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class Barcode11 extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class Barcode128 extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class Barcode25 extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class Barcode39 extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class Barcode93 extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class BarcodeCodebar extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class BarcodeDatamatrix extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class BarcodeEAN extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class BarcodeMSI extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{

View File

@ -18,6 +18,9 @@ use phpOMS\Validation\ValidatorAbstract;
class QrCode extends ValidatorAbstract
{
/**
* {@inheritdoc}
*/
public static function isValid($value, array $constraints = null)
{