Skip to content

Commit 212c7ad

Browse files
Fixed phpcs static test failures
1 parent 667aa25 commit 212c7ad

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Category.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Category extends AbstractResource
5555
protected $_isActiveAttributeId = null;
5656

5757
/**
58-
* Store id
58+
* Id of store
5959
*
6060
* @var int
6161
*/
@@ -69,14 +69,14 @@ class Category extends AbstractResource
6969
protected $_eventManager = null;
7070

7171
/**
72-
* Category collection factory
72+
* Collection factory of category
7373
*
7474
* @var \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory
7575
*/
7676
protected $_categoryCollectionFactory;
7777

7878
/**
79-
* Category tree factory
79+
* Tree factory of category
8080
*
8181
* @var \Magento\Catalog\Model\ResourceModel\Category\TreeFactory
8282
*/

app/code/Magento/CatalogUrlRewrite/Observer/AfterImportDataObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AfterImportDataObserver implements ObserverInterface
4646
/**
4747
* Url Key Attribute
4848
*/
49-
const URL_KEY_ATTRIBUTE_CODE = 'url_key';
49+
public const URL_KEY_ATTRIBUTE_CODE = 'url_key';
5050

5151
/**
5252
* @var StoreViewService

app/code/Magento/Customer/Model/AccountManagement.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -73,145 +73,145 @@ class AccountManagement implements AccountManagementInterface
7373
* @deprecated Get rid of Helpers in Password Security Management
7474
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
7575
*/
76-
const XML_PATH_REGISTER_EMAIL_TEMPLATE = 'customer/create_account/email_template';
76+
public const XML_PATH_REGISTER_EMAIL_TEMPLATE = 'customer/create_account/email_template';
7777

7878
/**
7979
* Configuration paths for register no password email template
8080
*
8181
* @deprecated Get rid of Helpers in Password Security Management
8282
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
8383
*/
84-
const XML_PATH_REGISTER_NO_PASSWORD_EMAIL_TEMPLATE = 'customer/create_account/email_no_password_template';
84+
public const XML_PATH_REGISTER_NO_PASSWORD_EMAIL_TEMPLATE = 'customer/create_account/email_no_password_template';
8585

8686
/**
8787
* Configuration paths for remind email identity
8888
*
8989
* @deprecated Get rid of Helpers in Password Security Management
9090
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
9191
*/
92-
const XML_PATH_REGISTER_EMAIL_IDENTITY = 'customer/create_account/email_identity';
92+
public const XML_PATH_REGISTER_EMAIL_IDENTITY = 'customer/create_account/email_identity';
9393

9494
/**
9595
* Configuration paths for remind email template
9696
*
9797
* @deprecated Get rid of Helpers in Password Security Management
9898
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
9999
*/
100-
const XML_PATH_REMIND_EMAIL_TEMPLATE = 'customer/password/remind_email_template';
100+
public const XML_PATH_REMIND_EMAIL_TEMPLATE = 'customer/password/remind_email_template';
101101

102102
/**
103103
* Configuration paths for forgot email email template
104104
*
105105
* @deprecated Get rid of Helpers in Password Security Management
106106
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
107107
*/
108-
const XML_PATH_FORGOT_EMAIL_TEMPLATE = 'customer/password/forgot_email_template';
108+
public const XML_PATH_FORGOT_EMAIL_TEMPLATE = 'customer/password/forgot_email_template';
109109

110110
/**
111111
* Configuration paths for forgot email identity
112112
*
113113
* @deprecated Get rid of Helpers in Password Security Management
114114
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
115115
*/
116-
const XML_PATH_FORGOT_EMAIL_IDENTITY = 'customer/password/forgot_email_identity';
116+
public const XML_PATH_FORGOT_EMAIL_IDENTITY = 'customer/password/forgot_email_identity';
117117

118118
/**
119119
* Configuration paths for account confirmation required
120120
*
121121
* @deprecated Get rid of Helpers in Password Security Management
122122
* @see AccountConfirmation::XML_PATH_IS_CONFIRM
123123
*/
124-
const XML_PATH_IS_CONFIRM = 'customer/create_account/confirm';
124+
public const XML_PATH_IS_CONFIRM = 'customer/create_account/confirm';
125125

126126
/**
127127
* Configuration paths for account confirmation email template
128128
*
129129
* @deprecated Get rid of Helpers in Password Security Management
130130
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
131131
*/
132-
const XML_PATH_CONFIRM_EMAIL_TEMPLATE = 'customer/create_account/email_confirmation_template';
132+
public const XML_PATH_CONFIRM_EMAIL_TEMPLATE = 'customer/create_account/email_confirmation_template';
133133

134134
/**
135135
* Configuration paths for confirmation confirmed email template
136136
*
137137
* @deprecated Get rid of Helpers in Password Security Management
138138
* @see EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
139139
*/
140-
const XML_PATH_CONFIRMED_EMAIL_TEMPLATE = 'customer/create_account/email_confirmed_template';
140+
public const XML_PATH_CONFIRMED_EMAIL_TEMPLATE = 'customer/create_account/email_confirmed_template';
141141

142142
/**
143143
* Constants for the type of new account email to be sent
144144
*
145145
* @deprecated Get rid of Helpers in Password Security Management
146146
* @see EmailNotificationInterface::NEW_ACCOUNT_EMAIL_REGISTERED
147147
*/
148-
const NEW_ACCOUNT_EMAIL_REGISTERED = 'registered';
148+
public const NEW_ACCOUNT_EMAIL_REGISTERED = 'registered';
149149

150150
/**
151151
* Welcome email, when password setting is required
152152
*
153153
* @deprecated Get rid of Helpers in Password Security Management
154154
* @see EmailNotificationInterface::NEW_ACCOUNT_EMAIL_REGISTERED
155155
*/
156-
const NEW_ACCOUNT_EMAIL_REGISTERED_NO_PASSWORD = 'registered_no_password';
156+
public const NEW_ACCOUNT_EMAIL_REGISTERED_NO_PASSWORD = 'registered_no_password';
157157

158158
/**
159159
* Welcome email, when confirmation is enabled
160160
*
161161
* @deprecated Get rid of Helpers in Password Security Management
162162
* @see EmailNotificationInterface::NEW_ACCOUNT_EMAIL_REGISTERED
163163
*/
164-
const NEW_ACCOUNT_EMAIL_CONFIRMATION = 'confirmation';
164+
public const NEW_ACCOUNT_EMAIL_CONFIRMATION = 'confirmation';
165165

166166
/**
167167
* Confirmation email, when account is confirmed
168168
*
169169
* @deprecated Get rid of Helpers in Password Security Management
170170
* @see EmailNotificationInterface::NEW_ACCOUNT_EMAIL_REGISTERED
171171
*/
172-
const NEW_ACCOUNT_EMAIL_CONFIRMED = 'confirmed';
172+
public const NEW_ACCOUNT_EMAIL_CONFIRMED = 'confirmed';
173173

174174
/**
175175
* Constants for types of emails to send out.
176176
* pdl:
177177
* forgot, remind, reset email templates
178178
*/
179-
const EMAIL_REMINDER = 'email_reminder';
179+
public const EMAIL_REMINDER = 'email_reminder';
180180

181-
const EMAIL_RESET = 'email_reset';
181+
public const EMAIL_RESET = 'email_reset';
182182

183183
/**
184184
* Configuration path to customer password minimum length
185185
*/
186-
const XML_PATH_MINIMUM_PASSWORD_LENGTH = 'customer/password/minimum_password_length';
186+
public const XML_PATH_MINIMUM_PASSWORD_LENGTH = 'customer/password/minimum_password_length';
187187

188188
/**
189189
* Configuration path to customer password required character classes number
190190
*/
191-
const XML_PATH_REQUIRED_CHARACTER_CLASSES_NUMBER = 'customer/password/required_character_classes_number';
191+
public const XML_PATH_REQUIRED_CHARACTER_CLASSES_NUMBER = 'customer/password/required_character_classes_number';
192192

193193
/**
194194
* Configuration path to customer reset password email template
195195
*
196196
* @deprecated Get rid of Helpers in Password Security Management
197197
* @see Magento/Customer/Model/EmailNotification::XML_PATH_REGISTER_EMAIL_TEMPLATE
198198
*/
199-
const XML_PATH_RESET_PASSWORD_TEMPLATE = 'customer/password/reset_password_template';
199+
public const XML_PATH_RESET_PASSWORD_TEMPLATE = 'customer/password/reset_password_template';
200200

201201
/**
202202
* Minimum password length
203203
*
204204
* @deprecated Get rid of Helpers in Password Security Management
205205
* @see \Magento\Customer\Model\AccountManagement::XML_PATH_MINIMUM_PASSWORD_LENGTH
206206
*/
207-
const MIN_PASSWORD_LENGTH = 6;
207+
public const MIN_PASSWORD_LENGTH = 6;
208208

209209
/**
210210
* Authorization level of a basic admin session
211211
*
212212
* @see _isAllowed()
213213
*/
214-
const ADMIN_RESOURCE = 'Magento_Customer::manage';
214+
public const ADMIN_RESOURCE = 'Magento_Customer::manage';
215215

216216
/**
217217
* @var CustomerFactory

0 commit comments

Comments
 (0)