Skip to content

Commit 66a476b

Browse files
committed
ACP2E-3864: Update copyrights for PB and fix static failures
1 parent 6103034 commit 66a476b

File tree

25 files changed

+55
-49
lines changed

25 files changed

+55
-49
lines changed

app/code/Magento/PageBuilder/Api/Data/TemplateInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
*/
1616
interface TemplateInterface extends ExtensibleDataInterface
1717
{
18-
const KEY_ID = 'template_id';
18+
public const KEY_ID = 'template_id';
1919

20-
const KEY_NAME = 'name';
20+
public const KEY_NAME = 'name';
2121

22-
const KEY_PREVIEW_IMAGE = 'preview_image';
22+
public const KEY_PREVIEW_IMAGE = 'preview_image';
2323

24-
const KEY_TEMPLATE = 'template';
24+
public const KEY_TEMPLATE = 'template';
2525

26-
const KEY_CREATED_FOR = 'created_for';
26+
public const KEY_CREATED_FOR = 'created_for';
2727

28-
const KEY_CREATED_AT = 'created_at';
28+
public const KEY_CREATED_AT = 'created_at';
2929

30-
const KEY_UPDATED_AT = 'updated_at';
30+
public const KEY_UPDATED_AT = 'updated_at';
3131

3232
/**
3333
* Get Template ID

app/code/Magento/PageBuilder/Block/Adminhtml/ContentType/Edit/CancelButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CancelButton implements ButtonProviderInterface
2525
/**
2626
* Constructor
2727
*
28-
* @param $targetName
28+
* @param string $targetName
2929
*/
3030
public function __construct(string $targetName)
3131
{

app/code/Magento/PageBuilder/Block/Adminhtml/ContentType/Edit/CloseButton.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CloseButton implements ButtonProviderInterface
2424
/**
2525
* Constructor
2626
*
27-
* @param $targetName
27+
* @param string $targetName
2828
*/
2929
public function __construct(string $targetName)
3030
{

app/code/Magento/PageBuilder/Block/Adminhtml/System/Config/EnableField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
}
3737

3838
/**
39-
* {@inheritdoc}
39+
* @inheritdoc
4040
*/
4141
protected function _getElementHtml(AbstractElement $element)
4242
{

app/code/Magento/PageBuilder/Block/Adminhtml/System/Config/SwitchAttributeType.php

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

99
namespace Magento\PageBuilder\Block\Adminhtml\System\Config;
1010

11-
use Magento\Backend\Block\Template\Context;
1211
use Magento\Config\Block\System\Config\Form\Field;
1312
use Magento\Framework\Phrase;
1413

@@ -19,17 +18,6 @@
1918
*/
2019
class SwitchAttributeType extends Field
2120
{
22-
/**
23-
* @param Context $context
24-
* @param array $data
25-
*/
26-
public function __construct(
27-
Context $context,
28-
array $data = []
29-
) {
30-
parent::__construct($context, $data);
31-
}
32-
3321
/**
3422
* Get text for the modal title heading when user switches to disable
3523
*

app/code/Magento/PageBuilder/Block/Catalog/Block/Product/View/Attributes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
*/
1515
class Attributes extends \Magento\Catalog\Block\Product\View\Attributes
1616
{
17-
const DISPLAY_ATTRIBUTES_NON_PAGEBUILDER = 'non_pagebuilder';
17+
public const DISPLAY_ATTRIBUTES_NON_PAGEBUILDER = 'non_pagebuilder';
1818

19-
const DISPLAY_ATTRIBUTES_PAGEBUILDER_ONLY = 'pagebuilder_only';
19+
public const DISPLAY_ATTRIBUTES_PAGEBUILDER_ONLY = 'pagebuilder_only';
2020

2121
/**
2222
* @inheritdoc

app/code/Magento/PageBuilder/Block/Element/Editor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
class Editor extends \Magento\Framework\Data\Form\Element\Editor
1616
{
1717
/**
18-
* {@inheritdoc}
18+
* @inheritdoc
1919
*/
2020
public function getElementHtml()
2121
{
@@ -27,7 +27,7 @@ public function getElementHtml()
2727
}
2828

2929
/**
30-
* {@inheritdoc}
30+
* @inheritdoc
3131
*/
3232
public function isEnabled()
3333
{
@@ -48,7 +48,7 @@ protected function isStageEnabled() : bool
4848
}
4949

5050
/**
51-
* {@inheritdoc}
51+
* @inheritdoc
5252
*/
5353
protected function getInlineJs($jsSetupObject, $forceLoad)
5454
{

app/code/Magento/PageBuilder/Component/GoogleMapsApiKeyValidationContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class GoogleMapsApiKeyValidationContainer extends \Magento\Ui\Component\Container
2222
{
23-
const GOOGLE_MAPS_API_KEY_PATH = 'cms/pagebuilder/google_maps_api_key';
23+
public const GOOGLE_MAPS_API_KEY_PATH = 'cms/pagebuilder/google_maps_api_key';
2424

2525
/**
2626
* @var UrlInterface

app/code/Magento/PageBuilder/Controller/Adminhtml/ContentType/Block/Metadata.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010

1111
use Magento\Framework\Controller\ResultFactory;
1212

13+
/**
14+
* @SuppressWarnings(PHPMD.AllPurposeAction)
15+
*/
1316
class Metadata extends \Magento\Backend\App\AbstractAction
1417
{
1518
/**
16-
* {@inheritdoc}
19+
* @inheritdoc
1720
*/
18-
const ADMIN_RESOURCE = 'Magento_Cms::block';
21+
public const ADMIN_RESOURCE = 'Magento_Cms::block';
1922

2023
/**
2124
* @var \Magento\Cms\Model\ResourceModel\Block\CollectionFactory
@@ -36,6 +39,9 @@ public function __construct(
3639
$this->blockCollectionFactory = $blockCollectionFactory;
3740
}
3841

42+
/**
43+
* @inheritDoc
44+
*/
3945
public function execute()
4046
{
4147
$params = $this->getRequest()->getParams();

app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductConditions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
/**
1414
* Responsible for rendering the top-level conditions rule tree using the provided params
15+
* @SuppressWarnings(PHPMD.AllPurposeAction)
1516
*/
1617
class ProductConditions extends \Magento\CatalogWidget\Controller\Adminhtml\Product\Widget
1718
{
@@ -41,7 +42,7 @@ public function __construct(
4142
}
4243

4344
/**
44-
* @return void
45+
* @inheritDoc
4546
*/
4647
public function execute()
4748
{

0 commit comments

Comments
 (0)