Skip to content

Remove forbidden @author tag from Tax module #37017

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions app/code/Magento/Tax/Block/Adminhtml/Rate/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Admin product tax class add form
*
* @author Magento Core Team <core@magentocommerce.com>
*/
declare(strict_types=1);

Expand All @@ -27,7 +25,7 @@
*/
class Form extends \Magento\Backend\Block\Widget\Form\Generic
{
const FORM_ELEMENT_ID = 'rate-form';
public const FORM_ELEMENT_ID = 'rate-form';

/**
* @var null
Expand All @@ -40,8 +38,6 @@ class Form extends \Magento\Backend\Block\Widget\Form\Generic
protected $_template = 'Magento_Tax::rate/form.phtml';

/**
* Tax data
*
* @var \Magento\Tax\Helper\Data|null
*/
protected $_taxData = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Adminhtml grid item renderer number
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Block\Adminhtml\Rate\Grid\Renderer;

Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Tax/Block/Adminhtml/Rate/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

/**
* Tax Rate Titles Renderer
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Title extends \Magento\Framework\View\Element\Template
{
Expand Down Expand Up @@ -92,6 +90,8 @@ public function getTitles()
}

/**
* Return all the stores
*
* @return mixed
*/
public function getStores()
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Tax/Block/Adminhtml/Rate/Title/Fieldset.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Tax Rate Titles Fieldset
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Block\Adminhtml\Rate\Title;

Expand Down Expand Up @@ -37,6 +35,8 @@ public function __construct(
}

/**
* Get title formatted in HTML
*
* @return string
*/
public function getBasicChildrenHtml()
Expand Down
12 changes: 6 additions & 6 deletions app/code/Magento/Tax/Block/Adminhtml/Rate/Toolbar/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Admin tax class product toolbar
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Block\Adminhtml\Rate\Toolbar;

Expand Down Expand Up @@ -50,7 +48,7 @@ public function __construct(
}

/**
* {$@inheritdoc}
* @inheritDoc
*/
public function addButton($buttonId, $data, $level = 0, $sortOrder = 0, $region = 'toolbar')
{
Expand All @@ -59,7 +57,7 @@ public function addButton($buttonId, $data, $level = 0, $sortOrder = 0, $region
}

/**
* {$@inheritdoc}
* @inheritDoc
*/
public function removeButton($buttonId)
{
Expand All @@ -68,6 +66,8 @@ public function removeButton($buttonId)
}

/**
* Prepare the layout
*
* @return $this
*/
protected function _prepareLayout()
Expand All @@ -86,7 +86,7 @@ protected function _prepareLayout()
}

/**
* {$@inheritdoc}
* @inheritDoc
*/
public function updateButton($buttonId, $key, $data)
{
Expand All @@ -95,7 +95,7 @@ public function updateButton($buttonId, $key, $data)
}

/**
* {$@inheritdoc}
* @inheritDoc
*/
public function canRender(\Magento\Backend\Block\Widget\Button\Item $item)
{
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Tax/Block/Adminhtml/Rate/Toolbar/Save.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Admin tax rate save toolbar
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Block\Adminhtml\Rate\Toolbar;

Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Tax/Block/Adminhtml/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Admin tax rule content block
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Block\Adminhtml;

Expand All @@ -18,6 +16,8 @@
class Rule extends \Magento\Backend\Block\Widget\Grid\Container
{
/**
* Initialise the block
*
* @return void
*/
protected function _construct()
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Tax/Block/Item/Price/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* Item price render block
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class Renderer extends \Magento\Framework\View\Element\Template
Expand Down Expand Up @@ -106,6 +105,8 @@ public function setZone($zone)
}

/**
* Return the store ID
*
* @return int|null|string
*/
public function getStoreId()
Expand Down Expand Up @@ -201,8 +202,7 @@ public function formatPrice($price)
}

/**
* Get item price in display currency or order currency depending
* on item type
* Get item price in display currency or order currency depending on item type
*
* @return float
*/
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Tax/Controller/Adminhtml/Rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

/**
* Adminhtml tax rate controller
*
* @author Magento Core Team <core@magentocommerce.com>
*/
abstract class Rate extends \Magento\Backend\App\Action
{
Expand Down
6 changes: 1 addition & 5 deletions app/code/Magento/Tax/Controller/Adminhtml/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Tax rule controller
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Controller\Adminhtml;

Expand All @@ -21,11 +19,9 @@ abstract class Rule extends \Magento\Backend\App\Action
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Tax::manage_tax';
public const ADMIN_RESOURCE = 'Magento_Tax::manage_tax';

/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry = null;
Expand Down
4 changes: 1 addition & 3 deletions app/code/Magento/Tax/Controller/Adminhtml/Tax.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

/**
* Adminhtml common tax class controller
*
* @author Magento Core Team <core@magentocommerce.com>
*/
abstract class Tax extends \Magento\Backend\App\Action
{
Expand All @@ -20,7 +18,7 @@ abstract class Tax extends \Magento\Backend\App\Action
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'Magento_Tax::manage_tax';
public const ADMIN_RESOURCE = 'Magento_Tax::manage_tax';

/**
* @var \Magento\Tax\Api\TaxClassRepositoryInterface
Expand Down
21 changes: 12 additions & 9 deletions app/code/Magento/Tax/Model/Calculation/Rate/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* Tax Rate Title Model
*
* @method int getTaxCalculationRateId()
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Model\Calculation\Rate;

Expand All @@ -21,11 +19,13 @@ class Title extends \Magento\Framework\Model\AbstractExtensibleModel implements
*
* Tax rate field key.
*/
const KEY_STORE_ID = 'store_id';
const KEY_VALUE_ID = 'value';
public const KEY_STORE_ID = 'store_id';
public const KEY_VALUE_ID = 'value';
/**#@-*/

/**
* Initialise the model
*
* @return void
*/
protected function _construct()
Expand All @@ -34,6 +34,8 @@ protected function _construct()
}

/**
* Delete a rate with specified ID
*
* @param int $rateId
* @return $this
*/
Expand All @@ -43,17 +45,18 @@ public function deleteByRateId($rateId)
return $this;
}

// @codeCoverageIgnoreStart

/**
* @codeCoverageIgnoreStart
* {@inheritdoc}
* @inheritDoc
*/
public function getStoreId()
{
return $this->getData(self::KEY_STORE_ID);
}

/**
* {@inheritdoc}
* @inheritDoc
*/
public function getValue()
{
Expand Down Expand Up @@ -85,7 +88,7 @@ public function setValue($value)
// @codeCoverageIgnoreEnd

/**
* {@inheritdoc}
* @inheritDoc
*
* @return \Magento\Tax\Api\Data\TaxRateTitleExtensionInterface|null
*/
Expand All @@ -95,7 +98,7 @@ public function getExtensionAttributes()
}

/**
* {@inheritdoc}
* @inheritDoc
*
* @param \Magento\Tax\Api\Data\TaxRateTitleExtensionInterface $extensionAttributes
* @return $this
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Tax/Model/Calculation/RateFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Tax rate factory
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Model\Calculation;

Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Tax/Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Configuration paths storage
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Model;

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

/**
* Tax Calculation Collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Tax/Model/ResourceModel/Calculation/Rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* Tax rate resource model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Tax\Model\ResourceModel\Calculation;

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

/**
* Tax Rate Title Collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Title extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Tax Rate Title Collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{
Expand Down
2 changes: 0 additions & 2 deletions app/code/Magento/Tax/Model/ResourceModel/Calculation/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Tax rule resource model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Rule extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

/**
* Tax rule collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{
Expand Down Expand Up @@ -170,7 +168,6 @@ public function setClassTypeFilter($type, $id)
break;
default:
throw new \Magento\Framework\Exception\LocalizedException(__('Invalid type supplied'));
break;
}

$this->joinCalculationData('cd');
Expand Down
Loading