diff --git a/modules/backend/behaviors/FormController.php b/modules/backend/behaviors/FormController.php index e484ef9353..645332cb62 100644 --- a/modules/backend/behaviors/FormController.php +++ b/modules/backend/behaviors/FormController.php @@ -46,17 +46,17 @@ class FormController extends ControllerBehavior /** * @var string Default context for "create" pages. */ - const CONTEXT_CREATE = 'create'; + public const CONTEXT_CREATE = 'create'; /** * @var string Default context for "update" pages. */ - const CONTEXT_UPDATE = 'update'; + public const CONTEXT_UPDATE = 'update'; /** * @var string Default context for "preview" pages. */ - const CONTEXT_PREVIEW = 'preview'; + public const CONTEXT_PREVIEW = 'preview'; /** * @var \Backend\Classes\Controller|FormController Reference to the back end controller. diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 112c1795d1..337e114a42 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -35,17 +35,17 @@ class RelationController extends ControllerBehavior /** * @var const Postback parameter for the active relationship field. */ - const PARAM_FIELD = '_relation_field'; + public const PARAM_FIELD = '_relation_field'; /** * @var const Postback parameter for the active management mode. */ - const PARAM_MODE = '_relation_mode'; + public const PARAM_MODE = '_relation_mode'; /** * @var const Postback parameter for read only mode. */ - const PARAM_EXTRA_CONFIG = '_relation_extra_config'; + public const PARAM_EXTRA_CONFIG = '_relation_extra_config'; /** * @var Backend\Widgets\Search Reference to the search widget object. diff --git a/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php b/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php index f32248befe..95c4678c1e 100644 --- a/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php +++ b/modules/backend/behaviors/importexportcontroller/TranscodeFilter.php @@ -13,7 +13,7 @@ */ class TranscodeFilter extends php_user_filter { - const FILTER_NAME = 'winter.csv.transcode.'; + public const FILTER_NAME = 'winter.csv.transcode.'; protected $encodingFrom = 'auto'; diff --git a/modules/backend/classes/FormField.php b/modules/backend/classes/FormField.php index d861e144b3..3a19e814a5 100644 --- a/modules/backend/classes/FormField.php +++ b/modules/backend/classes/FormField.php @@ -21,12 +21,12 @@ class FormField /** * @var int Value returned when the form field should not contribute any save data. */ - const NO_SAVE_DATA = -1; + public const NO_SAVE_DATA = -1; /** * @var string A special character in yaml config files to indicate a field higher in hierarchy */ - const HIERARCHY_UP = '^'; + public const HIERARCHY_UP = '^'; /** * @var string Form field name. diff --git a/modules/backend/classes/FormTabs.php b/modules/backend/classes/FormTabs.php index 462671ad4d..0e96caedf8 100644 --- a/modules/backend/classes/FormTabs.php +++ b/modules/backend/classes/FormTabs.php @@ -16,9 +16,9 @@ */ class FormTabs implements IteratorAggregate, ArrayAccess { - const SECTION_OUTSIDE = 'outside'; - const SECTION_PRIMARY = 'primary'; - const SECTION_SECONDARY = 'secondary'; + public const SECTION_OUTSIDE = 'outside'; + public const SECTION_PRIMARY = 'primary'; + public const SECTION_SECONDARY = 'secondary'; /** * @var string Specifies the form section these tabs belong to. diff --git a/modules/backend/formwidgets/ColorPicker.php b/modules/backend/formwidgets/ColorPicker.php index 068bdbc696..457b1dadcc 100644 --- a/modules/backend/formwidgets/ColorPicker.php +++ b/modules/backend/formwidgets/ColorPicker.php @@ -18,7 +18,7 @@ class ColorPicker extends FormWidgetBase { // All color formats supported - const ALL_FORMATS = ['cmyk', 'hex', 'hsl', 'rgb']; + public const ALL_FORMATS = ['cmyk', 'hex', 'hsl', 'rgb']; // // Configurable properties diff --git a/modules/backend/formwidgets/TagList.php b/modules/backend/formwidgets/TagList.php index 8841d29393..755d83e166 100644 --- a/modules/backend/formwidgets/TagList.php +++ b/modules/backend/formwidgets/TagList.php @@ -12,9 +12,9 @@ class TagList extends FormWidgetBase { use \Backend\Traits\FormModelWidget; - const MODE_ARRAY = 'array'; - const MODE_STRING = 'string'; - const MODE_RELATION = 'relation'; + public const MODE_ARRAY = 'array'; + public const MODE_STRING = 'string'; + public const MODE_RELATION = 'relation'; // // Configurable properties diff --git a/modules/backend/models/BrandSetting.php b/modules/backend/models/BrandSetting.php index bd39d837dc..abb5d103e8 100644 --- a/modules/backend/models/BrandSetting.php +++ b/modules/backend/models/BrandSetting.php @@ -52,13 +52,13 @@ class BrandSetting extends Model */ public $cacheKey = 'backend::brand.custom_css'; - const PRIMARY_COLOR = '#34495e'; // Wet Asphalt - const SECONDARY_COLOR = '#e67e22'; // Pumpkin - const ACCENT_COLOR = '#3498db'; // Peter River + public const PRIMARY_COLOR = '#34495e'; // Wet Asphalt + public const SECONDARY_COLOR = '#e67e22'; // Pumpkin + public const ACCENT_COLOR = '#3498db'; // Peter River - const INLINE_MENU = 'inline'; - const TILE_MENU = 'tile'; - const COLLAPSE_MENU = 'collapse'; + public const INLINE_MENU = 'inline'; + public const TILE_MENU = 'tile'; + public const COLLAPSE_MENU = 'collapse'; /** * Validation rules diff --git a/modules/backend/models/Preference.php b/modules/backend/models/Preference.php index 03fa8f453d..954dcdc3de 100644 --- a/modules/backend/models/Preference.php +++ b/modules/backend/models/Preference.php @@ -22,7 +22,7 @@ class Preference extends Model { use \Winter\Storm\Database\Traits\Validation; - const DEFAULT_THEME = 'twilight'; + public const DEFAULT_THEME = 'twilight'; /** * @var array Behaviors implemented by this model. diff --git a/modules/backend/models/UserGroup.php b/modules/backend/models/UserGroup.php index 76970e9d17..3d0ed71d12 100644 --- a/modules/backend/models/UserGroup.php +++ b/modules/backend/models/UserGroup.php @@ -12,7 +12,7 @@ */ class UserGroup extends GroupBase { - const CODE_OWNERS = 'owners'; + public const CODE_OWNERS = 'owners'; /** * @var string The database table used by the model. diff --git a/modules/backend/models/UserRole.php b/modules/backend/models/UserRole.php index e4a002ac4b..1675bd07b7 100644 --- a/modules/backend/models/UserRole.php +++ b/modules/backend/models/UserRole.php @@ -13,8 +13,8 @@ */ class UserRole extends RoleBase { - const CODE_DEVELOPER = 'developer'; - const CODE_PUBLISHER = 'publisher'; + public const CODE_DEVELOPER = 'developer'; + public const CODE_PUBLISHER = 'publisher'; /** * @var string The database table used by the model. diff --git a/modules/backend/widgets/MediaManager.php b/modules/backend/widgets/MediaManager.php index c64dea69ef..05dd1f0219 100644 --- a/modules/backend/widgets/MediaManager.php +++ b/modules/backend/widgets/MediaManager.php @@ -25,17 +25,17 @@ class MediaManager extends WidgetBase use \Backend\Traits\UploadableWidget; use \Backend\Traits\PreferenceMaker; - const FOLDER_ROOT = '/'; + public const FOLDER_ROOT = '/'; - const VIEW_MODE_GRID = 'grid'; - const VIEW_MODE_LIST = 'list'; - const VIEW_MODE_TILES = 'tiles'; + public const VIEW_MODE_GRID = 'grid'; + public const VIEW_MODE_LIST = 'list'; + public const VIEW_MODE_TILES = 'tiles'; - const SELECTION_MODE_NORMAL = 'normal'; - const SELECTION_MODE_FIXED_RATIO = 'fixed-ratio'; - const SELECTION_MODE_FIXED_SIZE = 'fixed-size'; + public const SELECTION_MODE_NORMAL = 'normal'; + public const SELECTION_MODE_FIXED_RATIO = 'fixed-ratio'; + public const SELECTION_MODE_FIXED_SIZE = 'fixed-size'; - const FILTER_ALL = 'all'; + public const FILTER_ALL = 'all'; /** * @var boolean Determines whether the widget is in readonly mode or not. diff --git a/modules/backend/widgets/form/partials/_field_range.php b/modules/backend/widgets/form/partials/_field_range.php index 77f774821b..8370131227 100644 --- a/modules/backend/widgets/form/partials/_field_range.php +++ b/modules/backend/widgets/form/partials/_field_range.php @@ -28,7 +28,7 @@