diff --git a/src/Console/ConsoleIo.php b/src/Console/ConsoleIo.php index a37e69d6396..fb9ef33aee7 100644 --- a/src/Console/ConsoleIo.php +++ b/src/Console/ConsoleIo.php @@ -51,24 +51,24 @@ class ConsoleIo protected $_in; /** - * Output constant making verbose shells. - * - * @var int - */ + * Output constant making verbose shells. + * + * @var int + */ const VERBOSE = 2; /** - * Output constant for making normal shells. - * - * @var int - */ + * Output constant for making normal shells. + * + * @var int + */ const NORMAL = 1; /** - * Output constants for making quiet shells. - * - * @var int - */ + * Output constants for making quiet shells. + * + * @var int + */ const QUIET = 0; /** diff --git a/src/Console/ConsoleOutput.php b/src/Console/ConsoleOutput.php index 36b25f632a5..b30dced5600 100644 --- a/src/Console/ConsoleOutput.php +++ b/src/Console/ConsoleOutput.php @@ -44,31 +44,31 @@ class ConsoleOutput { /** - * Raw output constant - no modification of output text. - * - * @var int - */ + * Raw output constant - no modification of output text. + * + * @var int + */ const RAW = 0; /** - * Plain output - tags will be stripped. - * - * @var int - */ + * Plain output - tags will be stripped. + * + * @var int + */ const PLAIN = 1; /** - * Color output - Convert known tags in to ANSI color escape codes. - * - * @var int - */ + * Color output - Convert known tags in to ANSI color escape codes. + * + * @var int + */ const COLOR = 2; /** - * Constant for a newline. - * - * @var string - */ + * Constant for a newline. + * + * @var string + */ const LF = PHP_EOL; /** diff --git a/src/Console/Shell.php b/src/Console/Shell.php index 46f6b9c1dc1..0c52de8ef1f 100644 --- a/src/Console/Shell.php +++ b/src/Console/Shell.php @@ -38,24 +38,24 @@ class Shell use ModelAwareTrait; /** - * Output constant making verbose shells. - * - * @var int - */ + * Output constant making verbose shells. + * + * @var int + */ const VERBOSE = ConsoleIo::VERBOSE; /** - * Output constant for making normal shells. - * - * @var int - */ + * Output constant for making normal shells. + * + * @var int + */ const NORMAL = ConsoleIo::NORMAL; /** - * Output constants for making quiet shells. - * - * @var int - */ + * Output constants for making quiet shells. + * + * @var int + */ const QUIET = ConsoleIo::QUIET; /** diff --git a/src/Controller/Component/AuthComponent.php b/src/Controller/Component/AuthComponent.php index 80b414109e5..5fac2c38984 100644 --- a/src/Controller/Component/AuthComponent.php +++ b/src/Controller/Component/AuthComponent.php @@ -39,10 +39,10 @@ class AuthComponent extends Component use EventManagerTrait; /** - * Constant for 'all' - * - * @var string - */ + * Constant for 'all' + * + * @var string + */ const ALL = 'all'; /** diff --git a/src/Database/Expression/UnaryExpression.php b/src/Database/Expression/UnaryExpression.php index 4e7a4ec9de2..76ddce6e699 100644 --- a/src/Database/Expression/UnaryExpression.php +++ b/src/Database/Expression/UnaryExpression.php @@ -26,15 +26,15 @@ class UnaryExpression implements ExpressionInterface { /** - * Indicates that the operation is in pre-order - * - */ + * Indicates that the operation is in pre-order + * + */ const PREFIX = 0; /** - * Indicates that the operation is in post-order - * - */ + * Indicates that the operation is in post-order + * + */ const POSTFIX = 1; /** diff --git a/src/Database/Schema/Table.php b/src/Database/Schema/Table.php index cd3ae71a109..9646e3405e0 100644 --- a/src/Database/Schema/Table.php +++ b/src/Database/Schema/Table.php @@ -163,73 +163,73 @@ class Table ]; /** - * Primary constraint type - * - * @var string - */ + * Primary constraint type + * + * @var string + */ const CONSTRAINT_PRIMARY = 'primary'; /** - * Unique constraint type - * - * @var string - */ + * Unique constraint type + * + * @var string + */ const CONSTRAINT_UNIQUE = 'unique'; /** - * Foreign constraint type - * - * @var string - */ + * Foreign constraint type + * + * @var string + */ const CONSTRAINT_FOREIGN = 'foreign'; /** - * Index - index type - * - * @var string - */ + * Index - index type + * + * @var string + */ const INDEX_INDEX = 'index'; /** - * Fulltext index type - * - * @var string - */ + * Fulltext index type + * + * @var string + */ const INDEX_FULLTEXT = 'fulltext'; /** - * Foreign key cascade action - * - * @var string - */ + * Foreign key cascade action + * + * @var string + */ const ACTION_CASCADE = 'cascade'; /** - * Foreign key set null action - * - * @var string - */ + * Foreign key set null action + * + * @var string + */ const ACTION_SET_NULL = 'setNull'; /** - * Foreign key no action - * - * @var string - */ + * Foreign key no action + * + * @var string + */ const ACTION_NO_ACTION = 'noAction'; /** - * Foreign key restrict action - * - * @var string - */ + * Foreign key restrict action + * + * @var string + */ const ACTION_RESTRICT = 'restrict'; /** - * Foreign key restrict default - * - * @var string - */ + * Foreign key restrict default + * + * @var string + */ const ACTION_SET_DEFAULT = 'setDefault'; /** diff --git a/src/Filesystem/Folder.php b/src/Filesystem/Folder.php index 1ebb3b87d02..de87eddd80a 100644 --- a/src/Filesystem/Folder.php +++ b/src/Filesystem/Folder.php @@ -24,27 +24,27 @@ class Folder { /** - * Default scheme for Folder::copy - * Recursively merges subfolders with the same name - * - * @var string - */ + * Default scheme for Folder::copy + * Recursively merges subfolders with the same name + * + * @var string + */ const MERGE = 'merge'; /** - * Overwrite scheme for Folder::copy - * subfolders with the same name will be replaced - * - * @var string - */ + * Overwrite scheme for Folder::copy + * subfolders with the same name will be replaced + * + * @var string + */ const OVERWRITE = 'overwrite'; /** - * Skip scheme for Folder::copy - * if a subfolder with the same name exists it will be skipped - * - * @var string - */ + * Skip scheme for Folder::copy + * if a subfolder with the same name exists it will be skipped + * + * @var string + */ const SKIP = 'skip'; /** diff --git a/src/I18n/Parser/MoFileParser.php b/src/I18n/Parser/MoFileParser.php index ea04d6b684f..d218d04eca6 100644 --- a/src/I18n/Parser/MoFileParser.php +++ b/src/I18n/Parser/MoFileParser.php @@ -24,26 +24,26 @@ class MoFileParser { /** - * Magic used for validating the format of a MO file as well as - * detecting if the machine used to create that file was little endian. - * - * @var float - */ + * Magic used for validating the format of a MO file as well as + * detecting if the machine used to create that file was little endian. + * + * @var float + */ const MO_LITTLE_ENDIAN_MAGIC = 0x950412de; /** - * Magic used for validating the format of a MO file as well as - * detecting if the machine used to create that file was big endian. - * - * @var float - */ + * Magic used for validating the format of a MO file as well as + * detecting if the machine used to create that file was big endian. + * + * @var float + */ const MO_BIG_ENDIAN_MAGIC = 0xde120495; /** - * The size of the header of a MO file in bytes. - * - * @var int Number of bytes. - */ + * The size of the header of a MO file in bytes. + * + * @var int Number of bytes. + */ const MO_HEADER_SIZE = 28; /** diff --git a/src/Network/Email/Email.php b/src/Network/Email/Email.php index 2c064a2b50a..efed14b97ba 100644 --- a/src/Network/Email/Email.php +++ b/src/Network/Email/Email.php @@ -53,38 +53,38 @@ class Email implements JsonSerializable, Serializable use StaticConfigTrait; /** - * Line length - no should more - RFC 2822 - 2.1.1 - * - * @var int - */ + * Line length - no should more - RFC 2822 - 2.1.1 + * + * @var int + */ const LINE_LENGTH_SHOULD = 78; /** - * Line length - no must more - RFC 2822 - 2.1.1 - * - * @var int - */ + * Line length - no must more - RFC 2822 - 2.1.1 + * + * @var int + */ const LINE_LENGTH_MUST = 998; /** - * Type of message - HTML - * - * @var string - */ + * Type of message - HTML + * + * @var string + */ const MESSAGE_HTML = 'html'; /** - * Type of message - TEXT - * - * @var string - */ + * Type of message - TEXT + * + * @var string + */ const MESSAGE_TEXT = 'text'; /** - * Holds the regex pattern for email validation - * - * @var string - */ + * Holds the regex pattern for email validation + * + * @var string + */ const EMAIL_PATTERN = '/^((?:[\p{L}0-9.!#$%&\'*+\/=?^_`{|}~-]+)*@[\p{L}0-9-.]+)$/ui'; /** diff --git a/src/Network/Http/Message.php b/src/Network/Http/Message.php index 67144c8b93a..1183a74c50c 100644 --- a/src/Network/Http/Message.php +++ b/src/Network/Http/Message.php @@ -23,94 +23,94 @@ class Message { /** - * HTTP 200 code - * - * @var int - */ + * HTTP 200 code + * + * @var int + */ const STATUS_OK = 200; /** - * HTTP 201 code - * - * @var int - */ + * HTTP 201 code + * + * @var int + */ const STATUS_CREATED = 201; /** - * HTTP 202 code - * - * @var int - */ + * HTTP 202 code + * + * @var int + */ const STATUS_ACCEPTED = 202; /** - * HTTP 301 code - * - * @var int - */ + * HTTP 301 code + * + * @var int + */ const STATUS_MOVED_PERMANENTLY = 301; /** - * HTTP 302 code - * - * @var int - */ + * HTTP 302 code + * + * @var int + */ const STATUS_FOUND = 302; /** - * HTTP 303 code - * - * @var int - */ + * HTTP 303 code + * + * @var int + */ const STATUS_SEE_OTHER = 303; /** - * HTTP 307 code - * - * @var int - */ + * HTTP 307 code + * + * @var int + */ const STATUS_TEMPORARY_REDIRECT = 307; /** - * HTTP GET method - * - * @var string - */ + * HTTP GET method + * + * @var string + */ const METHOD_GET = 'GET'; /** - * HTTP POST method - * - * @var string - */ + * HTTP POST method + * + * @var string + */ const METHOD_POST = 'POST'; /** - * HTTP PUT method - * - * @var string - */ + * HTTP PUT method + * + * @var string + */ const METHOD_PUT = 'PUT'; /** - * HTTP DELETE method - * - * @var string - */ + * HTTP DELETE method + * + * @var string + */ const METHOD_DELETE = 'DELETE'; /** - * HTTP PATCH method - * - * @var string - */ + * HTTP PATCH method + * + * @var string + */ const METHOD_PATCH = 'PATCH'; /** - * HTTP HEAD method - * - * @var string - */ + * HTTP HEAD method + * + * @var string + */ const METHOD_HEAD = 'HEAD'; /** diff --git a/src/ORM/Association.php b/src/ORM/Association.php index 16c7c533de9..65519ef7133 100644 --- a/src/ORM/Association.php +++ b/src/ORM/Association.php @@ -34,52 +34,52 @@ abstract class Association use ConventionsTrait; /** - * Strategy name to use joins for fetching associated records - * - * @var string - */ + * Strategy name to use joins for fetching associated records + * + * @var string + */ const STRATEGY_JOIN = 'join'; /** - * Strategy name to use a subquery for fetching associated records - * - * @var string - */ + * Strategy name to use a subquery for fetching associated records + * + * @var string + */ const STRATEGY_SUBQUERY = 'subquery'; /** - * Strategy name to use a select for fetching associated records - * - * @var string - */ + * Strategy name to use a select for fetching associated records + * + * @var string + */ const STRATEGY_SELECT = 'select'; /** - * Association type for one to one associations. - * - * @var string - */ + * Association type for one to one associations. + * + * @var string + */ const ONE_TO_ONE = 'oneToOne'; /** - * Association type for one to many associations. - * - * @var string - */ + * Association type for one to many associations. + * + * @var string + */ const ONE_TO_MANY = 'oneToMany'; /** - * Association type for many to many associations. - * - * @var string - */ + * Association type for many to many associations. + * + * @var string + */ const MANY_TO_MANY = 'manyToMany'; /** - * Association type for many to one associations. - * - * @var string - */ + * Association type for many to one associations. + * + * @var string + */ const MANY_TO_ONE = 'manyToOne'; /** diff --git a/src/ORM/Association/BelongsToMany.php b/src/ORM/Association/BelongsToMany.php index f1d36becd95..2a5f526dc86 100644 --- a/src/ORM/Association/BelongsToMany.php +++ b/src/ORM/Association/BelongsToMany.php @@ -36,17 +36,17 @@ class BelongsToMany extends Association } /** - * Saving strategy that will only append to the links set - * - * @var string - */ + * Saving strategy that will only append to the links set + * + * @var string + */ const SAVE_APPEND = 'append'; /** - * Saving strategy that will replace the links with the provided set - * - * @var string - */ + * Saving strategy that will replace the links with the provided set + * + * @var string + */ const SAVE_REPLACE = 'replace'; /** diff --git a/src/ORM/Query.php b/src/ORM/Query.php index 54180827f46..7eaac3e80a9 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -40,24 +40,24 @@ class Query extends DatabaseQuery implements JsonSerializable } /** - * Indicates that the operation should append to the list - * - * @var int - */ + * Indicates that the operation should append to the list + * + * @var int + */ const APPEND = 0; /** - * Indicates that the operation should prepend to the list - * - * @var int - */ + * Indicates that the operation should prepend to the list + * + * @var int + */ const PREPEND = 1; /** - * Indicates that the operation should overwrite the list - * - * @var bool - */ + * Indicates that the operation should overwrite the list + * + * @var bool + */ const OVERWRITE = true; /** diff --git a/src/ORM/RulesChecker.php b/src/ORM/RulesChecker.php index c40255fb034..a00f73e0463 100644 --- a/src/ORM/RulesChecker.php +++ b/src/ORM/RulesChecker.php @@ -44,24 +44,24 @@ class RulesChecker { /** - * Indicates that the checking rules to apply are those used for creating entities - * - * @var string - */ + * Indicates that the checking rules to apply are those used for creating entities + * + * @var string + */ const CREATE = 'create'; /** - * Indicates that the checking rules to apply are those used for updating entities - * - * @var string - */ + * Indicates that the checking rules to apply are those used for updating entities + * + * @var string + */ const UPDATE = 'update'; /** - * Indicates that the checking rules to apply are those used for deleting entities - * - * @var string - */ + * Indicates that the checking rules to apply are those used for deleting entities + * + * @var string + */ const DELETE = 'delete'; /** diff --git a/src/Routing/RouteBuilder.php b/src/Routing/RouteBuilder.php index 7d1228f0a4a..ff1f0f0fe98 100644 --- a/src/Routing/RouteBuilder.php +++ b/src/Routing/RouteBuilder.php @@ -30,17 +30,17 @@ class RouteBuilder { /** - * Regular expression for auto increment IDs - * - * @var string - */ + * Regular expression for auto increment IDs + * + * @var string + */ const ID = '[0-9]+'; /** - * Regular expression for UUIDs - * - * @var string - */ + * Regular expression for UUIDs + * + * @var string + */ const UUID = '[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}'; /** diff --git a/src/Routing/Router.php b/src/Routing/Router.php index cf0effee493..82c43169594 100644 --- a/src/Routing/Router.php +++ b/src/Routing/Router.php @@ -59,45 +59,45 @@ class Router protected static $_fullBaseUrl; /** - * Regular expression for action names - * - * @var string - */ + * Regular expression for action names + * + * @var string + */ const ACTION = 'index|show|add|create|edit|update|remove|del|delete|view|item'; /** - * Regular expression for years - * - * @var string - */ + * Regular expression for years + * + * @var string + */ const YEAR = '[12][0-9]{3}'; /** - * Regular expression for months - * - * @var string - */ + * Regular expression for months + * + * @var string + */ const MONTH = '0[1-9]|1[012]'; /** - * Regular expression for days - * - * @var string - */ + * Regular expression for days + * + * @var string + */ const DAY = '0[1-9]|[12][0-9]|3[01]'; /** - * Regular expression for auto increment IDs - * - * @var string - */ + * Regular expression for auto increment IDs + * + * @var string + */ const ID = '[0-9]+'; /** - * Regular expression for UUIDs - * - * @var string - */ + * Regular expression for UUIDs + * + * @var string + */ const UUID = '[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}'; protected static $_collection; diff --git a/src/Shell/ServerShell.php b/src/Shell/ServerShell.php index a2d66156d0e..d52badb6ec9 100644 --- a/src/Shell/ServerShell.php +++ b/src/Shell/ServerShell.php @@ -26,17 +26,17 @@ class ServerShell extends Shell { /** - * Default ServerHost - * - * @var string - */ + * Default ServerHost + * + * @var string + */ const DEFAULT_HOST = 'localhost'; /** - * Default ListenPort - * - * @var int - */ + * Default ListenPort + * + * @var int + */ const DEFAULT_PORT = 8765; /** diff --git a/src/View/Helper/FormHelper.php b/src/View/Helper/FormHelper.php index fed88157b79..f20423c2a4f 100644 --- a/src/View/Helper/FormHelper.php +++ b/src/View/Helper/FormHelper.php @@ -137,11 +137,11 @@ class FormHelper extends Helper public $fields = []; /** - * Constant used internally to skip the securing process, - * and neither add the field to the hash or to the unlocked fields. - * - * @var string - */ + * Constant used internally to skip the securing process, + * and neither add the field to the hash or to the unlocked fields. + * + * @var string + */ const SECURE_SKIP = 'skip'; /** diff --git a/src/View/View.php b/src/View/View.php index 4452cafaa13..cd8264992f2 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -262,24 +262,24 @@ class View protected $_stack = []; /** - * Constant for view file type 'view' - * - * @var string - */ + * Constant for view file type 'view' + * + * @var string + */ const TYPE_VIEW = 'view'; /** - * Constant for view file type 'element' - * - * @var string - */ + * Constant for view file type 'element' + * + * @var string + */ const TYPE_ELEMENT = 'element'; /** - * Constant for view file type 'layout' - * - * @var string - */ + * Constant for view file type 'layout' + * + * @var string + */ const TYPE_LAYOUT = 'layout'; /** diff --git a/src/View/ViewBlock.php b/src/View/ViewBlock.php index cef7c4c003a..a490da32583 100644 --- a/src/View/ViewBlock.php +++ b/src/View/ViewBlock.php @@ -27,17 +27,17 @@ class ViewBlock { /** - * Append content - * - * @var string - */ + * Append content + * + * @var string + */ const APPEND = 'append'; /** - * Prepend content - * - * @var string - */ + * Prepend content + * + * @var string + */ const PREPEND = 'prepend'; /**