Skip to content

Commit fcb9807

Browse files
karyna-txmav
authored andcommitted
34441: static tests failuers fixes
1 parent dedc55d commit fcb9807

File tree

3 files changed

+46
-48
lines changed

3 files changed

+46
-48
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -54,40 +54,40 @@ class Product extends AbstractEntity
5454
/**
5555
* Size of bunch - part of products to save in one step.
5656
*/
57-
const BUNCH_SIZE = 20;
57+
public const BUNCH_SIZE = 20;
5858

5959
/**
6060
* Size of bunch to delete attributes of products in one step.
6161
*/
62-
const ATTRIBUTE_DELETE_BUNCH = 1000;
62+
public const ATTRIBUTE_DELETE_BUNCH = 1000;
6363

6464
/**
6565
* Pseudo multi line separator in one cell.
6666
*
6767
* Can be used as custom option value delimiter or in configurable fields cells.
6868
*/
69-
const PSEUDO_MULTI_LINE_SEPARATOR = '|';
69+
public const PSEUDO_MULTI_LINE_SEPARATOR = '|';
7070

7171
/**
7272
* Symbol between Name and Value between Pairs.
7373
*/
74-
const PAIR_NAME_VALUE_SEPARATOR = '=';
74+
public const PAIR_NAME_VALUE_SEPARATOR = '=';
7575

7676
/**
7777
* Value that means all entities (e.g. websites, groups etc.)
7878
*/
79-
const VALUE_ALL = 'all';
79+
public const VALUE_ALL = 'all';
8080

8181
/**
8282
* Data row scopes.
8383
*/
84-
const SCOPE_DEFAULT = 1;
84+
public const SCOPE_DEFAULT = 1;
8585

86-
const SCOPE_WEBSITE = 2;
86+
public const SCOPE_WEBSITE = 2;
8787

88-
const SCOPE_STORE = 0;
88+
public const SCOPE_STORE = 0;
8989

90-
const SCOPE_NULL = -1;
90+
public const SCOPE_NULL = -1;
9191

9292
/**
9393
* Permanent column names.
@@ -99,77 +99,77 @@ class Product extends AbstractEntity
9999
/**
100100
* Column product store.
101101
*/
102-
const COL_STORE = '_store';
102+
public const COL_STORE = '_store';
103103

104104
/**
105105
* Column product store view code.
106106
*/
107-
const COL_STORE_VIEW_CODE = 'store_view_code';
107+
public const COL_STORE_VIEW_CODE = 'store_view_code';
108108

109109
/**
110110
* Column website.
111111
*/
112-
const COL_WEBSITE = 'website_code';
112+
public const COL_WEBSITE = 'website_code';
113113

114114
/**
115115
* Column product attribute set.
116116
*/
117-
const COL_ATTR_SET = '_attribute_set';
117+
public const COL_ATTR_SET = '_attribute_set';
118118

119119
/**
120120
* Column product type.
121121
*/
122-
const COL_TYPE = 'product_type';
122+
public const COL_TYPE = 'product_type';
123123

124124
/**
125125
* Column product category.
126126
*/
127-
const COL_CATEGORY = 'categories';
127+
public const COL_CATEGORY = 'categories';
128128

129129
/**
130130
* Column product visibility.
131131
*/
132-
const COL_VISIBILITY = 'visibility';
132+
public const COL_VISIBILITY = 'visibility';
133133

134134
/**
135135
* Column product sku.
136136
*/
137-
const COL_SKU = 'sku';
137+
public const COL_SKU = 'sku';
138138

139139
/**
140140
* Column product name.
141141
*/
142-
const COL_NAME = 'name';
142+
public const COL_NAME = 'name';
143143

144144
/**
145145
* Column product website.
146146
*/
147-
const COL_PRODUCT_WEBSITES = '_product_websites';
147+
public const COL_PRODUCT_WEBSITES = '_product_websites';
148148

149149
/**
150150
* Attribute code for media gallery.
151151
*/
152-
const MEDIA_GALLERY_ATTRIBUTE_CODE = 'media_gallery';
152+
public const MEDIA_GALLERY_ATTRIBUTE_CODE = 'media_gallery';
153153

154154
/**
155155
* Column media image.
156156
*/
157-
const COL_MEDIA_IMAGE = '_media_image';
157+
public const COL_MEDIA_IMAGE = '_media_image';
158158

159159
/**
160160
* Inventory use config label.
161161
*/
162-
const INVENTORY_USE_CONFIG = 'Use Config';
162+
public const INVENTORY_USE_CONFIG = 'Use Config';
163163

164164
/**
165165
* Prefix for inventory use config.
166166
*/
167-
const INVENTORY_USE_CONFIG_PREFIX = 'use_config_';
167+
public const INVENTORY_USE_CONFIG_PREFIX = 'use_config_';
168168

169169
/**
170170
* Url key attribute code
171171
*/
172-
const URL_KEY = 'url_key';
172+
public const URL_KEY = 'url_key';
173173

174174
/**
175175
* @var array
@@ -474,8 +474,6 @@ class Product extends AbstractEntity
474474
protected $_optionEntity;
475475

476476
/**
477-
* Catalog data
478-
*
479477
* @var \Magento\Catalog\Helper\Data
480478
*/
481479
protected $_catalogData = null;

app/code/Magento/Sales/Model/Order.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,59 +65,59 @@
6565
*/
6666
class Order extends AbstractModel implements EntityInterface, OrderInterface
6767
{
68-
const ENTITY = 'order';
68+
public const ENTITY = 'order';
6969

7070
/**
7171
* Order states
7272
*/
73-
const STATE_NEW = 'new';
73+
public const STATE_NEW = 'new';
7474

75-
const STATE_PENDING_PAYMENT = 'pending_payment';
75+
public const STATE_PENDING_PAYMENT = 'pending_payment';
7676

77-
const STATE_PROCESSING = 'processing';
77+
public const STATE_PROCESSING = 'processing';
7878

79-
const STATE_COMPLETE = 'complete';
79+
public const STATE_COMPLETE = 'complete';
8080

81-
const STATE_CLOSED = 'closed';
81+
public const STATE_CLOSED = 'closed';
8282

83-
const STATE_CANCELED = 'canceled';
83+
public const STATE_CANCELED = 'canceled';
8484

85-
const STATE_HOLDED = 'holded';
85+
public const STATE_HOLDED = 'holded';
8686

87-
const STATE_PAYMENT_REVIEW = 'payment_review';
87+
public const STATE_PAYMENT_REVIEW = 'payment_review';
8888

8989
/**
9090
* Order statuses
9191
*/
92-
const STATUS_FRAUD = 'fraud';
92+
public const STATUS_FRAUD = 'fraud';
9393

9494
/**
9595
* Order flags
9696
*/
97-
const ACTION_FLAG_CANCEL = 'cancel';
97+
public const ACTION_FLAG_CANCEL = 'cancel';
9898

99-
const ACTION_FLAG_HOLD = 'hold';
99+
public const ACTION_FLAG_HOLD = 'hold';
100100

101-
const ACTION_FLAG_UNHOLD = 'unhold';
101+
public const ACTION_FLAG_UNHOLD = 'unhold';
102102

103-
const ACTION_FLAG_EDIT = 'edit';
103+
public const ACTION_FLAG_EDIT = 'edit';
104104

105-
const ACTION_FLAG_CREDITMEMO = 'creditmemo';
105+
public const ACTION_FLAG_CREDITMEMO = 'creditmemo';
106106

107-
const ACTION_FLAG_INVOICE = 'invoice';
107+
public const ACTION_FLAG_INVOICE = 'invoice';
108108

109-
const ACTION_FLAG_REORDER = 'reorder';
109+
public const ACTION_FLAG_REORDER = 'reorder';
110110

111-
const ACTION_FLAG_SHIP = 'ship';
111+
public const ACTION_FLAG_SHIP = 'ship';
112112

113-
const ACTION_FLAG_COMMENT = 'comment';
113+
public const ACTION_FLAG_COMMENT = 'comment';
114114

115115
/**
116116
* Report date types
117117
*/
118-
const REPORT_DATE_TYPE_CREATED = 'created';
118+
public const REPORT_DATE_TYPE_CREATED = 'created';
119119

120-
const REPORT_DATE_TYPE_UPDATED = 'updated';
120+
public const REPORT_DATE_TYPE_UPDATED = 'updated';
121121

122122
/**
123123
* @var string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StringUtils
1616
/**
1717
* Default charset
1818
*/
19-
const ICONV_CHARSET = 'UTF-8';
19+
public const ICONV_CHARSET = 'UTF-8';
2020

2121
/**
2222
* Capitalize first letters and convert separators if needed

0 commit comments

Comments
 (0)