Skip to content

Commit 55c42b8

Browse files
committed
Fix static test failures
1 parent 5ace1f3 commit 55c42b8

File tree

11 files changed

+30
-19
lines changed

11 files changed

+30
-19
lines changed

app/code/Magento/Customer/Model/Config/Share.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ class Share extends \Magento\Framework\App\Config\Value implements \Magento\Fram
1414
* Xml config path to customers sharing scope value
1515
*
1616
*/
17-
const XML_PATH_CUSTOMER_ACCOUNT_SHARE = 'customer/account_share/scope';
17+
public const XML_PATH_CUSTOMER_ACCOUNT_SHARE = 'customer/account_share/scope';
1818

1919
/**
2020
* Possible customer sharing scopes
2121
*
2222
*/
23-
const SHARE_GLOBAL = 0;
24-
25-
const SHARE_WEBSITE = 1;
23+
public const SHARE_GLOBAL = 0;
24+
public const SHARE_WEBSITE = 1;
2625

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

3736
/**
38-
* Constructor
39-
*
4037
* @param \Magento\Framework\Model\Context $context
4138
* @param \Magento\Framework\Registry $registry
4239
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config

app/code/Magento/Customer/Model/Customer/Attribute/Backend/Billing.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
class Billing extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
1212
{
1313
/**
14+
* Before save
15+
*
1416
* @param \Magento\Framework\DataObject $object
1517
* @return void
1618
*/
@@ -23,6 +25,8 @@ public function beforeSave($object)
2325
}
2426

2527
/**
28+
* After save
29+
*
2630
* @param \Magento\Framework\DataObject $object
2731
* @return void
2832
*/

app/code/Magento/Customer/Model/Customer/Attribute/Backend/Shipping.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
class Shipping extends \Magento\Eav\Model\Entity\Attribute\Backend\AbstractBackend
1212
{
1313
/**
14+
* Before save
15+
*
1416
* @param \Magento\Framework\DataObject $object
1517
* @return void
1618
*/
@@ -23,6 +25,8 @@ public function beforeSave($object)
2325
}
2426

2527
/**
28+
* After save
29+
*
2630
* @param \Magento\Framework\DataObject $object
2731
* @return void
2832
*/

app/code/Magento/Customer/Model/Customer/Attribute/Source/Store.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
5656
}
5757

5858
/**
59+
* Return option text
60+
*
5961
* @param string $value
6062
* @return array|string
6163
*/
@@ -93,6 +95,8 @@ public function getOptionText($value)
9395
}
9496

9597
/**
98+
* Return new stores collection
99+
*
96100
* @return \Magento\Store\Model\ResourceModel\Store\Collection
97101
*/
98102
protected function _createStoresCollection()

app/code/Magento/Customer/Model/Customer/Attribute/Source/Website.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
4242
}
4343

4444
/**
45+
* Return option text
46+
*
4547
* @param int|string $value
4648
* @return string|false
4749
*/

app/code/Magento/Customer/Model/Form.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
* See COPYING.txt for license details.
55
*/
66

7+
namespace Magento\Customer\Model;
8+
79
/**
810
* Customer Form Model
911
*/
10-
namespace Magento\Customer\Model;
11-
1212
class Form extends \Magento\Eav\Model\Form
1313
{
1414
/**
1515
* XML configuration paths for "Disable autocomplete on storefront" property
1616
*/
17-
const XML_PATH_ENABLE_AUTOCOMPLETE = 'customer/password/autocomplete_on_storefront';
17+
public const XML_PATH_ENABLE_AUTOCOMPLETE = 'customer/password/autocomplete_on_storefront';
1818

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

3333
/**
34-
* Get EAV Entity Form Attribute Collection for Customer
35-
* exclude 'created_at'
34+
* Get EAV Entity Form Attribute Collection for Customer exclude 'created_at'
3635
*
3736
* @return \Magento\Customer\Model\ResourceModel\Form\Attribute\Collection
3837
*/

app/code/Magento/Customer/Model/ResourceModel/Address/Attribute/Backend/Region.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function beforeSave($object)
4343
}
4444

4545
/**
46+
* Return new region object
47+
*
4648
* @return \Magento\Directory\Model\Region
4749
*/
4850
protected function _createRegionInstance()

app/code/Magento/Customer/Model/ResourceModel/Address/Attribute/Source/Country.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Customer country attribute source
9-
*/
107
namespace Magento\Customer\Model\ResourceModel\Address\Attribute\Source;
118

129
use Magento\Framework\App\ObjectManager;
1310
use Magento\Store\Model\StoreManagerInterface;
1411

1512
/**
16-
* Class Country.
17-
* @package Magento\Customer\Model\ResourceModel\Address\Attribute\Source
13+
* Customer country attribute source
1814
*/
1915
class Country extends \Magento\Eav\Model\Entity\Attribute\Source\Table
2016
{
@@ -56,6 +52,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
5652
}
5753

5854
/**
55+
* Return new countries object
56+
*
5957
* @return \Magento\Directory\Model\ResourceModel\Country\Collection
6058
*/
6159
protected function _createCountriesCollection()
@@ -65,6 +63,7 @@ protected function _createCountriesCollection()
6563

6664
/**
6765
* Retrieve Store Manager
66+
*
6867
* @deprecated 101.0.0
6968
* @return StoreManagerInterface
7069
*/

app/code/Magento/Customer/Model/ResourceModel/Address/Attribute/Source/Region.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ public function getAllOptions($withEmpty = true, $defaultValues = false)
4242
}
4343

4444
/**
45+
* Return new regions object
46+
*
4547
* @return \Magento\Directory\Model\ResourceModel\Region\Collection
4648
*/
4749
protected function _createRegionsCollection()

app/code/Magento/Customer/Model/ResourceModel/Customer/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Collection extends \Magento\Eav\Model\Entity\Collection\VersionControl\Abs
1515
/**
1616
* Name of collection model
1717
*/
18-
const CUSTOMER_MODEL_NAME = \Magento\Customer\Model\Customer::class;
18+
public const CUSTOMER_MODEL_NAME = \Magento\Customer\Model\Customer::class;
1919

2020
/**
2121
* @var \Magento\Framework\DataObject\Copy\Config

0 commit comments

Comments
 (0)