Skip to content

Commit 5293e87

Browse files
committed
Fixed Static Test
1 parent 6e70a52 commit 5293e87

File tree

5 files changed

+59
-59
lines changed

5 files changed

+59
-59
lines changed

app/code/Magento/Catalog/Model/Product/Option.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ class Option extends AbstractExtensibleModel implements ProductCustomOptionInter
5656
/**#@+
5757
* Constants
5858
*/
59-
const KEY_PRODUCT_SKU = 'product_sku';
60-
const KEY_OPTION_ID = 'option_id';
61-
const KEY_TITLE = 'title';
62-
const KEY_TYPE = 'type';
63-
const KEY_SORT_ORDER = 'sort_order';
64-
const KEY_IS_REQUIRE = 'is_require';
65-
const KEY_PRICE = 'price';
66-
const KEY_PRICE_TYPE = 'price_type';
67-
const KEY_SKU = 'sku';
68-
const KEY_FILE_EXTENSION = 'file_extension';
69-
const KEY_MAX_CHARACTERS = 'max_characters';
70-
const KEY_IMAGE_SIZE_Y = 'image_size_y';
71-
const KEY_IMAGE_SIZE_X = 'image_size_x';
59+
public const KEY_PRODUCT_SKU = 'product_sku';
60+
public const KEY_OPTION_ID = 'option_id';
61+
public const KEY_TITLE = 'title';
62+
public const KEY_TYPE = 'type';
63+
public const KEY_SORT_ORDER = 'sort_order';
64+
public const KEY_IS_REQUIRE = 'is_require';
65+
public const KEY_PRICE = 'price';
66+
public const KEY_PRICE_TYPE = 'price_type';
67+
public const KEY_SKU = 'sku';
68+
public const KEY_FILE_EXTENSION = 'file_extension';
69+
public const KEY_MAX_CHARACTERS = 'max_characters';
70+
public const KEY_IMAGE_SIZE_Y = 'image_size_y';
71+
public const KEY_IMAGE_SIZE_X = 'image_size_x';
7272
/**#@-*/
7373

7474
/**

app/code/Magento/CustomerImportExport/Model/Import/AbstractCustomer.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,30 @@ abstract class AbstractCustomer extends \Magento\ImportExport\Model\Import\Entit
2727
* Names that begins with underscore is not an attribute. This name convention is for
2828
* to avoid interference with same attribute name.
2929
*/
30-
const COLUMN_WEBSITE = '_website';
30+
public const COLUMN_WEBSITE = '_website';
3131

32-
const COLUMN_EMAIL = '_email';
32+
public const COLUMN_EMAIL = '_email';
3333

34-
const COLUMN_DEFAULT_BILLING = 'default_billing';
34+
public const COLUMN_DEFAULT_BILLING = 'default_billing';
3535

36-
const COLUMN_DEFAULT_SHIPPING = 'default_shipping';
36+
public const COLUMN_DEFAULT_SHIPPING = 'default_shipping';
3737

3838
/**#@-*/
3939

4040
/**#@+
4141
* Error codes
4242
*/
43-
const ERROR_WEBSITE_IS_EMPTY = 'websiteIsEmpty';
43+
public const ERROR_WEBSITE_IS_EMPTY = 'websiteIsEmpty';
4444

45-
const ERROR_EMAIL_IS_EMPTY = 'emailIsEmpty';
45+
public const ERROR_EMAIL_IS_EMPTY = 'emailIsEmpty';
4646

47-
const ERROR_INVALID_WEBSITE = 'invalidWebsite';
47+
public const ERROR_INVALID_WEBSITE = 'invalidWebsite';
4848

49-
const ERROR_INVALID_EMAIL = 'invalidEmail';
49+
public const ERROR_INVALID_EMAIL = 'invalidEmail';
5050

51-
const ERROR_VALUE_IS_REQUIRED = 'valueIsRequired';
51+
public const ERROR_VALUE_IS_REQUIRED = 'valueIsRequired';
5252

53-
const ERROR_CUSTOMER_NOT_FOUND = 'customerNotFound';
53+
public const ERROR_CUSTOMER_NOT_FOUND = 'customerNotFound';
5454

5555
/**#@-*/
5656

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ class Carrier extends \Magento\Dhl\Model\AbstractDhl implements \Magento\Shippin
3636
/**#@+
3737
* Carrier Product indicator
3838
*/
39-
const DHL_CONTENT_TYPE_DOC = 'D';
40-
const DHL_CONTENT_TYPE_NON_DOC = 'N';
39+
public const DHL_CONTENT_TYPE_DOC = 'D';
40+
public const DHL_CONTENT_TYPE_NON_DOC = 'N';
4141
/**#@-*/
4242

4343
/**#@+
4444
* Minimum allowed values for shipping package dimensions
4545
*/
46-
const DIMENSION_MIN_CM = 3;
47-
const DIMENSION_MIN_IN = 1;
46+
public const DIMENSION_MIN_CM = 3;
47+
public const DIMENSION_MIN_IN = 1;
4848
/**#@-*/
4949

5050
/**
5151
* Config path to UE country list
5252
*/
53-
const XML_PATH_EU_COUNTRIES_LIST = 'general/country/eu_countries';
53+
public const XML_PATH_EU_COUNTRIES_LIST = 'general/country/eu_countries';
5454

5555
/**
5656
* Container types that could be customized
@@ -62,7 +62,7 @@ class Carrier extends \Magento\Dhl\Model\AbstractDhl implements \Magento\Shippin
6262
/**
6363
* Code of the carrier
6464
*/
65-
const CODE = 'dhl';
65+
public const CODE = 'dhl';
6666

6767
/**
6868
* DHL service prefixes used for message reference

app/code/Magento/Shipping/Model/Carrier/AbstractCarrierOnline.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
*/
2323
abstract class AbstractCarrierOnline extends AbstractCarrier
2424
{
25-
const USA_COUNTRY_ID = 'US';
25+
public const USA_COUNTRY_ID = 'US';
2626

27-
const PUERTORICO_COUNTRY_ID = 'PR';
27+
public const PUERTORICO_COUNTRY_ID = 'PR';
2828

29-
const GUAM_COUNTRY_ID = 'GU';
29+
public const GUAM_COUNTRY_ID = 'GU';
3030

31-
const GUAM_REGION_CODE = 'GU';
31+
public const GUAM_REGION_CODE = 'GU';
3232

3333
/**
3434
* Array of quotes

app/code/Magento/Store/Model/Store.php

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,89 +45,89 @@ class Store extends AbstractExtensibleModel implements
4545
/**
4646
* Store Id key name
4747
*/
48-
const STORE_ID = 'store_id';
48+
public const STORE_ID = 'store_id';
4949

5050
/**
5151
* Entity name
5252
*/
53-
const ENTITY = 'store';
53+
public const ENTITY = 'store';
5454

5555
/**
5656
* Parameter used to determine app context.
5757
*/
58-
const CUSTOM_ENTRY_POINT_PARAM = 'custom_entry_point';
58+
public const CUSTOM_ENTRY_POINT_PARAM = 'custom_entry_point';
5959

6060
/**#@+
6161
* Configuration paths
6262
*/
63-
const XML_PATH_STORE_IN_URL = 'web/url/use_store';
63+
public const XML_PATH_STORE_IN_URL = 'web/url/use_store';
6464

65-
const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites';
65+
public const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites';
6666

67-
const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url';
67+
public const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url';
6868

69-
const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url';
69+
public const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url';
7070

71-
const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend';
71+
public const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend';
7272

73-
const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml';
73+
public const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml';
7474

75-
const XML_PATH_ENABLE_HSTS = 'web/secure/enable_hsts';
75+
public const XML_PATH_ENABLE_HSTS = 'web/secure/enable_hsts';
7676

77-
const XML_PATH_ENABLE_UPGRADE_INSECURE = 'web/secure/enable_upgrade_insecure';
77+
public const XML_PATH_ENABLE_UPGRADE_INSECURE = 'web/secure/enable_upgrade_insecure';
7878

79-
const XML_PATH_SECURE_BASE_LINK_URL = 'web/secure/base_link_url';
79+
public const XML_PATH_SECURE_BASE_LINK_URL = 'web/secure/base_link_url';
8080

81-
const XML_PATH_UNSECURE_BASE_LINK_URL = 'web/unsecure/base_link_url';
81+
public const XML_PATH_UNSECURE_BASE_LINK_URL = 'web/unsecure/base_link_url';
8282

83-
const XML_PATH_SECURE_BASE_STATIC_URL = 'web/secure/base_static_url';
83+
public const XML_PATH_SECURE_BASE_STATIC_URL = 'web/secure/base_static_url';
8484

85-
const XML_PATH_UNSECURE_BASE_STATIC_URL = 'web/unsecure/base_static_url';
85+
public const XML_PATH_UNSECURE_BASE_STATIC_URL = 'web/unsecure/base_static_url';
8686

87-
const XML_PATH_SECURE_BASE_MEDIA_URL = 'web/secure/base_media_url';
87+
public const XML_PATH_SECURE_BASE_MEDIA_URL = 'web/secure/base_media_url';
8888

89-
const XML_PATH_UNSECURE_BASE_MEDIA_URL = 'web/unsecure/base_media_url';
89+
public const XML_PATH_UNSECURE_BASE_MEDIA_URL = 'web/unsecure/base_media_url';
9090

91-
const XML_PATH_PRICE_SCOPE = 'catalog/price/scope';
91+
public const XML_PATH_PRICE_SCOPE = 'catalog/price/scope';
9292

9393
/**#@-*/
9494

9595
/**#@+
9696
* Price scope constants
9797
*/
98-
const PRICE_SCOPE_GLOBAL = 0;
98+
public const PRICE_SCOPE_GLOBAL = 0;
9999

100-
const PRICE_SCOPE_WEBSITE = 1;
100+
public const PRICE_SCOPE_WEBSITE = 1;
101101

102102
/**#@-*/
103103

104-
const ADMIN_CODE = 'admin';
104+
public const ADMIN_CODE = 'admin';
105105

106106
/**
107107
* Tag to use to cache stores.
108108
*/
109-
const CACHE_TAG = 'store';
109+
public const CACHE_TAG = 'store';
110110

111111
/**
112112
* Script name, which returns all the images
113113
*/
114-
const MEDIA_REWRITE_SCRIPT = 'get.php/';
114+
public const MEDIA_REWRITE_SCRIPT = 'get.php/';
115115

116116
/**
117117
* A placeholder for generating base URL
118118
*/
119-
const BASE_URL_PLACEHOLDER = '{{base_url}}';
119+
public const BASE_URL_PLACEHOLDER = '{{base_url}}';
120120

121121
/**
122122
* Identifier of default store
123123
* used for loading data of default scope
124124
*/
125-
const DEFAULT_STORE_ID = 0;
125+
public const DEFAULT_STORE_ID = 0;
126126

127127
/**
128128
* Default store Id (for install)
129129
*/
130-
const DISTRO_STORE_ID = 1;
130+
public const DISTRO_STORE_ID = 1;
131131

132132
/**
133133
* @var \Magento\Framework\App\Cache\Type\Config

0 commit comments

Comments
 (0)