Skip to content

Commit b179a93

Browse files
committed
magento2-login-as-customer/issues/104: Global refactoring
- Builds fixes
1 parent 32ba639 commit b179a93

File tree

20 files changed

+80
-79
lines changed

20 files changed

+80
-79
lines changed

app/code/Magento/LoginAsCustomer/Cron/DeleteExpiredAuthenticationData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Magento\LoginAsCustomerApi\Api\DeleteExpiredAuthenticationDataInterface;
1212

1313
/**
14-
* elete expired authentication data cron task
14+
* Delete expired authentication data cron task
1515
*/
1616
class DeleteExpiredAuthenticationData
1717
{
@@ -38,7 +38,7 @@ public function __construct(
3838
}
3939

4040
/**
41-
* elete expired authentication data
41+
* Delete expired authentication data
4242
*/
4343
public function execute(): void
4444
{

app/code/Magento/LoginAsCustomer/Model/AuthenticateCustomer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
/**
1616
* @inheritdoc
17+
*
18+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1719
*/
1820
class AuthenticateCustomer implements AuthenticateCustomerInterface
1921
{

app/code/Magento/LoginAsCustomer/Model/AuthenticationData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public function __construct(
4646
}
4747

4848
/**
49-
* @return int
49+
* @inheritdoc
5050
*/
5151
public function getCustomerId(): int
5252
{
5353
return $this->customerId;
5454
}
5555

5656
/**
57-
* @return int
57+
* @inheritdoc
5858
*/
5959
public function getAdminId(): int
6060
{

app/code/Magento/LoginAsCustomerLog/Model/Login.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
class Login extends \Magento\Framework\Model\AbstractModel
1414
{
1515
/**
16-
* Initialize resource model
17-
*
18-
* @return void
16+
* @inheritdoc
1917
*/
2018
protected function _construct()
2119
{

app/code/Magento/LoginAsCustomerLog/Model/ResourceModel/Login.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
class Login extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
1414
{
1515
/**
16-
* Initialize resource model
17-
* Get tablename from config
18-
*
19-
* @return void
16+
* @inheritdoc
2017
*/
2118
protected function _construct()
2219
{

app/code/Magento/LoginAsCustomerLog/Model/ResourceModel/Login/Collection.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
1414
{
1515
/**
16-
* Constructor
17-
* Configures collection
18-
*
19-
* @return void
16+
* @inheritdoc
2017
*/
2118
protected function _construct()
2219
{

app/code/Magento/LoginAsCustomerLog/Model/ResourceModel/Login/Grid/Collection.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313
class Collection extends \Magento\LoginAsCustomerLog\Model\ResourceModel\Login\Collection
1414
{
1515
/**
16-
* Constructor
17-
* Configures collection
18-
*
19-
* @return void
16+
* @inheritdoc
2017
*/
2118
protected function _construct()
2219
{

app/code/Magento/LoginAsCustomerPageCache/Plugin/PageCache/Model/Config/DisablePageCacheIfNeededPlugin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
/**
1616
* Disable PageCache if enabled corresponding option in configuration
17+
*
18+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1719
*/
1820
class DisablePageCacheIfNeededPlugin
1921
{

app/code/Magento/LoginAsCustomerSales/Plugin/AdminAddCommentOnOrderPlacementPlugin.php

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

1313
/**
1414
* Add comment after order placed by admin using admin panel.
15+
*
16+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1517
*/
1618
class AdminAddCommentOnOrderPlacementPlugin
1719
{

app/code/Magento/LoginAsCustomerSales/Plugin/AuthenticateCustomerPlugin.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
use Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterface;
1616

1717
/**
18-
* Class AuthenticateCustomer Plugin
18+
* \Magento\LoginAsCustomerApi\Api\AuthenticateCustomerInterface Plugin
19+
*
20+
* Remove all items from guest shopping cart before execute. Mark customer cart as not-guest after execute
21+
*
22+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1923
*/
2024
class AuthenticateCustomerPlugin
2125
{

0 commit comments

Comments
 (0)