Skip to content

Commit 3fdf706

Browse files
committed
Static test issues fixed
1 parent 4e43c1a commit 3fdf706

File tree

21 files changed

+103
-103
lines changed

21 files changed

+103
-103
lines changed

app/code/Magento/Authorization/Model/UserContextInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ interface UserContextInterface
1717
/**#@+
1818
* User type
1919
*/
20-
const USER_TYPE_INTEGRATION = 1;
21-
const USER_TYPE_ADMIN = 2;
22-
const USER_TYPE_CUSTOMER = 3;
23-
const USER_TYPE_GUEST = 4;
20+
public const USER_TYPE_INTEGRATION = 1;
21+
public const USER_TYPE_ADMIN = 2;
22+
public const USER_TYPE_CUSTOMER = 3;
23+
public const USER_TYPE_GUEST = 4;
2424
/**#@-*/
2525

2626
/**

app/code/Magento/Backend/Model/Auth/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Session extends \Magento\Framework\Session\SessionManager implements \Mage
3333
/**
3434
* Admin session lifetime config path
3535
*/
36-
const XML_PATH_SESSION_LIFETIME = 'admin/security/session_lifetime';
36+
public const XML_PATH_SESSION_LIFETIME = 'admin/security/session_lifetime';
3737

3838
/**
3939
* @var boolean

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Eav.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*/
5353
class Eav extends AbstractModifier
5454
{
55-
const SORT_ORDER_MULTIPLIER = 10;
55+
public const SORT_ORDER_MULTIPLIER = 10;
5656

5757
/**
5858
* @var LocatorInterface

app/code/Magento/CatalogRule/Model/Indexer/IndexBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*/
3737
class IndexBuilder
3838
{
39-
const SECONDS_IN_DAY = 86400;
39+
public const SECONDS_IN_DAY = 86400;
4040

4141
/**
4242
* @var \Magento\Framework\EntityManager\MetadataPool

app/code/Magento/Customer/Api/AccountManagementInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ interface AccountManagementInterface
1919
/**#@+
2020
* Constant for confirmation status
2121
*/
22-
const ACCOUNT_CONFIRMED = 'account_confirmed';
23-
const ACCOUNT_CONFIRMATION_REQUIRED = 'account_confirmation_required';
24-
const ACCOUNT_CONFIRMATION_NOT_REQUIRED = 'account_confirmation_not_required';
25-
const MAX_PASSWORD_LENGTH = 256;
22+
public const ACCOUNT_CONFIRMED = 'account_confirmed';
23+
public const ACCOUNT_CONFIRMATION_REQUIRED = 'account_confirmation_required';
24+
public const ACCOUNT_CONFIRMATION_NOT_REQUIRED = 'account_confirmation_not_required';
25+
public const MAX_PASSWORD_LENGTH = 256;
2626
/**#@-*/
2727

2828
/**

app/code/Magento/Downloadable/Model/Link.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,36 @@
1919
*/
2020
class Link extends \Magento\Framework\Model\AbstractExtensibleModel implements ComponentInterface, LinkInterface
2121
{
22-
const XML_PATH_LINKS_TITLE = 'catalog/downloadable/links_title';
22+
public const XML_PATH_LINKS_TITLE = 'catalog/downloadable/links_title';
2323

24-
const XML_PATH_DEFAULT_DOWNLOADS_NUMBER = 'catalog/downloadable/downloads_number';
24+
public const XML_PATH_DEFAULT_DOWNLOADS_NUMBER = 'catalog/downloadable/downloads_number';
2525

26-
const XML_PATH_TARGET_NEW_WINDOW = 'catalog/downloadable/links_target_new_window';
26+
public const XML_PATH_TARGET_NEW_WINDOW = 'catalog/downloadable/links_target_new_window';
2727

28-
const XML_PATH_CONFIG_IS_SHAREABLE = 'catalog/downloadable/shareable';
28+
public const XML_PATH_CONFIG_IS_SHAREABLE = 'catalog/downloadable/shareable';
2929

30-
const LINK_SHAREABLE_YES = 1;
30+
public const LINK_SHAREABLE_YES = 1;
3131

32-
const LINK_SHAREABLE_NO = 0;
32+
public const LINK_SHAREABLE_NO = 0;
3333

34-
const LINK_SHAREABLE_CONFIG = 2;
34+
public const LINK_SHAREABLE_CONFIG = 2;
3535

3636
/**#@+
3737
* Constants for field names
3838
*/
39-
const KEY_TITLE = 'title';
40-
const KEY_SORT_ORDER = 'sort_order';
41-
const KEY_IS_SHAREABLE = 'is_shareable';
42-
const KEY_PRICE = 'price';
43-
const KEY_NUMBER_OF_DOWNLOADS = 'number_of_downloads';
44-
const KEY_LINK_TYPE = 'link_type';
45-
const KEY_LINK_FILE = 'link_file';
46-
const KEY_LINK_FILE_CONTENT = 'link_file_content';
47-
const KEY_LINK_URL = 'link_url';
48-
const KEY_SAMPLE_TYPE = 'sample_type';
49-
const KEY_SAMPLE_FILE = 'sample_file';
50-
const KEY_SAMPLE_FILE_CONTENT = 'sample_file_content';
51-
const KEY_SAMPLE_URL = 'sample_url';
39+
public const KEY_TITLE = 'title';
40+
public const KEY_SORT_ORDER = 'sort_order';
41+
public const KEY_IS_SHAREABLE = 'is_shareable';
42+
public const KEY_PRICE = 'price';
43+
public const KEY_NUMBER_OF_DOWNLOADS = 'number_of_downloads';
44+
public const KEY_LINK_TYPE = 'link_type';
45+
public const KEY_LINK_FILE = 'link_file';
46+
public const KEY_LINK_FILE_CONTENT = 'link_file_content';
47+
public const KEY_LINK_URL = 'link_url';
48+
public const KEY_SAMPLE_TYPE = 'sample_type';
49+
public const KEY_SAMPLE_FILE = 'sample_file';
50+
public const KEY_SAMPLE_FILE_CONTENT = 'sample_file_content';
51+
public const KEY_SAMPLE_URL = 'sample_url';
5252
/**#@-*/
5353

5454
/**

app/code/Magento/Integration/Model/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
class Config
2121
{
22-
const CACHE_ID = 'integration';
22+
public const CACHE_ID = 'integration';
2323

2424
/**
2525
* @var \Magento\Framework\App\Cache\Type\Config

app/code/Magento/Integration/Model/Integration.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,41 +33,41 @@ class Integration extends \Magento\Framework\Model\AbstractModel
3333
/**#@+
3434
* Integration Status values
3535
*/
36-
const STATUS_INACTIVE = 0;
36+
public const STATUS_INACTIVE = 0;
3737

38-
const STATUS_ACTIVE = 1;
38+
public const STATUS_ACTIVE = 1;
3939

40-
const STATUS_RECREATED = 2;
40+
public const STATUS_RECREATED = 2;
4141

4242
/**#@-*/
4343

4444
/**#@+
4545
* Integration setup type
4646
*/
47-
const TYPE_MANUAL = 0;
47+
public const TYPE_MANUAL = 0;
4848

49-
const TYPE_CONFIG = 1;
49+
public const TYPE_CONFIG = 1;
5050

5151
/**#@-*/
5252

5353
/**#@+
5454
* Integration data key constants.
5555
*/
56-
const ID = 'integration_id';
56+
public const ID = 'integration_id';
5757

58-
const NAME = 'name';
58+
public const NAME = 'name';
5959

60-
const EMAIL = 'email';
60+
public const EMAIL = 'email';
6161

62-
const ENDPOINT = 'endpoint';
62+
public const ENDPOINT = 'endpoint';
6363

64-
const IDENTITY_LINK_URL = 'identity_link_url';
64+
public const IDENTITY_LINK_URL = 'identity_link_url';
6565

66-
const SETUP_TYPE = 'setup_type';
66+
public const SETUP_TYPE = 'setup_type';
6767

68-
const CONSUMER_ID = 'consumer_id';
68+
public const CONSUMER_ID = 'consumer_id';
6969

70-
const STATUS = 'status';
70+
public const STATUS = 'status';
7171

7272
/**#@-*/
7373

app/code/Magento/Integration/Model/IntegrationConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class IntegrationConfig
2323
{
24-
const CACHE_ID = 'integration-api';
24+
public const CACHE_ID = 'integration-api';
2525

2626
/**
2727
* @var \Magento\Framework\App\Cache\Type\Config

app/code/Magento/Msrp/Model/Config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class Config
1818
/**#@+
1919
* Minimum advertise price constants
2020
*/
21-
const XML_PATH_MSRP_ENABLED = 'sales/msrp/enabled';
22-
const XML_PATH_MSRP_DISPLAY_ACTUAL_PRICE_TYPE = 'sales/msrp/display_price_type';
23-
const XML_PATH_MSRP_EXPLANATION_MESSAGE = 'sales/msrp/explanation_message';
24-
const XML_PATH_MSRP_EXPLANATION_MESSAGE_WHATS_THIS = 'sales/msrp/explanation_message_whats_this';
21+
public const XML_PATH_MSRP_ENABLED = 'sales/msrp/enabled';
22+
public const XML_PATH_MSRP_DISPLAY_ACTUAL_PRICE_TYPE = 'sales/msrp/display_price_type';
23+
public const XML_PATH_MSRP_EXPLANATION_MESSAGE = 'sales/msrp/explanation_message';
24+
public const XML_PATH_MSRP_EXPLANATION_MESSAGE_WHATS_THIS = 'sales/msrp/explanation_message_whats_this';
2525
/**#@-*/
2626

2727
/**

0 commit comments

Comments
 (0)