Skip to content

Commit 722a6ca

Browse files
committed
Fixed Static test issues
1 parent d745a67 commit 722a6ca

File tree

8 files changed

+39
-39
lines changed

8 files changed

+39
-39
lines changed

app/code/Magento/Cms/Ui/Component/Listing/Column/BlockActions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class BlockActions extends Column
2020
/**
2121
* Url path
2222
*/
23-
const URL_PATH_EDIT = 'cms/block/edit';
24-
const URL_PATH_DELETE = 'cms/block/delete';
25-
const URL_PATH_DETAILS = 'cms/block/details';
23+
public const URL_PATH_EDIT = 'cms/block/edit';
24+
public const URL_PATH_DELETE = 'cms/block/delete';
25+
public const URL_PATH_DETAILS = 'cms/block/details';
2626

2727
/**
2828
* @var UrlInterface

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ class Token extends \Magento\Framework\Model\AbstractModel
5151
/**#@+
5252
* Token types
5353
*/
54-
const TYPE_REQUEST = 'request';
54+
public const TYPE_REQUEST = 'request';
5555

56-
const TYPE_ACCESS = 'access';
56+
public const TYPE_ACCESS = 'access';
5757

58-
const TYPE_VERIFIER = 'verifier';
58+
public const TYPE_VERIFIER = 'verifier';
5959

6060
/**#@- */
6161

app/code/Magento/Theme/Controller/Adminhtml/System/Design/Theme/Save.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/**
1010
* Class Save use to save Theme data
11+
* @SuppressWarnings(PHPMD.AllPurposeAction)
1112
* @deprecated 100.2.0
1213
*/
1314
class Save extends \Magento\Theme\Controller\Adminhtml\System\Design\Theme
@@ -79,8 +80,9 @@ public function execute()
7980
$this->_objectManager->get(\Psr\Log\LoggerInterface::class)->critical($e);
8081
}
8182
$redirectBack
82-
? $this->_redirect('adminhtml/*/edit', ['id' => $theme->getId()])
83-
: $this->_redirect('adminhtml/*/');
83+
//phpstan:ignore
84+
? $this->_redirect('adminhtml/*/edit', ['id' => $theme->getId()]) //phpcs:ignore
85+
: $this->_redirect('adminhtml/*/'); //phpcs:ignore
8486
}
8587

8688
/**

app/code/Magento/Theme/Model/Theme/Image/Path.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ class Path implements \Magento\Framework\View\Design\Theme\Image\PathInterface
1717
/**
1818
* Default theme preview image
1919
*/
20-
const DEFAULT_PREVIEW_IMAGE = 'Magento_Theme::theme/default_preview.jpg';
20+
public const DEFAULT_PREVIEW_IMAGE = 'Magento_Theme::theme/default_preview.jpg';
2121

2222
/**
23-
* Media Directory
24-
*
2523
* @var \Magento\Framework\Filesystem\Directory\ReadInterface
2624
*/
2725
protected $mediaDirectory;

app/code/Magento/Ui/Component/Filters/Type/Select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
*/
1818
class Select extends AbstractFilter
1919
{
20-
const NAME = 'filter_select';
20+
public const NAME = 'filter_select';
2121

22-
const COMPONENT = 'select';
22+
public const COMPONENT = 'select';
2323

2424
/**
2525
* UI Component

app/code/Magento/Ui/Component/Listing/Columns/Column.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class Column extends AbstractComponent implements ColumnInterface
1818
{
19-
const NAME = 'column';
19+
public const NAME = 'column';
2020

2121
/**
2222
* UI component

lib/internal/Magento/Framework/Oauth/Helper/Request.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class Request
1616
/**#@+
1717
* HTTP Response Codes
1818
*/
19-
const HTTP_OK = 200;
19+
public const HTTP_OK = 200;
2020

21-
const HTTP_BAD_REQUEST = 400;
21+
public const HTTP_BAD_REQUEST = 400;
2222

23-
const HTTP_UNAUTHORIZED = 401;
23+
public const HTTP_UNAUTHORIZED = 401;
2424

25-
const HTTP_METHOD_NOT_ALLOWED = 405;
25+
public const HTTP_METHOD_NOT_ALLOWED = 405;
2626

27-
const HTTP_INTERNAL_ERROR = 500;
27+
public const HTTP_INTERNAL_ERROR = 500;
2828

2929
/**#@-*/
3030

lib/internal/Magento/Framework/Oauth/OauthInterface.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,41 +18,41 @@ interface OauthInterface
1818
/**#@+
1919
* OAuth result statuses
2020
*/
21-
const ERR_OK = 0;
21+
public const ERR_OK = 0;
2222

23-
const ERR_VERSION_REJECTED = 1;
23+
public const ERR_VERSION_REJECTED = 1;
2424

25-
const ERR_PARAMETER_ABSENT = 2;
25+
public const ERR_PARAMETER_ABSENT = 2;
2626

27-
const ERR_PARAMETER_REJECTED = 3;
27+
public const ERR_PARAMETER_REJECTED = 3;
2828

29-
const ERR_TIMESTAMP_REFUSED = 4;
29+
public const ERR_TIMESTAMP_REFUSED = 4;
3030

31-
const ERR_NONCE_USED = 5;
31+
public const ERR_NONCE_USED = 5;
3232

33-
const ERR_SIGNATURE_METHOD_REJECTED = 6;
33+
public const ERR_SIGNATURE_METHOD_REJECTED = 6;
3434

35-
const ERR_SIGNATURE_INVALID = 7;
35+
public const ERR_SIGNATURE_INVALID = 7;
3636

37-
const ERR_CONSUMER_KEY_REJECTED = 8;
37+
public const ERR_CONSUMER_KEY_REJECTED = 8;
3838

39-
const ERR_TOKEN_USED = 9;
39+
public const ERR_TOKEN_USED = 9;
4040

41-
const ERR_TOKEN_EXPIRED = 10;
41+
public const ERR_TOKEN_EXPIRED = 10;
4242

43-
const ERR_TOKEN_REVOKED = 11;
43+
public const ERR_TOKEN_REVOKED = 11;
4444

45-
const ERR_TOKEN_REJECTED = 12;
45+
public const ERR_TOKEN_REJECTED = 12;
4646

47-
const ERR_VERIFIER_INVALID = 13;
47+
public const ERR_VERIFIER_INVALID = 13;
4848

49-
const ERR_PERMISSION_UNKNOWN = 14;
49+
public const ERR_PERMISSION_UNKNOWN = 14;
5050

51-
const ERR_PERMISSION_DENIED = 15;
51+
public const ERR_PERMISSION_DENIED = 15;
5252

53-
const ERR_METHOD_NOT_ALLOWED = 16;
53+
public const ERR_METHOD_NOT_ALLOWED = 16;
5454

55-
const ERR_CONSUMER_KEY_INVALID = 17;
55+
public const ERR_CONSUMER_KEY_INVALID = 17;
5656

5757
/**#@-*/
5858

@@ -63,9 +63,9 @@ interface OauthInterface
6363
* @deprecated SHA1 is deprecated
6464
* @see SIGNATURE_SHA256
6565
*/
66-
const SIGNATURE_SHA1 = 'HMAC-SHA1';
66+
public const SIGNATURE_SHA1 = 'HMAC-SHA1';
6767

68-
const SIGNATURE_SHA256 = 'HMAC-SHA256';
68+
public const SIGNATURE_SHA256 = 'HMAC-SHA256';
6969

7070
/**#@-*/
7171

0 commit comments

Comments
 (0)