fix const alignment

This commit is contained in:
Dennis Eichhorn 2020-09-01 07:38:03 +02:00
parent 463b2a6558
commit 28c9ec6a6c
65 changed files with 1401 additions and 1401 deletions

View File

@ -26,11 +26,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class AccountStatus extends Enum
{
public const ACTIVE = 1;
public const ACTIVE = 1;
public const INACTIVE = 2;
public const TIMEOUT = 3;
public const TIMEOUT = 3;
public const BANNED = 4;
public const BANNED = 4;
}

View File

@ -26,7 +26,7 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class AccountType extends Enum
{
public const USER = 0;
public const USER = 0;
public const GROUP = 1;
}

View File

@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class GroupStatus extends Enum
{
public const ACTIVE = 1;
public const ACTIVE = 1;
public const INACTIVE = 2;
public const HIDDEN = 4;
public const HIDDEN = 4;
}

View File

@ -28,7 +28,7 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class PermissionOwner extends Enum
{
public const GROUP = 1;
public const GROUP = 1;
public const ACCOUNT = 2;
}

View File

@ -26,15 +26,15 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class PermissionType extends Enum
{
public const NONE = 1; // No permission
public const NONE = 1; // No permission
public const READ = 2; // Is able to read models/data
public const READ = 2; // Is able to read models/data
public const CREATE = 4; // Is able to create models/data
public const CREATE = 4; // Is able to create models/data
public const MODIFY = 8; // Is able to modify models/data
public const MODIFY = 8; // Is able to modify models/data
public const DELETE = 16; // Is able to delete models/data
public const DELETE = 16; // Is able to delete models/data
public const PERMISSION = 32; // Is able to change permissions
}

View File

@ -26,17 +26,17 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class HeuristicType extends Enum
{
public const MANHATTAN = 1;
public const MANHATTAN = 1;
public const EUCLIDEAN = 2;
public const EUCLIDEAN = 2;
public const OCTILE = 4;
public const OCTILE = 4;
public const CHEBYSHEV = 8;
public const CHEBYSHEV = 8;
public const MINKOWSKI = 16;
public const MINKOWSKI = 16;
public const CANBERRA = 32;
public const CANBERRA = 32;
public const BRAY_CURTIS = 64;
}

View File

@ -26,11 +26,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class MovementType extends Enum
{
public const DIAGONAL = 1;
public const DIAGONAL = 1;
public const STRAIGHT = 2;
public const STRAIGHT = 2;
public const DIAGONAL_ONE_OBSTACLE = 4;
public const DIAGONAL_NO_OBSTACLE = 8;
public const DIAGONAL_NO_OBSTACLE = 8;
}

View File

@ -26,7 +26,7 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class SortOrder extends Enum
{
public const ASC = 1;
public const ASC = 1;
public const DESC = 2;
}

View File

@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class AssetType extends Enum
{
public const CSS = 0;
public const CSS = 0;
public const JS = 1;
public const JS = 1;
public const JSLATE = 2;
}

View File

@ -28,25 +28,25 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class LoginReturnType extends Enum
{
public const OK = 0; /* Everything is ok and the user got authed */
public const OK = 0; /* Everything is ok and the user got authed */
public const FAILURE = -1; /* Authentication resulted in a unexpected failure */
public const FAILURE = -1; /* Authentication resulted in a unexpected failure */
public const WRONG_PASSWORD = -2; /* Authentication with wrong password */
public const WRONG_PASSWORD = -2; /* Authentication with wrong password */
public const WRONG_USERNAME = -3; /* Authentication with unknown user */
public const WRONG_USERNAME = -3; /* Authentication with unknown user */
public const WRONG_PERMISSION = -4; /* User doesn't have permission to authenticate */
public const WRONG_PERMISSION = -4; /* User doesn't have permission to authenticate */
public const NOT_ACTIVATED = -5; /* The user is not activated yet */
public const NOT_ACTIVATED = -5; /* The user is not activated yet */
public const WRONG_INPUT_EXCEEDED = -6; /* Too many wrong logins recently */
public const TIMEOUTED = -7; /* User received a timeout and can not log in until a certain date */
public const TIMEOUTED = -7; /* User received a timeout and can not log in until a certain date */
public const BANNED = -8; /* User is banned */
public const BANNED = -8; /* User is banned */
public const INACTIVE = -9; /* User is inactive */
public const INACTIVE = -9; /* User is inactive */
public const EMPTY_PASSWORD = -10; /* Empty password in database */
public const EMPTY_PASSWORD = -10; /* Empty password in database */
}

View File

@ -28,11 +28,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class CacheStatus extends Enum
{
public const OK = 0;
public const OK = 0;
public const FAILURE = 1;
public const FAILURE = 1;
public const READONLY = 2;
public const CLOSED = 3;
public const CLOSED = 3;
}

View File

@ -28,11 +28,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class CacheType extends Enum
{
public const FILE = 'file';
public const FILE = 'file';
public const MEMCACHED = 'mem';
public const REDIS = 'redis';
public const REDIS = 'redis';
public const UNDEFINED = 'na';
}

View File

@ -28,19 +28,19 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class CacheValueType extends Enum
{
public const _INT = 0; /* Data is integer */
public const _INT = 0; /* Data is integer */
public const _STRING = 1; /* Data is string */
public const _STRING = 1; /* Data is string */
public const _ARRAY = 2; /* Data is array */
public const _ARRAY = 2; /* Data is array */
public const _SERIALIZABLE = 3; /* Data implements \Serializable */
public const _SERIALIZABLE = 3; /* Data implements \Serializable */
public const _FLOAT = 4; /* Data is float */
public const _FLOAT = 4; /* Data is float */
public const _BOOL = 5; /* Data is bool */
public const _BOOL = 5; /* Data is bool */
public const _JSONSERIALIZABLE = 6; /* Data implements \JsonSerializable */
public const _NULL = 7; /* Data is null */
public const _NULL = 7; /* Data is null */
}

View File

@ -28,15 +28,15 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class DatabaseStatus extends Enum
{
public const OK = 0; /* Database connection successful */
public const OK = 0; /* Database connection successful */
public const MISSING_DATABASE = 1; /* Couldn't find database */
public const MISSING_TABLE = 2; /* One of the core tables couldn't be found */
public const MISSING_TABLE = 2; /* One of the core tables couldn't be found */
public const FAILURE = 3; /* Unknown failure */
public const FAILURE = 3; /* Unknown failure */
public const READONLY = 4; /* Database connection is in readonly (but ok) */
public const READONLY = 4; /* Database connection is in readonly (but ok) */
public const CLOSED = 5; /* Database connection closed */
public const CLOSED = 5; /* Database connection closed */
}

View File

@ -28,13 +28,13 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class DatabaseType extends Enum
{
public const MYSQL = 'mysql'; /* MySQL */
public const MYSQL = 'mysql'; /* MySQL */
public const SQLITE = 'sqlite'; /* SQLITE */
public const SQLITE = 'sqlite'; /* SQLITE */
public const PGSQL = 'pgsql'; /* PostgreSQL */
public const PGSQL = 'pgsql'; /* PostgreSQL */
public const SQLSRV = 'mssql'; /* Microsoft SQL Server */
public const SQLSRV = 'mssql'; /* Microsoft SQL Server */
public const UNDEFINED = 'undefined';
}

View File

@ -26,27 +26,27 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class JoinType extends Enum
{
public const JOIN = 'JOIN';
public const JOIN = 'JOIN';
public const LEFT_JOIN = 'LEFT JOIN';
public const LEFT_JOIN = 'LEFT JOIN';
public const LEFT_OUTER_JOIN = 'LEFT OUTER JOIN';
public const LEFT_OUTER_JOIN = 'LEFT OUTER JOIN';
public const LEFT_INNER_JOIN = 'LEFT INNER JOIN';
public const LEFT_INNER_JOIN = 'LEFT INNER JOIN';
public const RIGHT_JOIN = 'RIGHT JOIN';
public const RIGHT_JOIN = 'RIGHT JOIN';
public const RIGHT_OUTER_JOIN = 'RIGHT OUTER JOIN';
public const RIGHT_INNER_JOIN = 'RIGHT INNER JOIN';
public const OUTER_JOIN = 'OUTER JOIN';
public const OUTER_JOIN = 'OUTER JOIN';
public const INNER_JOIN = 'INNER JOIN';
public const INNER_JOIN = 'INNER JOIN';
public const CROSS_JOIN = 'CROSS JOIN';
public const CROSS_JOIN = 'CROSS JOIN';
public const FULL_JOIN = 'FULL JOIN';
public const FULL_JOIN = 'FULL JOIN';
public const FULL_OUTER_JOIN = 'FULL OUTER JOIN';
public const FULL_OUTER_JOIN = 'FULL OUTER JOIN';
}

View File

@ -36,7 +36,7 @@ abstract class QueryType extends Enum
public const RANDOM = 4;
public const RAW = 5;
public const RAW = 5;
public const NONE = 6;
public const NONE = 6;
}

View File

@ -28,17 +28,17 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class RelationType extends Enum
{
public const NONE = 1;
public const NONE = 1;
public const NEWEST = 2;
public const NEWEST = 2;
public const BELONGS_TO = 4;
public const OWNS_ONE = 8;
public const OWNS_ONE = 8;
public const HAS_MANY = 16;
public const HAS_MANY = 16;
public const ALL = 32;
public const ALL = 32;
public const REFERENCE = 64;
public const REFERENCE = 64;
}

View File

@ -30,13 +30,13 @@ abstract class QueryType extends DefaultQueryType
{
public const DROP_DATABASE = 128;
public const ALTER = 129;
public const ALTER = 129;
public const TABLES = 130;
public const TABLES = 130;
public const FIELDS = 131;
public const FIELDS = 131;
public const CREATE_TABLE = 132;
public const CREATE_TABLE = 132;
public const DROP_TABLE = 133;
public const DROP_TABLE = 133;
}

View File

@ -31,9 +31,9 @@ final class FileLogger implements LoggerInterface
{
public const MSG_BACKTRACE = '{datetime}; {level}; {ip}; {message}; {backtrace}';
public const MSG_FULL = '{datetime}; {level}; {ip}; {line}; {version}; {os}; {path}; {message}; {file}; {backtrace}';
public const MSG_FULL = '{datetime}; {level}; {ip}; {line}; {version}; {os}; {path}; {message}; {file}; {backtrace}';
public const MSG_SIMPLE = '{datetime}; {level}; {ip}; {message};';
public const MSG_SIMPLE = '{datetime}; {level}; {ip}; {message};';
/**
* Timing array.

View File

@ -28,17 +28,17 @@ abstract class LogLevel extends Enum
{
public const EMERGENCY = 'emergency';
public const ALERT = 'alert';
public const ALERT = 'alert';
public const CRITICAL = 'critical';
public const CRITICAL = 'critical';
public const ERROR = 'error';
public const ERROR = 'error';
public const WARNING = 'warning';
public const WARNING = 'warning';
public const NOTICE = 'notice';
public const NOTICE = 'notice';
public const INFO = 'info';
public const INFO = 'info';
public const DEBUG = 'debug';
public const DEBUG = 'debug';
}

View File

@ -26,21 +26,21 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class NumberType extends Enum
{
public const N_INTEGER = 0;
public const N_INTEGER = 0;
public const N_NATURAL = 1;
public const N_NATURAL = 1;
public const N_EVEN = 2;
public const N_EVEN = 2;
public const N_UNEVEN = 4;
public const N_UNEVEN = 4;
public const N_PRIME = 8;
public const N_PRIME = 8;
public const N_REAL = 16;
public const N_REAL = 16;
public const N_RATIONAL = 32;
public const N_RATIONAL = 32;
public const N_IRRATIONAL = 64;
public const N_COMPLEX = 128;
public const N_COMPLEX = 128;
}

View File

@ -26,7 +26,7 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class DerivativeType extends Enum
{
public const FIRST = 1;
public const FIRST = 1;
public const SECOND = 2;
}

View File

@ -27,27 +27,27 @@ use phpOMS\Math\Matrix\Exception\InvalidDimensionException;
*/
final class Average
{
public const MA3 = [1 / 3, 1 / 3];
public const MA3 = [1 / 3, 1 / 3];
public const MA5 = [0.2, 0.2, 0.2];
public const MA5 = [0.2, 0.2, 0.2];
public const MA2X12 = [5 / 6, 5 / 6, 5 / 6, 5 / 6, 5 / 6, 5 / 6, 0.42];
public const MA3X3 = [1 / 3, 2 / 9, 1 / 9];
public const MA3X3 = [1 / 3, 2 / 9, 1 / 9];
public const MA3X5 = [0.2, 0.2, 2 / 15, 4 / 6];
public const MA3X5 = [0.2, 0.2, 2 / 15, 4 / 6];
public const MAS15 = [0.231, 0.209, 0.144, 2 / 3, 0.009, -0.016, -0.019, -0.009];
public const MAS15 = [0.231, 0.209, 0.144, 2 / 3, 0.009, -0.016, -0.019, -0.009];
public const MAS21 = [0.171, 0.163, 0.134, 0.37, 0.51, 0.017, -0.006, -0.014, -0.014, -0.009, -0.003];
public const MAS21 = [0.171, 0.163, 0.134, 0.37, 0.51, 0.017, -0.006, -0.014, -0.014, -0.009, -0.003];
public const MAH5 = [0.558, 0.294, -0.73];
public const MAH5 = [0.558, 0.294, -0.73];
public const MAH9 = [0.330, 0.267, 0.119, -0.010, -0.041];
public const MAH9 = [0.330, 0.267, 0.119, -0.010, -0.041];
public const MAH13 = [0.240, 0.214, 0.147, 0.66, 0, -0.028, -0.019];
public const MAH13 = [0.240, 0.214, 0.147, 0.66, 0, -0.028, -0.019];
public const MAH23 = [0.148, 0.138, 0.122, 0.097, 0.068, 0.039, 0.013, -0.005, -0.015, -0.016, -0.011, -0.004];
public const MAH23 = [0.148, 0.138, 0.122, 0.097, 0.068, 0.039, 0.013, -0.005, -0.015, -0.016, -0.011, -0.004];
/**
* Constructor.

View File

@ -28,27 +28,27 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class BrowserType extends Enum
{
public const IE = 'msie'; /* Internet Explorer */
public const IE = 'msie'; /* Internet Explorer */
public const EDGE = 'edge'; /* Internet Explorer Edge 20+ */
public const EDGE = 'edge'; /* Internet Explorer Edge 20+ */
public const FIREFOX = 'firefox'; /* Firefox */
public const FIREFOX = 'firefox'; /* Firefox */
public const SAFARI = 'safari'; /* Safari */
public const SAFARI = 'safari'; /* Safari */
public const CHROME = 'chrome'; /* Chrome */
public const CHROME = 'chrome'; /* Chrome */
public const OPERA = 'opera'; /* Opera */
public const OPERA = 'opera'; /* Opera */
public const NETSCAPE = 'netscape'; /* Netscape */
public const NETSCAPE = 'netscape'; /* Netscape */
public const MAXTHON = 'maxthon'; /* Maxthon */
public const MAXTHON = 'maxthon'; /* Maxthon */
public const KONQUEROR = 'konqueror'; /* Konqueror */
public const HANDHELD = 'mobile'; /* Handheld Browser */
public const HANDHELD = 'mobile'; /* Handheld Browser */
public const BLINK = 'blink'; /* Blink Browser */
public const BLINK = 'blink'; /* Blink Browser */
public const UNKNOWN = 'unknown';
public const UNKNOWN = 'unknown';
}

View File

@ -28,51 +28,51 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class OSType extends Enum
{
public const WINDOWS_81 = 'windows nt 6.3'; /* Windows 8.1 */
public const WINDOWS_81 = 'windows nt 6.3'; /* Windows 8.1 */
public const WINDOWS_8 = 'windows nt 6.2'; /* Windows 8 */
public const WINDOWS_8 = 'windows nt 6.2'; /* Windows 8 */
public const WINDOWS_7 = 'windows nt 6.1'; /* Windows 7 */
public const WINDOWS_7 = 'windows nt 6.1'; /* Windows 7 */
public const WINDOWS_VISTA = 'windows nt 6.0'; /* Windows Vista */
public const WINDOWS_VISTA = 'windows nt 6.0'; /* Windows Vista */
public const WINDOWS_SERVER = 'windows nt 5.2'; /* Windows Server 2003/XP x64 */
public const WINDOWS_XP = 'windows nt 5.1'; /* Windows XP */
public const WINDOWS_XP = 'windows nt 5.1'; /* Windows XP */
public const WINDOWS_XP_2 = 'windows xp'; /* Windows XP */
public const WINDOWS_XP_2 = 'windows xp'; /* Windows XP */
public const WINDOWS_2000 = 'windows nt 5.0'; /* Windows 2000 */
public const WINDOWS_2000 = 'windows nt 5.0'; /* Windows 2000 */
public const WINDOWS_ME = 'windows me'; /* Windows ME */
public const WINDOWS_ME = 'windows me'; /* Windows ME */
public const WINDOWS_98 = 'win98'; /* Windows 98 */
public const WINDOWS_98 = 'win98'; /* Windows 98 */
public const WINDOWS_95 = 'win95'; /* Windows 95 */
public const WINDOWS_95 = 'win95'; /* Windows 95 */
public const WINDOWS_311 = 'win16'; /* Windows 3.11 */
public const WINDOWS_311 = 'win16'; /* Windows 3.11 */
public const MAC_OS_X = 'macintosh'; /* Mac OS X */
public const MAC_OS_X = 'macintosh'; /* Mac OS X */
public const MAC_OS_X_2 = 'mac os x'; /* Mac OS X */
public const MAC_OS_X_2 = 'mac os x'; /* Mac OS X */
public const MAC_OS_9 = 'mac_powerpc'; /* Mac OS 9 */
public const MAC_OS_9 = 'mac_powerpc'; /* Mac OS 9 */
public const LINUX = 'linux'; /* Linux */
public const LINUX = 'linux'; /* Linux */
public const UBUNTU = 'ubuntu'; /* Ubuntu */
public const UBUNTU = 'ubuntu'; /* Ubuntu */
public const IPHONE = 'iphone'; /* IPhone */
public const IPHONE = 'iphone'; /* IPhone */
public const IPOD = 'ipod'; /* IPod */
public const IPOD = 'ipod'; /* IPod */
public const IPAD = 'ipad'; /* IPad */
public const IPAD = 'ipad'; /* IPad */
public const ANDROID = 'android'; /* Android */
public const ANDROID = 'android'; /* Android */
public const BLACKBERRY = 'blackberry'; /* Blackberry */
public const BLACKBERRY = 'blackberry'; /* Blackberry */
public const MOBILE = 'webos'; /* Mobile */
public const MOBILE = 'webos'; /* Mobile */
public const UNKNOWN = 'unknown';
public const UNKNOWN = 'unknown';
}

View File

@ -26,15 +26,15 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class RequestMethod extends Enum
{
public const GET = 'GET'; /* GET */
public const GET = 'GET'; /* GET */
public const POST = 'POST'; /* POST */
public const POST = 'POST'; /* POST */
public const PUT = 'PUT'; /* PUT */
public const PUT = 'PUT'; /* PUT */
public const DELETE = 'DELETE'; /* DELETE */
public const HEAD = 'HEAD'; /* HEAD */
public const HEAD = 'HEAD'; /* HEAD */
public const TRACE = 'TRACE'; /* TRACE */
public const TRACE = 'TRACE'; /* TRACE */
}

View File

@ -26,11 +26,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class DispositionType extends Enum
{
public const PLAIN = 'plain';
public const PLAIN = 'plain';
public const ALT = 'alt';
public const ALT = 'alt';
public const ATTACHMENT = 'attach';
public const INLINE = 'inline';
public const INLINE = 'inline';
}

View File

@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class EncodingType extends Enum
{
public const E_7BIT = '7bit';
public const E_7BIT = '7bit';
public const E_8BIT = '8bit';
public const E_8BIT = '8bit';
public const E_BASE64 = 'base64';

View File

@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class HeaderContext extends Enum
{
public const TEXT = 1;
public const TEXT = 1;
public const PHRASE = 2;
public const PHRASE = 2;
public const COMMENT = 3;
}

View File

@ -26,19 +26,19 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class ICALMethodType extends Enum
{
public const REQUEST = 'REQUEST';
public const REQUEST = 'REQUEST';
public const PUBLISH = 'PUBLISH';
public const PUBLISH = 'PUBLISH';
public const REPLY = 'REPLY';
public const REPLY = 'REPLY';
public const ADD = 'ADD';
public const ADD = 'ADD';
public const CANCEL = 'CANCEL';
public const CANCEL = 'CANCEL';
public const REFRESH = 'REFRESH';
public const REFRESH = 'REFRESH';
public const COUNTER = 'COUNTER';
public const COUNTER = 'COUNTER';
public const DECLINECOUNTER = 'DECLINECOUNTER';
}

View File

@ -26,11 +26,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class SubmitType extends Enum
{
public const SMTP = 'smtp';
public const SMTP = 'smtp';
public const MAIL = 'mail';
public const MAIL = 'mail';
public const SENDMAIL = 'sendmail';
public const QMAIL = 'qmail';
public const QMAIL = 'qmail';
}

View File

@ -26,13 +26,13 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class NotificationLevel extends Enum
{
public const OK = 'ok';
public const OK = 'ok';
public const INFO = 'info';
public const INFO = 'info';
public const WARNING = 'warning';
public const ERROR = 'error';
public const ERROR = 'error';
public const HIDDEN = 'hidden';
public const HIDDEN = 'hidden';
}

View File

@ -26,25 +26,25 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class PacketType extends Enum
{
public const CONNECT = 0; /* Client connection (server/sender) */
public const CONNECT = 0; /* Client connection (server/sender) */
public const DISCONNECT = 1; /* Client disconnection (server/sender) */
public const KICK = 2; /* Kick (server/client/sender) */
public const KICK = 2; /* Kick (server/client/sender) */
public const PING = 3; /* Ping (server/sender) */
public const PING = 3; /* Ping (server/sender) */
public const HELP = 4; /* Help (server/sender) */
public const HELP = 4; /* Help (server/sender) */
public const RESTART = 5; /* Restart server (server/all clients/client) */
public const RESTART = 5; /* Restart server (server/all clients/client) */
public const MSG = 6; /* Message (server/sender/client/all clients?) */
public const MSG = 6; /* Message (server/sender/client/all clients?) */
public const LOGIN = 7; /* Login (server/sender) */
public const LOGIN = 7; /* Login (server/sender) */
public const LOGOUT = 8; /* Logout (server/sender) */
public const LOGOUT = 8; /* Logout (server/sender) */
public const CMD = 9; /* Other command */
public const CMD = 9; /* Other command */
public const DOWNLOAD = 10; /* Download */
public const DOWNLOAD = 10; /* Download */
}

View File

@ -28,19 +28,19 @@ abstract class DomAction extends Enum
{
public const CREATE_BEFORE = 0;
public const CREATE_AFTER = 1;
public const CREATE_AFTER = 1;
public const DELETE = 2;
public const DELETE = 2;
public const REPLACE = 3;
public const REPLACE = 3;
public const MODIFY = 4;
public const MODIFY = 4;
public const SHOW = 5;
public const SHOW = 5;
public const HIDE = 6;
public const HIDE = 6;
public const ACTIVATE = 7;
public const ACTIVATE = 7;
public const DEACTIVATE = 8;
public const DEACTIVATE = 8;
}

View File

@ -26,13 +26,13 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class NotifyType extends Enum
{
public const BINARY = 0;
public const BINARY = 0;
public const INFO = 1;
public const INFO = 1;
public const WARNING = 2;
public const ERROR = 3;
public const ERROR = 3;
public const FATAL = 4;
public const FATAL = 4;
}

View File

@ -25,9 +25,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class ModuleStatus extends Enum
{
public const ACTIVE = 1;
public const ACTIVE = 1;
public const INACTIVE = 2;
public const INACTIVE = 2;
public const AVAILABLE = 3;
}

View File

@ -26,13 +26,13 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class RouteVerb extends Enum
{
public const GET = 1;
public const GET = 1;
public const PUT = 2;
public const PUT = 2;
public const SET = 4;
public const SET = 4;
public const DELETE = 8;
public const ANY = 16;
public const ANY = 16;
}

View File

@ -24,17 +24,17 @@ namespace phpOMS\Stdlib\Base;
*/
abstract class AddressType extends Enum
{
public const HOME = 1;
public const HOME = 1;
public const BUSINESS = 2;
public const SHIPPING = 3;
public const BILLING = 4;
public const BILLING = 4;
public const WORK = 5;
public const WORK = 5;
public const CONTRACT = 6;
public const OTHER = 7;
public const OTHER = 7;
}

View File

@ -24,11 +24,11 @@ namespace phpOMS\Stdlib\Base;
*/
abstract class PhoneType extends Enum
{
public const HOME = 1;
public const HOME = 1;
public const BUSINESS = 2;
public const MOBILE = 3;
public const MOBILE = 3;
public const WORK = 4;
public const WORK = 4;
}

View File

@ -28,7 +28,7 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class KeyType extends Enum
{
public const SINGLE = 0; // There can only be one key(-combination) per value
public const SINGLE = 0; // There can only be one key(-combination) per value
public const MULTIPLE = 1; // There can be multiple keys per value
}

View File

@ -28,7 +28,7 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class OrderType extends Enum
{
public const LOOSE = 0; // Doesn't matter in which order the keys are ordered
public const LOOSE = 0; // Doesn't matter in which order the keys are ordered
public const STRICT = 1; // The exact key order matters for setting/getting values
}

View File

@ -28,11 +28,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class PriorityMode extends Enum
{
public const FIFO = 1; // First in first out
public const FIFO = 1; // First in first out
public const LIFO = 2; // Last in first out
public const LIFO = 2; // Last in first out
public const HIGHEST = 4; // Highest priority first (same as FIFO if all inserted elements got inserted at the same time with the same priority)
public const LOWEST = 8; // Lowest priority first (same as LIFO if all inserted lements got inserted at the same time with the same priority)
public const LOWEST = 8; // Lowest priority first (same as LIFO if all inserted lements got inserted at the same time with the same priority)
}

View File

@ -26,9 +26,9 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class CharsetType extends Enum
{
public const ASCII = 'us-ascii';
public const ASCII = 'us-ascii';
public const ISO_8859_1 = 'iso-8859-1';
public const UTF_8 = 'utf-8';
public const UTF_8 = 'utf-8';
}

View File

@ -28,11 +28,11 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class ContentPutMode extends Enum
{
public const APPEND = 1;
public const APPEND = 1;
public const PREPEND = 2;
public const REPLACE = 4;
public const CREATE = 8;
public const CREATE = 8;
}

View File

@ -28,29 +28,29 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class ExtensionType extends Enum
{
public const UNKNOWN = 1;
public const UNKNOWN = 1;
public const CODE = 2;
public const CODE = 2;
public const AUDIO = 4;
public const AUDIO = 4;
public const VIDEO = 8;
public const VIDEO = 8;
public const TEXT = 16;
public const TEXT = 16;
public const SPREADSHEET = 32;
public const SPREADSHEET = 32;
public const PDF = 64;
public const PDF = 64;
public const ARCHIVE = 128;
public const ARCHIVE = 128;
public const PRESENTATION = 256;
public const IMAGE = 512;
public const IMAGE = 512;
public const EXECUTABLE = 1024;
public const EXECUTABLE = 1024;
public const DIRECTORY = 2048;
public const DIRECTORY = 2048;
public const WORD = 4096;
public const WORD = 4096;
}

View File

@ -24,29 +24,29 @@ namespace phpOMS\System\File;
*/
final class FileUtils
{
public const CODE_EXTENSION = ['cpp', 'c', 'h', 'hpp', 'cs', 'css', 'scss', 'htm', 'html', 'js', 'java', 'sh', 'vb', 'php', 'rb', 'rs', 'ts', 'swift', 'class', 'htaccess', 'sql', 'py', 'bat', 'xml'];
public const CODE_EXTENSION = ['cpp', 'c', 'h', 'hpp', 'cs', 'css', 'scss', 'htm', 'html', 'js', 'java', 'sh', 'vb', 'php', 'rb', 'rs', 'ts', 'swift', 'class', 'htaccess', 'sql', 'py', 'bat', 'xml'];
public const TEXT_EXTENSION = ['log', 'txt', 'md', 'csv', 'tex', 'latex', 'cfg', 'json', 'config', 'conf', 'ini', 'yaml', 'yml'];
public const TEXT_EXTENSION = ['log', 'txt', 'md', 'csv', 'tex', 'latex', 'cfg', 'json', 'config', 'conf', 'ini', 'yaml', 'yml'];
public const WORD_EXTENSION = ['doc', 'docx', 'rtf', 'odt'];
public const WORD_EXTENSION = ['doc', 'docx', 'rtf', 'odt'];
public const PRESENTATION_EXTENSION = ['ppt', 'pptx', 'pps', 'odp', 'key'];
public const PDF_EXTENSION = ['pdf'];
public const PDF_EXTENSION = ['pdf'];
public const ARCHIVE_EXTENSION = ['zip', '7z', 'rar', 'tar', 'gz', 'z', 'deb', 'rpm', 'pkg'];
public const ARCHIVE_EXTENSION = ['zip', '7z', 'rar', 'tar', 'gz', 'z', 'deb', 'rpm', 'pkg'];
public const AUDIO_EXTENSION = ['mp3', 'wav', 'wma', 'ogg'];
public const AUDIO_EXTENSION = ['mp3', 'wav', 'wma', 'ogg'];
public const VIDEO_EXTENSION = ['mp4', 'flv', 'vob', 'wmv', 'swf', 'mpg', 'mpeg', 'mov', 'mkv', 'h264', 'avi'];
public const VIDEO_EXTENSION = ['mp4', 'flv', 'vob', 'wmv', 'swf', 'mpg', 'mpeg', 'mov', 'mkv', 'h264', 'avi'];
public const SPREADSHEET_EXTENSION = ['xls', 'xlsm', 'xlr', 'ods'];
public const SPREADSHEET_EXTENSION = ['xls', 'xlsm', 'xlr', 'ods'];
public const IMAGE_EXTENSION = ['png', 'gif', 'jpg', 'jpeg', 'tif', 'tiff', 'bmp', 'svg', 'ico'];
public const IMAGE_EXTENSION = ['png', 'gif', 'jpg', 'jpeg', 'tif', 'tiff', 'bmp', 'svg', 'ico'];
public const DIRECTORY = ['collection', '/'];
public const DIRECTORY = ['collection', '/'];
public const SYSTEM_EXTENSION = ['bak', 'dll', 'sys', 'tmp', 'msi', 'so', 'exe', 'bin', 'iso'];
public const SYSTEM_EXTENSION = ['bak', 'dll', 'sys', 'tmp', 'msi', 'so', 'exe', 'bin', 'iso'];
/**
* Constructor.

File diff suppressed because it is too large Load Diff

View File

@ -28,9 +28,9 @@ abstract class SystemType extends Enum
{
public const UNKNOWN = 1;
public const WIN = 2;
public const WIN = 2;
public const LINUX = 3;
public const LINUX = 3;
public const OSX = 4;
public const OSX = 4;
}

View File

@ -26,33 +26,33 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class UriScheme extends Enum
{
public const HTTP = 0; /* Http */
public const HTTP = 0; /* Http */
public const FILE = 1; /* File */
public const FILE = 1; /* File */
public const MAILTO = 2; /* Mail */
public const FTP = 3; /* FTP */
public const FTP = 3; /* FTP */
public const HTTPS = 4; /* Https */
public const HTTPS = 4; /* Https */
public const IRC = 5; /* IRC */
public const IRC = 5; /* IRC */
public const TEL = 6; /* Telephone */
public const TEL = 6; /* Telephone */
public const TELNET = 7; /* Telnet */
public const SSH = 8; /* SSH */
public const SSH = 8; /* SSH */
public const SKYPE = 9; /* Skype */
public const SKYPE = 9; /* Skype */
public const SSL = 10; /* SSL */
public const SSL = 10; /* SSL */
public const NFS = 11; /* Network File System */
public const NFS = 11; /* Network File System */
public const GEO = 12; /* Geo location */
public const GEO = 12; /* Geo location */
public const MARKET = 13; /* Android Market */
public const ITMS = 14; /* iTunes */
public const ITMS = 14; /* iTunes */
}

View File

@ -28,5 +28,5 @@ abstract class OrientationType extends Enum
{
public const HORIZONTAL = 0;
public const VERTICAL = 1;
public const VERTICAL = 1;
}

View File

@ -26,23 +26,23 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class AngleType extends Enum
{
public const DEGREE = 'deg';
public const DEGREE = 'deg';
public const RADIAN = 'rad';
public const RADIAN = 'rad';
public const SECOND = 'arcsec';
public const SECOND = 'arcsec';
public const MINUTE = 'arcmin';
public const MINUTE = 'arcmin';
public const MILLIRADIAN_US = 'mil (us ww2)';
public const MILLIRADIAN_US = 'mil (us ww2)';
public const MILLIRADIAN_UK = 'mil (uk)';
public const MILLIRADIAN_UK = 'mil (uk)';
public const MILLIRADIAN_USSR = 'mil (ussr)';
public const MILLIRADIAN_NATO = 'mil (nato)';
public const GRADIAN = 'g';
public const GRADIAN = 'g';
public const CENTRAD = 'crad';
public const CENTRAD = 'crad';
}

View File

@ -26,29 +26,29 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class AreaType extends Enum
{
public const SQUARE_FEET = 'ft';
public const SQUARE_FEET = 'ft';
public const SQUARE_METERS = 'm';
public const SQUARE_METERS = 'm';
public const SQUARE_KILOMETERS = 'km';
public const SQUARE_KILOMETERS = 'km';
public const SQUARE_MILES = 'mi';
public const SQUARE_MILES = 'mi';
public const SQUARE_YARDS = 'yd';
public const SQUARE_YARDS = 'yd';
public const SQUARE_INCHES = 'in';
public const SQUARE_INCHES = 'in';
public const SQUARE_MICROINCHES = 'muin';
public const SQUARE_CENTIMETERS = 'cm';
public const SQUARE_MILIMETERS = 'mm';
public const SQUARE_MILIMETERS = 'mm';
public const SQUARE_MICROMETERS = 'micron';
public const SQUARE_DECIMETERS = 'dm';
public const SQUARE_DECIMETERS = 'dm';
public const HECTARES = 'ha';
public const HECTARES = 'ha';
public const ACRES = 'ac';
public const ACRES = 'ac';
}

View File

@ -30,17 +30,17 @@ abstract class EnergyPowerType extends Enum
public const MEGAWATT_HOUERS = 'MWh';
public const KILOTONS = 'kt';
public const KILOTONS = 'kt';
public const JOULS = 'J';
public const JOULS = 'J';
public const CALORIES = 'Cal';
public const CALORIES = 'Cal';
public const BTU = 'BTU';
public const BTU = 'BTU';
public const KILOJOULS = 'kJ';
public const KILOJOULS = 'kJ';
public const THERMEC = 'thmEC';
public const THERMEC = 'thmEC';
public const NEWTON_METERS = 'Nm';
public const NEWTON_METERS = 'Nm';
}

View File

@ -28,21 +28,21 @@ abstract class FileSizeType extends Enum
{
public const TERRABYTE = 'TB';
public const GIGABYTE = 'GB';
public const GIGABYTE = 'GB';
public const MEGABYTE = 'MB';
public const MEGABYTE = 'MB';
public const KILOBYTE = 'KB';
public const KILOBYTE = 'KB';
public const BYTE = 'B';
public const BYTE = 'B';
public const TERRABIT = 'tbit';
public const TERRABIT = 'tbit';
public const GIGABIT = 'gbit';
public const GIGABIT = 'gbit';
public const MEGABIT = 'mbit';
public const MEGABIT = 'mbit';
public const KILOBIT = 'kbit';
public const KILOBIT = 'kbit';
public const BIT = 'bit';
public const BIT = 'bit';
}

View File

@ -26,47 +26,47 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class LengthType extends Enum
{
public const MILES = 'mi';
public const MILES = 'mi';
public const METERS = 'm';
public const METERS = 'm';
public const NANOMETER = 'nm';
public const NANOMETER = 'nm';
public const MICROMETER = 'micron';
public const MICROMETER = 'micron';
public const CENTIMETERS = 'cm';
public const CENTIMETERS = 'cm';
public const MILLIMETERS = 'mm';
public const MILLIMETERS = 'mm';
public const KILOMETERS = 'km';
public const KILOMETERS = 'km';
public const CHAINS = 'ch';
public const CHAINS = 'ch';
public const FEET = 'ft';
public const FEET = 'ft';
public const FURLONGS = 'fur';
public const FURLONGS = 'fur';
public const MICROINCH = 'muin';
public const MICROINCH = 'muin';
public const INCHES = 'in';
public const INCHES = 'in';
public const YARDS = 'yd';
public const YARDS = 'yd';
public const PARSECS = 'pc';
public const PARSECS = 'pc';
public const UK_NAUTICAL_MILES = 'uk nmi';
public const UK_NAUTICAL_MILES = 'uk nmi';
public const US_NAUTICAL_MILES = 'us nmi';
public const US_NAUTICAL_MILES = 'us nmi';
public const UK_NAUTICAL_LEAGUES = 'uk nl';
public const NAUTICAL_LEAGUES = 'nl';
public const NAUTICAL_LEAGUES = 'nl';
public const UK_LEAGUES = 'uk lg';
public const UK_LEAGUES = 'uk lg';
public const US_LEAGUES = 'us lg';
public const US_LEAGUES = 'us lg';
public const LIGHTYEARS = 'ly';
public const LIGHTYEARS = 'ly';
public const DECIMETERS = 'dm';
public const DECIMETERS = 'dm';
}

View File

@ -26,29 +26,29 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class PressureType extends Enum
{
public const PASCALS = 'Pa';
public const PASCALS = 'Pa';
public const BAR = 'bar';
public const BAR = 'bar';
public const POUND_PER_SQUARE_INCH = 'psi';
public const POUND_PER_SQUARE_INCH = 'psi';
public const ATMOSPHERES = 'atm';
public const ATMOSPHERES = 'atm';
public const INCHES_OF_MERCURY = 'inHg';
public const INCHES_OF_MERCURY = 'inHg';
public const INCHES_OF_WATER = 'inH20';
public const INCHES_OF_WATER = 'inH20';
public const MILLIMETERS_OF_WATER = 'mmH20';
public const MILLIMETERS_OF_WATER = 'mmH20';
public const MILLIMETERS_OF_MERCURY = 'mmHg';
public const MILLIMETERS_OF_MERCURY = 'mmHg';
public const MILLIBAR = 'mbar';
public const MILLIBAR = 'mbar';
public const KILOGRAM_PER_SQUARE_METER = 'kg/m2';
public const NEWTONS_PER_METER_SQUARED = 'N/m2';
public const POUNDS_PER_SQUARE_FOOT = 'psf';
public const POUNDS_PER_SQUARE_FOOT = 'psf';
public const TORRS = 'Torr';
public const TORRS = 'Torr';
}

View File

@ -26,71 +26,71 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class SpeedType extends Enum
{
public const MILES_PER_DAY = 'mpd';
public const MILES_PER_DAY = 'mpd';
public const MILES_PER_HOUR = 'mph';
public const MILES_PER_HOUR = 'mph';
public const MILES_PER_MINUTE = 'mpm';
public const MILES_PER_MINUTE = 'mpm';
public const MILES_PER_SECOND = 'mps';
public const MILES_PER_SECOND = 'mps';
public const KILOMETERS_PER_DAY = 'kpd';
public const KILOMETERS_PER_DAY = 'kpd';
public const KILOMETERS_PER_HOUR = 'kph';
public const KILOMETERS_PER_HOUR = 'kph';
public const KILOMETERS_PER_MINUTE = 'kpm';
public const KILOMETERS_PER_MINUTE = 'kpm';
public const KILOMETERS_PER_SECOND = 'kps';
public const KILOMETERS_PER_SECOND = 'kps';
public const METERS_PER_DAY = 'md';
public const METERS_PER_DAY = 'md';
public const METERS_PER_HOUR = 'mh';
public const METERS_PER_HOUR = 'mh';
public const METERS_PER_MINUTE = 'mm';
public const METERS_PER_MINUTE = 'mm';
public const METERS_PER_SECOND = 'ms';
public const METERS_PER_SECOND = 'ms';
public const CENTIMETERS_PER_DAY = 'cpd';
public const CENTIMETERS_PER_DAY = 'cpd';
public const CENTIMETERS_PER_HOUR = 'cph';
public const CENTIMETERS_PER_HOUR = 'cph';
public const CENTIMETERS_PER_MINUTES = 'cpm';
public const CENTIMETERS_PER_SECOND = 'cps';
public const CENTIMETERS_PER_SECOND = 'cps';
public const MILLIMETERS_PER_DAY = 'mmpd';
public const MILLIMETERS_PER_DAY = 'mmpd';
public const MILLIMETERS_PER_HOUR = 'mmph';
public const MILLIMETERS_PER_HOUR = 'mmph';
public const MILLIMETERS_PER_MINUTE = 'mmpm';
public const MILLIMETERS_PER_MINUTE = 'mmpm';
public const MILLIMETERS_PER_SECOND = 'mmps';
public const MILLIMETERS_PER_SECOND = 'mmps';
public const YARDS_PER_DAY = 'ypd';
public const YARDS_PER_DAY = 'ypd';
public const YARDS_PER_HOUR = 'yph';
public const YARDS_PER_HOUR = 'yph';
public const YARDS_PER_MINUTE = 'ypm';
public const YARDS_PER_MINUTE = 'ypm';
public const YARDS_PER_SECOND = 'yps';
public const YARDS_PER_SECOND = 'yps';
public const INCHES_PER_DAY = 'ind';
public const INCHES_PER_DAY = 'ind';
public const INCHES_PER_HOUR = 'inh';
public const INCHES_PER_HOUR = 'inh';
public const INCHES_PER_MINUTE = 'inm';
public const INCHES_PER_MINUTE = 'inm';
public const INCHES_PER_SECOND = 'ins';
public const INCHES_PER_SECOND = 'ins';
public const FEET_PER_DAY = 'ftd';
public const FEET_PER_DAY = 'ftd';
public const FEET_PER_HOUR = 'fth';
public const FEET_PER_HOUR = 'fth';
public const FEET_PER_MINUTE = 'ftm';
public const FEET_PER_MINUTE = 'ftm';
public const FEET_PER_SECOND = 'fts';
public const FEET_PER_SECOND = 'fts';
public const MACH = 'mach';
public const MACH = 'mach';
public const KNOTS = 'knots';
public const KNOTS = 'knots';
}

View File

@ -26,19 +26,19 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class TemperatureType extends Enum
{
public const CELSIUS = 'celsius';
public const CELSIUS = 'celsius';
public const FAHRENHEIT = 'fahrenheit';
public const KELVIN = 'kelvin';
public const KELVIN = 'kelvin';
public const REAUMUR = 'reaumur';
public const REAUMUR = 'reaumur';
public const RANKINE = 'rankine';
public const RANKINE = 'rankine';
public const DELISLE = 'delisle';
public const DELISLE = 'delisle';
public const NEWTON = 'newton';
public const NEWTON = 'newton';
public const ROMER = 'romer';
public const ROMER = 'romer';
}

View File

@ -28,19 +28,19 @@ abstract class TimeType extends Enum
{
public const MILLISECONDS = 'ms';
public const SECONDS = 's';
public const SECONDS = 's';
public const MINUTES = 'i';
public const MINUTES = 'i';
public const HOURS = 'h';
public const HOURS = 'h';
public const DAYS = 'd';
public const DAYS = 'd';
public const WEEKS = 'w';
public const WEEKS = 'w';
public const MONTH = 'm';
public const MONTH = 'm';
public const QUARTER = 'q';
public const QUARTER = 'q';
public const YEAR = 'y';
public const YEAR = 'y';
}

View File

@ -26,79 +26,79 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class VolumeType extends Enum
{
public const UK_GALLON = 'UK gal';
public const UK_GALLON = 'UK gal';
public const US_GALLON_LIQUID = 'US gal lqd';
public const US_GALLON_LIQUID = 'US gal lqd';
public const US_GALLON_DRY = 'US gal dry';
public const US_GALLON_DRY = 'US gal dry';
public const UK_PINT = 'pt';
public const UK_PINT = 'pt';
public const US_PINT_LIQUID = 'US pt lqd';
public const US_PINT_LIQUID = 'US pt lqd';
public const US_PINT_DRY = 'US pt dry';
public const US_PINT_DRY = 'US pt dry';
public const US_QUARTS_LIQUID = 'US qt lqd';
public const US_QUARTS_LIQUID = 'US qt lqd';
public const US_QUARTS_DRY = 'US qt dry';
public const US_QUARTS_DRY = 'US qt dry';
public const UK_QUARTS = 'UK qt dry';
public const UK_QUARTS = 'UK qt dry';
public const US_GILL = 'US gi';
public const US_GILL = 'US gi';
public const UK_GILL = 'UK gi';
public const UK_GILL = 'UK gi';
public const LITER = 'l';
public const LITER = 'l';
public const MICROLITER = 'mul';
public const MICROLITER = 'mul';
public const MILLILITER = 'ml';
public const MILLILITER = 'ml';
public const CENTILITER = 'cl';
public const CENTILITER = 'cl';
public const KILOLITER = 'kl';
public const KILOLITER = 'kl';
public const UK_BARREL = 'UK bbl';
public const UK_BARREL = 'UK bbl';
public const US_BARREL_DRY = 'US bbl dry';
public const US_BARREL_DRY = 'US bbl dry';
public const US_BARREL_LIQUID = 'US bbl lqd';
public const US_BARREL_LIQUID = 'US bbl lqd';
public const US_BARREL_OIL = 'US bbl oil';
public const US_BARREL_OIL = 'US bbl oil';
public const US_BARREL_FEDERAL = 'US bbl fed';
public const US_OUNCES = 'us fl oz';
public const US_OUNCES = 'us fl oz';
public const UK_OUNCES = 'uk fl oz';
public const UK_OUNCES = 'uk fl oz';
public const US_TEASPOON = 'US tsp';
public const US_TEASPOON = 'US tsp';
public const UK_TEASPOON = 'UK tsp';
public const UK_TEASPOON = 'UK tsp';
public const METRIC_TEASPOON = 'Metric tsp';
public const METRIC_TEASPOON = 'Metric tsp';
public const US_TABLESPOON = 'US tblsp';
public const US_TABLESPOON = 'US tblsp';
public const UK_TABLESPOON = 'UK tblsp';
public const UK_TABLESPOON = 'UK tblsp';
public const METRIC_TABLESPOON = 'Metric tblsp';
public const US_CUP = 'US cup';
public const US_CUP = 'US cup';
public const CAN_CUP = 'Can cup';
public const CAN_CUP = 'Can cup';
public const METRIC_CUP = 'Metric cup';
public const METRIC_CUP = 'Metric cup';
public const CUBIC_CENTIMETER = 'cm';
public const CUBIC_CENTIMETER = 'cm';
public const CUBIC_MILLIMETER = 'mm';
public const CUBIC_MILLIMETER = 'mm';
public const CUBIC_METER = 'm';
public const CUBIC_METER = 'm';
public const CUBIC_INCH = 'in';
public const CUBIC_INCH = 'in';
public const CUBIC_FEET = 'ft';
public const CUBIC_FEET = 'ft';
public const CUBIC_YARD = 'yd';
public const CUBIC_YARD = 'yd';
}

View File

@ -26,29 +26,29 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class WeightType extends Enum
{
public const MICROGRAM = 'mg';
public const MICROGRAM = 'mg';
public const MILLIGRAM = 'mug';
public const MILLIGRAM = 'mug';
public const GRAM = 'g';
public const GRAM = 'g';
public const KILOGRAM = 'kg';
public const KILOGRAM = 'kg';
public const METRIC_TONS = 't';
public const POUNDS = 'lb';
public const POUNDS = 'lb';
public const OUNCES = 'oz';
public const OUNCES = 'oz';
public const STONES = 'st';
public const STONES = 'st';
public const GRAIN = 'gr';
public const GRAIN = 'gr';
public const CARAT = 'ct';
public const CARAT = 'ct';
public const LONG_TONS = 'uk t';
public const LONG_TONS = 'uk t';
public const SHORT_TONS = 'us ton';
public const SHORT_TONS = 'us ton';
public const TROY_POUNDS = 't lb';

View File

@ -28,5 +28,5 @@ abstract class DistributionType extends Enum
{
public const UNIFORM = 0;
public const NORMAL = 1;
public const NORMAL = 1;
}

View File

@ -26,13 +26,13 @@ use phpOMS\Stdlib\Base\Enum;
*/
abstract class IbanErrorType extends Enum
{
public const INVALID_COUNTRY = 1;
public const INVALID_COUNTRY = 1;
public const INVALID_LENGTH = 2;
public const INVALID_LENGTH = 2;
public const INVALID_CHECKSUM = 4;
public const EXPECTED_ZERO = 8;
public const EXPECTED_ZERO = 8;
public const EXPECTED_NUMERIC = 16;
}

View File

@ -39,11 +39,11 @@ class ModuleAbstractTest extends \PHPUnit\Framework\TestCase
protected function setUp() : void
{
$this->module = new class() extends ModuleAbstract {
const MODULE_VERSION = '1.2.3';
const MODULE_VERSION = '1.2.3';
const MODULE_NAME = 'Test';
const MODULE_NAME = 'Test';
const MODULE_ID = 2;
const MODULE_ID = 2;
protected static array $dependencies = [1, 2];