Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forbidden @author tag from Magento_Backup and Magento_Bundle #36979

Open
wants to merge 8 commits into
base: 2.4-develop
Choose a base branch
from
7 changes: 4 additions & 3 deletions app/code/Magento/Backup/Block/Adminhtml/Backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@
* Adminhtml backup page content block
*
* @api
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Backup extends \Magento\Backend\Block\Template
{
/**
* Block's template
*
* @var string
*/
protected $_template = 'Magento_Backup::backup/list.phtml';

/**
* Prepare the layout
*
* @return AbstractBlock|void
*/
protected function _prepareLayout()
Expand Down Expand Up @@ -62,6 +61,8 @@ protected function _prepareLayout()
}

/**
* Return HTML for the backups grid
*
* @return string
*/
public function getGridHtml()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Backup grid item renderer
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Backup\Block\Adminhtml\Grid\Column\Renderer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Grid column block that is displayed only if rollback allowed
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Backup\Block\Adminhtml\Grid\Column;

Expand Down
6 changes: 2 additions & 4 deletions app/code/Magento/Backup/Controller/Adminhtml/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Backup admin controller
*
* @author Magento Core Team <[email protected]>
* @phpcs:ignore Magento2.Classes.AbstractApi.AbstractApi
* @api
* @since 100.0.2
* @SuppressWarnings(PHPMD.AllPurposeAction)
Expand All @@ -24,11 +24,9 @@ abstract class Index extends Action
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Backup::backup';
public const ADMIN_RESOURCE = 'Magento_Backup::backup';

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry = null;
Expand Down
5 changes: 1 addition & 4 deletions app/code/Magento/Backup/Model/Config/Source/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
/**
* Backups types' source model for system configuration
*
* @author Magento Core Team <[email protected]>
* @api
* @since 100.0.2
*/
class Type implements \Magento\Framework\Option\ArrayInterface
{
/**
* Backup data
*
* @var \Magento\Backup\Helper\Data
*/
protected $_backupData = null;
Expand All @@ -30,7 +27,7 @@ public function __construct(\Magento\Backup\Helper\Data $backupData)
}

/**
* {@inheritdoc}
* @inheritDoc
*/
public function toOptionArray()
{
Expand Down
8 changes: 3 additions & 5 deletions app/code/Magento/Backup/Model/Grid/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@
* See COPYING.txt for license details.
*/

/**
* Backup types option array
*
* @author Magento Core Team <[email protected]>
*/
namespace Magento\Backup\Model\Grid;

/**
* Backup types option array
*
* @api
* @since 100.0.2
*/
Expand All @@ -32,6 +29,7 @@ public function __construct(\Magento\Backup\Helper\Data $backupHelper)

/**
* Return backup types array
*
* @return array
*/
public function toOptionArray()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* Bundle option checkbox type renderer
*
* @api
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Checkbox extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Checkbox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* Bundle option multi select type renderer
*
* @api
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Multi extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Multi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* Bundle option radiobox type renderer
*
* @api
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Radio extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Radio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* Bundle option dropdown type renderer
*
* @api
* @author Magento Core Team <[email protected]>
* @since 100.0.2
*/
class Select extends \Magento\Bundle\Block\Catalog\Product\View\Type\Bundle\Option\Select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@

/**
* Bundle Extended Attributes Block.
*
* @author Magento Core Team <[email protected]>
*/
class Extend extends \Magento\Catalog\Block\Adminhtml\Form\Renderer\Fieldset\Element
{
/**
* Initialize block template
* @var string
*/
private $template = 'Magento_Bundle::catalog/product/edit/tab/attributes/extend.phtml';

const DYNAMIC = 0;

const FIXED = 1;
public const DYNAMIC = 0;
public const FIXED = 1;

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

/**
* Bundle Special Price Attribute Block
*
* @author Magento Core Team <[email protected]>
*/
class Special extends \Magento\Catalog\Block\Adminhtml\Form\Renderer\Fieldset\Element
{
/**
* Return the HTML for this element
*
* @return string
*/
public function getElementHtml()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Adminhtml catalog product bundle items tab block
*
* @author Magento Core Team <[email protected]>
*/
class Bundle extends \Magento\Backend\Block\Widget implements \Magento\Backend\Block\Widget\Tab\TabInterface
{
Expand All @@ -23,8 +21,6 @@ class Bundle extends \Magento\Backend\Block\Widget implements \Magento\Backend\B
protected $_template = 'Magento_Bundle::product/edit/bundle.phtml';

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry = null;
Expand All @@ -44,6 +40,8 @@ public function __construct(
}

/**
* Return tab URL
*
* @return string
*/
public function getTabUrl()
Expand All @@ -52,6 +50,8 @@ public function getTabUrl()
}

/**
* Return tab CSS class
*
* @return string
*/
public function getTabClass()
Expand Down Expand Up @@ -100,6 +100,8 @@ public function isReadonly()
}

/**
* Return HTML for add button
*
* @return string
*/
public function getAddButtonHtml()
Expand All @@ -108,6 +110,8 @@ public function getAddButtonHtml()
}

/**
* Return HTML for options box
*
* @return string
*/
public function getOptionsBoxHtml()
Expand All @@ -116,6 +120,8 @@ public function getOptionsBoxHtml()
}

/**
* Return field suffix
*
* @return string
*/
public function getFieldSuffix()
Expand All @@ -124,6 +130,8 @@ public function getFieldSuffix()
}

/**
* Return product from core registry
*
* @return mixed
*/
public function getProduct()
Expand All @@ -132,6 +140,8 @@ public function getProduct()
}

/**
* Return tab label
*
* @return \Magento\Framework\Phrase
*/
public function getTabLabel()
Expand All @@ -140,6 +150,8 @@ public function getTabLabel()
}

/**
* Return tab title
*
* @return \Magento\Framework\Phrase
*/
public function getTabTitle()
Expand All @@ -148,6 +160,8 @@ public function getTabTitle()
}

/**
* Return true always
*
* @return bool
*/
public function canShowTab()
Expand All @@ -156,6 +170,8 @@ public function canShowTab()
}

/**
* Return false always
*
* @return bool
*/
public function isHidden()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Bundle selection product block
*
* @author Magento Core Team <[email protected]>
*/
class Search extends \Magento\Backend\Block\Widget
{
Expand All @@ -18,6 +16,8 @@ class Search extends \Magento\Backend\Block\Widget
protected $_template = 'Magento_Bundle::product/edit/bundle/option/search.phtml';

/**
* Initialise the block
*
* @return void
*/
protected function _construct()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Bundle selection product grid
*
* @author Magento Core Team <[email protected]>
*/
class Grid extends \Magento\Backend\Block\Widget\Grid\Extended
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Bundle selection renderer
*
* @author Magento Core Team <[email protected]>
*/
class Selection extends \Magento\Backend\Block\Widget
{
Expand All @@ -18,15 +16,11 @@ class Selection extends \Magento\Backend\Block\Widget
protected $_template = 'Magento_Bundle::product/edit/bundle/option/selection.phtml';

/**
* Catalog data
*
* @var \Magento\Catalog\Helper\Data
*/
protected $_catalogData = null;

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Adminhtml product edit tabs
*
* @author Magento Core Team <[email protected]>
*/
class Tabs extends \Magento\Catalog\Block\Adminhtml\Product\Edit\Tabs
{
Expand All @@ -18,7 +16,9 @@ class Tabs extends \Magento\Catalog\Block\Adminhtml\Product\Edit\Tabs
protected $_attributeTabBlock = \Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Attributes::class;

/**
* @return $this|void
* Prepare the layout
*
* @return void
*/
protected function _prepareLayout()
{
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Bundle/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Bundle helper
*
* @author Magento Core Team <[email protected]>
*/
class Data extends \Magento\Framework\App\Helper\AbstractHelper
{
Expand Down