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_Customer (part 2) #37000

Merged
Merged
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
2 changes: 0 additions & 2 deletions app/code/Magento/Customer/Model/Attribute/Data/Multiline.php
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Customer Attribute Multiply line Data Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\Attribute\Data;

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

/**
* Customer Attribute Multiply select Data Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\Attribute\Data;

2 changes: 0 additions & 2 deletions app/code/Magento/Customer/Model/Attribute/Data/Select.php
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Customer Attribute Select Data Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\Attribute\Data;

2 changes: 0 additions & 2 deletions app/code/Magento/Customer/Model/Attribute/Data/Text.php
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Customer Attribute Text Data Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\Attribute\Data;

2 changes: 0 additions & 2 deletions app/code/Magento/Customer/Model/Attribute/Data/Textarea.php
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Customer Attribute Text Area Data Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\Attribute\Data;

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

/**
* Customer Reset Password Link Expiration period backend model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Expirationperiod extends \Magento\Framework\App\Config\Value
{
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@

/**
* Customer Show Address Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Address extends Customer
{
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@

/**
* Customer Show Address Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class AddressOnly extends Customer
{
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@
/**
* Customer Show Customer Model
*
* @author Magento Core Team <core@magentocommerce.com>
* @SuppressWarnings(PHPMD.UnusedPrivateField)
*/
class Customer extends \Magento\Framework\App\Config\Value
11 changes: 3 additions & 8 deletions app/code/Magento/Customer/Model/Config/Share.php
Original file line number Diff line number Diff line change
@@ -7,24 +7,21 @@

/**
* Customer sharing config model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Share extends \Magento\Framework\App\Config\Value implements \Magento\Framework\Option\ArrayInterface
{
/**
* Xml config path to customers sharing scope value
*
*/
const XML_PATH_CUSTOMER_ACCOUNT_SHARE = 'customer/account_share/scope';
public const XML_PATH_CUSTOMER_ACCOUNT_SHARE = 'customer/account_share/scope';

/**
* Possible customer sharing scopes
*
*/
const SHARE_GLOBAL = 0;

const SHARE_WEBSITE = 1;
public const SHARE_GLOBAL = 0;
public const SHARE_WEBSITE = 1;

/**
* @var \Magento\Customer\Model\ResourceModel\Customer
@@ -37,8 +34,6 @@ class Share extends \Magento\Framework\App\Config\Value implements \Magento\Fram
protected $_storeManager;

/**
* Constructor
*
* @param \Magento\Framework\Model\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Source model of customer address types
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\Config\Source\Address;

Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

/**
* Customer default billing address backend
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Billing extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
{
/**
* Before save
*
* @param \Magento\Framework\DataObject $object
* @return void
*/
@@ -25,6 +25,8 @@ public function beforeSave($object)
}

/**
* After save
*
* @param \Magento\Framework\DataObject $object
* @return void
*/
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@

/**
* Customer default shipping address backend
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Shipping extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
{
/**
* Before save
*
* @param \Magento\Framework\DataObject $object
* @return void
*/
@@ -25,6 +25,8 @@ public function beforeSave($object)
}

/**
* After save
*
* @param \Magento\Framework\DataObject $object
* @return void
*/
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Store attribute backend
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Store extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
{
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Website attribute backend
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Website extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
{
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@

/**
* Customer group attribute source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Group extends \Magento\Eav\Model\Entity\Attribute\Source\Table implements GroupSourceLoggedInOnlyInterface
{
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Customer store attribute source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Store extends \Magento\Eav\Model\Entity\Attribute\Source\Table
{
@@ -58,6 +56,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
}

/**
* Return option text
*
* @param string $value
* @return array|string
*/
@@ -95,6 +95,8 @@ public function getOptionText($value)
}

/**
* Return new stores collection
*
* @return \Magento\Store\Model\ResourceModel\Store\Collection
*/
protected function _createStoresCollection()
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Customer website attribute source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Website extends \Magento\Eav\Model\Entity\Attribute\Source\Table
{
@@ -44,6 +42,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
}

/**
* Return option text
*
* @param int|string $value
* @return string|false
*/
11 changes: 4 additions & 7 deletions app/code/Magento/Customer/Model/Form.php
Original file line number Diff line number Diff line change
@@ -4,19 +4,17 @@
* See COPYING.txt for license details.
*/

namespace Magento\Customer\Model;

/**
* Customer Form Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model;

class Form extends \Magento\Eav\Model\Form
{
/**
* XML configuration paths for "Disable autocomplete on storefront" property
*/
const XML_PATH_ENABLE_AUTOCOMPLETE = 'customer/password/autocomplete_on_storefront';
public const XML_PATH_ENABLE_AUTOCOMPLETE = 'customer/password/autocomplete_on_storefront';

/**
* Current module pathname
@@ -33,8 +31,7 @@ class Form extends \Magento\Eav\Model\Form
protected $_entityTypeCode = 'customer';

/**
* Get EAV Entity Form Attribute Collection for Customer
* exclude 'created_at'
* Get EAV Entity Form Attribute Collection for Customer exclude 'created_at'
*
* @return \Magento\Customer\Model\ResourceModel\Form\Attribute\Collection
*/
2 changes: 0 additions & 2 deletions app/code/Magento/Customer/Model/Renderer/Region.php
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@

/**
* Region field renderer
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Region implements \Magento\Framework\Data\Form\Element\Renderer\RendererInterface
{
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Address region attribute backend
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Region extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
{
@@ -45,6 +43,8 @@ public function beforeSave($object)
}

/**
* Return new region object
*
* @return \Magento\Directory\Model\Region
*/
protected function _createRegionInstance()
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Customer Address EAV additional attribute resource collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\ResourceModel\Address\Attribute;

Original file line number Diff line number Diff line change
@@ -4,19 +4,13 @@
* See COPYING.txt for license details.
*/

/**
* Customer country attribute source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\ResourceModel\Address\Attribute\Source;

use Magento\Framework\App\ObjectManager;
use Magento\Store\Model\StoreManagerInterface;

/**
* Class Country.
* @package Magento\Customer\Model\ResourceModel\Address\Attribute\Source
* Customer country attribute source
*/
class Country extends \Magento\Eav\Model\Entity\Attribute\Source\Table
{
@@ -58,6 +52,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
}

/**
* Return new countries object
*
* @return \Magento\Directory\Model\ResourceModel\Country\Collection
*/
protected function _createCountriesCollection()
@@ -67,7 +63,9 @@ protected function _createCountriesCollection()

/**
* Retrieve Store Manager
*
* @deprecated 101.0.0
* @see nothing
* @return StoreManagerInterface
*/
private function getStoreManager()
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

/**
* Customer country with website specified attribute source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\ResourceModel\Address\Attribute\Source;

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

/**
* Customer region attribute source
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\ResourceModel\Address\Attribute\Source;

@@ -44,6 +42,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
}

/**
* Return new regions object
*
* @return \Magento\Directory\Model\ResourceModel\Region\Collection
*/
protected function _createRegionsCollection()
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@
* Customers collection
*
* @api
* @author Magento Core Team <core@magentocommerce.com>
* @since 100.0.2
*/
class Collection extends \Magento\Eav\Model\Entity\Collection\VersionControl\AbstractCollection
2 changes: 0 additions & 2 deletions app/code/Magento/Customer/Model/ResourceModel/Attribute.php
Original file line number Diff line number Diff line change
@@ -6,8 +6,6 @@

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

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

/**
* Customer EAV additional attribute resource collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
namespace Magento\Customer\Model\ResourceModel\Attribute;

Original file line number Diff line number Diff line change
@@ -8,15 +8,14 @@
/**
* Customers collection
*
* @author Magento Core Team <core@magentocommerce.com>
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Collection extends \Magento\Eav\Model\Entity\Collection\VersionControl\AbstractCollection
{
/**
* Name of collection model
*/
const CUSTOMER_MODEL_NAME = \Magento\Customer\Model\Customer::class;
public const CUSTOMER_MODEL_NAME = \Magento\Customer\Model\Customer::class;

/**
* @var \Magento\Framework\DataObject\Copy\Config
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Customer Form Attribute Resource Model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Attribute extends \Magento\Eav\Model\ResourceModel\Form\Attribute
{
Original file line number Diff line number Diff line change
@@ -7,8 +7,6 @@

/**
* Customer Form Attribute Resource Collection
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Collection extends \Magento\Eav\Model\ResourceModel\Form\Attribute\Collection
{
4 changes: 0 additions & 4 deletions app/code/Magento/Customer/Model/ResourceModel/Group.php
Original file line number Diff line number Diff line change
@@ -10,14 +10,10 @@

/**
* Customer group resource model
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Group extends \Magento\Framework\Model\ResourceModel\Db\VersionControl\AbstractDb
{
/**
* Group Management
*
* @var \Magento\Customer\Api\GroupManagementInterface
*/
protected $_groupManagement;