Skip to content

Commit 4c901e6

Browse files
silinmykolaandrewbess
authored andcommitted
fix static tests
1 parent 5ac9d7c commit 4c901e6

File tree

5 files changed

+40
-40
lines changed

5 files changed

+40
-40
lines changed

app/code/Magento/Catalog/Model/Indexer/Category/Flat/AbstractAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class AbstractAction
2828
/**
2929
* Suffix for table to show it is temporary
3030
*/
31-
const TEMPORARY_TABLE_SUFFIX = '_tmp';
31+
public const TEMPORARY_TABLE_SUFFIX = '_tmp';
3232

3333
/**
3434
* @var array

app/code/Magento/SalesRule/Model/Rule.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,26 +70,26 @@ class Rule extends \Magento\Rule\Model\AbstractModel
7070
/**
7171
* Coupon types
7272
*/
73-
const COUPON_TYPE_NO_COUPON = 1;
73+
public const COUPON_TYPE_NO_COUPON = 1;
7474

75-
const COUPON_TYPE_SPECIFIC = 2;
75+
public const COUPON_TYPE_SPECIFIC = 2;
7676

77-
const COUPON_TYPE_AUTO = 3;
77+
public const COUPON_TYPE_AUTO = 3;
7878

7979
/**
8080
* Rule type actions
8181
*/
82-
const TO_PERCENT_ACTION = 'to_percent';
82+
public const TO_PERCENT_ACTION = 'to_percent';
8383

84-
const BY_PERCENT_ACTION = 'by_percent';
84+
public const BY_PERCENT_ACTION = 'by_percent';
8585

86-
const TO_FIXED_ACTION = 'to_fixed';
86+
public const TO_FIXED_ACTION = 'to_fixed';
8787

88-
const BY_FIXED_ACTION = 'by_fixed';
88+
public const BY_FIXED_ACTION = 'by_fixed';
8989

90-
const CART_FIXED_ACTION = 'cart_fixed';
90+
public const CART_FIXED_ACTION = 'cart_fixed';
9191

92-
const BUY_X_GET_Y_ACTION = 'buy_x_get_y';
92+
public const BUY_X_GET_Y_ACTION = 'buy_x_get_y';
9393

9494
/**
9595
* Store coupon code generator instance

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,82 +46,82 @@ class Store extends AbstractExtensibleModel implements
4646
/**
4747
* Store Id key name
4848
*/
49-
const STORE_ID = 'store_id';
49+
public const STORE_ID = 'store_id';
5050

5151
/**
5252
* Entity name
5353
*/
54-
const ENTITY = 'store';
54+
public const ENTITY = 'store';
5555

5656
/**
5757
* Parameter used to determine app context.
5858
*/
59-
const CUSTOM_ENTRY_POINT_PARAM = 'custom_entry_point';
59+
public const CUSTOM_ENTRY_POINT_PARAM = 'custom_entry_point';
6060

61-
/**#@+
61+
/**
6262
* Configuration paths
6363
*/
64-
const XML_PATH_STORE_IN_URL = 'web/url/use_store';
64+
public const XML_PATH_STORE_IN_URL = 'web/url/use_store';
6565

66-
const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites';
66+
public const XML_PATH_USE_REWRITES = 'web/seo/use_rewrites';
6767

68-
const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url';
68+
public const XML_PATH_UNSECURE_BASE_URL = 'web/unsecure/base_url';
6969

70-
const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url';
70+
public const XML_PATH_SECURE_BASE_URL = 'web/secure/base_url';
7171

72-
const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend';
72+
public const XML_PATH_SECURE_IN_FRONTEND = 'web/secure/use_in_frontend';
7373

74-
const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml';
74+
public const XML_PATH_SECURE_IN_ADMINHTML = 'web/secure/use_in_adminhtml';
7575

76-
const XML_PATH_ENABLE_HSTS = 'web/secure/enable_hsts';
76+
public const XML_PATH_ENABLE_HSTS = 'web/secure/enable_hsts';
7777

78-
const XML_PATH_ENABLE_UPGRADE_INSECURE = 'web/secure/enable_upgrade_insecure';
78+
public const XML_PATH_ENABLE_UPGRADE_INSECURE = 'web/secure/enable_upgrade_insecure';
7979

80-
const XML_PATH_SECURE_BASE_LINK_URL = 'web/secure/base_link_url';
80+
public const XML_PATH_SECURE_BASE_LINK_URL = 'web/secure/base_link_url';
8181

82-
const XML_PATH_UNSECURE_BASE_LINK_URL = 'web/unsecure/base_link_url';
82+
public const XML_PATH_UNSECURE_BASE_LINK_URL = 'web/unsecure/base_link_url';
8383

84-
const XML_PATH_SECURE_BASE_STATIC_URL = 'web/secure/base_static_url';
84+
public const XML_PATH_SECURE_BASE_STATIC_URL = 'web/secure/base_static_url';
8585

86-
const XML_PATH_UNSECURE_BASE_STATIC_URL = 'web/unsecure/base_static_url';
86+
public const XML_PATH_UNSECURE_BASE_STATIC_URL = 'web/unsecure/base_static_url';
8787

88-
const XML_PATH_SECURE_BASE_MEDIA_URL = 'web/secure/base_media_url';
88+
public const XML_PATH_SECURE_BASE_MEDIA_URL = 'web/secure/base_media_url';
8989

90-
const XML_PATH_UNSECURE_BASE_MEDIA_URL = 'web/unsecure/base_media_url';
90+
public const XML_PATH_UNSECURE_BASE_MEDIA_URL = 'web/unsecure/base_media_url';
9191

92-
const XML_PATH_PRICE_SCOPE = 'catalog/price/scope';
92+
public const XML_PATH_PRICE_SCOPE = 'catalog/price/scope';
9393

94-
const PRICE_SCOPE_GLOBAL = 0;
94+
public const PRICE_SCOPE_GLOBAL = 0;
9595

96-
const PRICE_SCOPE_WEBSITE = 1;
96+
public const PRICE_SCOPE_WEBSITE = 1;
9797

98-
const ADMIN_CODE = 'admin';
98+
public const ADMIN_CODE = 'admin';
9999

100100
/**
101101
* Tag to use to cache stores.
102102
*/
103-
const CACHE_TAG = 'store';
103+
public const CACHE_TAG = 'store';
104104

105105
/**
106106
* Script name, which returns all the images
107107
*/
108-
const MEDIA_REWRITE_SCRIPT = 'get.php/';
108+
public const MEDIA_REWRITE_SCRIPT = 'get.php/';
109109

110110
/**
111111
* A placeholder for generating base URL
112112
*/
113-
const BASE_URL_PLACEHOLDER = '{{base_url}}';
113+
public const BASE_URL_PLACEHOLDER = '{{base_url}}';
114114

115115
/**
116116
* Identifier of default store
117117
* used for loading data of default scope
118118
*/
119-
const DEFAULT_STORE_ID = 0;
119+
public const DEFAULT_STORE_ID = 0;
120120

121121
/**
122122
* Default store Id (for install)
123123
*/
124-
const DISTRO_STORE_ID = 1;
124+
public const DISTRO_STORE_ID = 1;
125125

126126
/**
127127
* @var \Magento\Framework\App\Cache\Type\Config

app/code/Magento/Tax/Model/TaxClass/Repository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
*/
2828
class Repository implements \Magento\Tax\Api\TaxClassRepositoryInterface
2929
{
30+
public const CLASS_ID_NOT_ALLOWED = 'class_id is not expected for this request.';
31+
3032
/**
3133
* @var TaxClassCollectionFactory
3234
*/
@@ -42,8 +44,6 @@ class Repository implements \Magento\Tax\Api\TaxClassRepositoryInterface
4244
*/
4345
protected $classModelRegistry;
4446

45-
const CLASS_ID_NOT_ALLOWED = 'class_id is not expected for this request.';
46-
4747
/**
4848
* @var SearchCriteriaBuilder
4949
*/

lib/internal/Magento/Framework/Stdlib/ArrayManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ArrayManager
1616
/**
1717
* Default node delimiter for path
1818
*/
19-
const DEFAULT_PATH_DELIMITER = '/';
19+
public const DEFAULT_PATH_DELIMITER = '/';
2020

2121
/**
2222
* @var array

0 commit comments

Comments
 (0)